**** BEGIN LOGGING AT Sun Nov 24 02:59:58 2013 Nov 24 03:00:08 just the camera is modified Nov 24 03:00:37 modifications come in the form of add on apps Nov 24 03:00:53 pfn how many? Nov 24 03:01:23 under a dozen? Nov 24 03:01:39 :O i have to look them up and see what moto is shipping wit the phone these days Nov 24 03:02:36 i'd really prefer a 'bare bones' nexus device that let me add every running app explicitly beside play, maybe the browser Nov 24 03:02:38 pretty much doesn't matter to me Nov 24 03:03:00 then get a nexus and build aosp yourself Nov 24 03:03:27 i'm really hoping the 4.4 update fixes my N7; the google play services is till killing my battery. having that problem they mentioned on androidpolice last week Nov 24 03:04:04 haven't noticed... Nov 24 03:04:15 my battery seems fine Nov 24 03:04:25 but I run qicr 24/7 Nov 24 03:04:38 so it runs down relatively fast anyway Nov 24 03:05:29 I'm on krt16s Nov 24 03:07:09 this issue http://www.androidpolice.com/2013/11/19/its-not-just-you-google-play-services-seems-to-be-a-battery-hog-today/ Nov 24 03:07:27 but it hasn't corrected itself Nov 24 03:07:48 i tried disabling as many apps as possible (that i weren't using) that didn't fix it either Nov 24 03:08:23 g00s: I fixed that by turning off location services for it Nov 24 03:08:40 desmin88 hm, i thought i had that off Nov 24 03:08:48 but thanks, i'll look into it Nov 24 03:08:55 np Nov 24 03:08:57 now, i think moto is doing the right thing with their apps http://www.androidpolice.com/2013/11/22/motorola-assist-and-motorola-connect-for-the-moto-x-and-2013-droids-are-now-in-the-play-store/ Nov 24 03:09:23 yeah i'd rather just get what i want on the store Nov 24 03:12:16 no, updates are on store Nov 24 03:12:24 it still comes pre installed Nov 24 03:14:01 desmin88 cool, thanks for reminding me. i thought i had it turned off, but it was on. lets see what happens now Nov 24 03:15:13 yw Nov 24 03:21:16 " battery monitor apps don't work with KitKat. Google blocked them from accessing battery stats" is this true O.o Nov 24 03:21:26 wtf. Nov 24 03:21:31 i hope not Nov 24 03:21:45 detailed battery usage stats, yes Nov 24 03:21:49 battery level, etc, no Nov 24 03:23:17 thats dumb Nov 24 03:23:52 doubt it... you still have dumpsys Nov 24 03:24:19 haven't tried better battery stats in a while though Nov 24 03:24:29 darn thing is mostly useless Nov 24 03:25:01 desmin88 i guess i have to change it somewhere else http://www.androidpolice.com/2013/11/19/its-not-just-you-google-play-services-seems-to-be-a-battery-hog-today/#comment-1130836736 Nov 24 03:27:03 oh wells, turning it off in Settings disabled it there too . i cross my fingers ;) Nov 24 03:29:33 or maybe its this https://plus.google.com/103751553217540452535/posts/Y1JAhkMaB3Z Nov 24 03:29:55 "I wish I could run Debian stable on my phone and never upgrade it again." Nov 24 03:29:58 haha, \o/ Nov 24 03:30:49 you'd upgrade, just, 5 years behind everyone else :P Nov 24 03:31:03 debian-unstable :D Nov 24 03:31:12 2 years :) Nov 24 03:34:53 right, i've decided to use eclipse/adt.. i created an example project.. Nov 24 03:34:58 how do i edit the UI? Nov 24 03:35:08 i thought there was a graphical way to generate the UI Nov 24 03:35:23 best to learn the xml Nov 24 03:35:38 I would not want to run debian on anything Nov 24 03:35:48 only a Linux geek would want to Nov 24 03:36:00 sure, but better if i can edit graphically and notice the changes in the xml, firstly Nov 24 03:36:06 and later on do it vice-versa Nov 24 03:36:24 you can use the ui designer, just create a new layout file Nov 24 03:36:28 then open it Nov 24 03:36:38 but ui designers are mostly useless Nov 24 03:36:54 hmm, too many nice clothes I'm bringing along... Nov 24 03:39:18 heh Nov 24 03:39:32 i'm a really crappy ui designer myself Nov 24 03:47:14 hello Nov 24 03:47:30 {o} Nov 24 03:47:35 :P Nov 24 03:47:44 anyone here use cyanogenmod? Nov 24 03:48:11 Curly-Brace, see topic.. it says cutsom roms in #android-root Nov 24 03:48:53 right...see, someone pointed me here when I needed help with cooking up an android mod Nov 24 03:54:40 so Nov 24 03:54:47 is there any supported way to screen incoming calls Nov 24 03:55:00 on gingerbread it seems you could do some hack with reflection and talk to the TelephonyService Nov 24 03:55:10 but now you can't get MODIFY_PHONE_STATE permission anymore Nov 24 03:55:24 I found hack with emulating KeyEvents to hang up the phone, but it needs root Nov 24 03:56:28 I set textIsSelectable=true for a textview in an adapter for my ListView. It opens the copy/share/search context menu, but it wont close if I touch anywhere else on the screen Nov 24 03:56:55 I have to press the back key on my phone Nov 24 04:03:03 has anyone had problems with genymotion recently? Nov 24 04:03:23 for whatever reason, i cannot get the VM to startup, though if I run it bare through VirtualBox, it boots fine Nov 24 04:40:04 Oh well, I'm not seeing anything better than the Moto X on Verizon, so that's probably what I'll get Nov 24 04:40:10 Maybe find some way to sell my iPhone 4S. Nov 24 04:42:16 lg g2. Nov 24 04:42:42 Is a piece of crap. Nov 24 04:42:44 why Nov 24 04:42:51 The software. Nov 24 04:42:58 how so Nov 24 04:43:03 I feel like if you switch from a 4S you should really get an S4 Nov 24 04:43:03 you know, just for consistency Nov 24 04:43:03 :p Nov 24 04:43:15 Also, the Verizon model has a lower build quality for who knows what reason Nov 24 04:43:26 [source needed] Nov 24 04:43:47 http://arstechnica.com/gadgets/2013/09/lgs-g2-smartphone-gets-caught-living-in-the-shadows-of-giants/ ← Source provided. Nov 24 04:44:01 Compare the Verizon back and the regular back. Nov 24 04:44:18 It is mysteriously crappier. Nov 24 04:44:37 still like the g2 Nov 24 04:44:39 i have one for sprint so Nov 24 04:44:44 Also, for some reason it doesn't have a multi-tasking button. Nov 24 04:44:46 It has a hardcoded menu button. Nov 24 04:44:59 * g00s holds his tongue Nov 24 04:45:01 my favorite android device is the N7 Nov 24 04:45:10 my phone is an S4, i really like the N5 though Nov 24 04:45:13 g00s: its okay, let it out Nov 24 04:45:25 I like the N7, but I need a) a phone for device testing and b) a phone so I actually know what using Android is like again. Nov 24 04:46:28 htc one, s4, one max, moto x, note 3 Nov 24 04:46:59 HTC One → HTC, therefore no. S4 → Samsung, therefore doubly no. Nov 24 04:47:14 then you're fucked Nov 24 04:47:14 https://www.youtube.com/watch?v=M5QGkOGZubQ Nov 24 04:47:18 If there were button I could tick while ordering a G2 that said "just give me it without your crappy changes" then I'd be ok. Nov 24 04:47:29 As is, the best option is the Moto X. Nov 24 04:48:09 And it'll be slightly fun since I went from a Droid 1 to an iPhone 4S and then if I go back to a Moto X I can keep the two-manufacturer thing going. Nov 24 04:48:30 why dont you like htc or samsung Nov 24 04:48:36 Well, two-company thing. There are a few manufacturers on the iPhone, depending on the part. Nov 24 04:48:58 wat Nov 24 04:49:28 HTC has a history of doing terrible things to the UI. Not as bad as LG, somehow, but bad. Samsung is in the same boat, but also has this weird hatred for Google, so I avoid them. Nov 24 04:49:51 what do you mean to ui Nov 24 04:50:13 to the Nov 24 04:50:23 * Nilium stares Nov 24 04:50:37 sense 5.5 is sex. Nov 24 04:50:54 You, sir, are a liar. Nov 24 04:50:58 A liar and a scoundrel. Nov 24 04:51:11 Also you have numbers in your name, so you're also a robot or a prisoner. Nov 24 04:51:12 you are too picky Nov 24 04:51:28 umm.. i want to put a horizontal bunch of button that are always at the bottom of the screen. Nov 24 04:51:30 Maybe a prison robot or a robot prisoner. Nov 24 04:51:33 how would i achieve this? Nov 24 04:52:01 Well, first you'd make a "horizontal bunch of button" and then you'd put 'em at the bottom of the screen. Nov 24 04:52:05 dodobrain: why do you want to do this Nov 24 04:52:14 Do not question the dodobrain. Nov 24 04:52:30 It is the dodobrain's will. Nov 24 04:53:01 thank you Nilium Nov 24 04:53:03 heh Nov 24 04:53:18 i made 3 buttons next to each other horizontally Nov 24 04:53:30 but i don;t know how to align them now to always be at the bottom of the screen Nov 24 04:54:05 what do these 3 buttons do Nov 24 04:54:16 also, the buttons i added are from the form widgets, so there is space between them, etc. eventually i want to get rid of the space between buttons Nov 24 04:54:18 nothing yet Nov 24 04:54:29 why cant they be actionbar icons Nov 24 04:54:39 oh, they will switch to different parts of the application Nov 24 04:55:06 actionbar icons, umm.. i think i need a tutorial on android layout, etc. Nov 24 04:55:14 i don;t even know what an actionbar is Nov 24 04:55:37 wtf Nov 24 04:55:44 also, whats this big bar on the top when i an in the layout design view? Nov 24 04:55:49 maybe this is the actionbar? Nov 24 04:56:06 you should learn these things Nov 24 04:57:45 yeah, whats the best resource? Nov 24 04:57:58 http://developer.android.com/training/basics/firstapp/index.html Nov 24 04:58:04 ah, thanks Nov 24 04:58:06 * dodobrain reads Nov 24 04:59:34 Oh nice, apparently the Moto X's camera problems were fixed. Nov 24 05:05:05 ok, saw the demo code with the ABS Nov 24 05:05:31 and cannot believe that I have been wandering here and there while all the help was sitting on my laptop Nov 24 05:07:19 ABS? Nov 24 05:07:40 Anal Ball Smash Nov 24 05:07:48 ^ Nov 24 05:08:00 huh? Nov 24 05:08:02 ... you know, when you sit on your balls? Nov 24 05:08:28 Arbitrary bowels 'splosion Nov 24 05:09:08 Anus Breaking Shits Nov 24 05:09:25 Assimilating Butthole Surfers Nov 24 05:09:46 Android Bong Smoke Nov 24 05:09:54 ok, i'm done with that one now Nov 24 05:09:55 antilock braking system Nov 24 05:10:14 I drive an old car durka42 :-( Nov 24 06:03:49 what should be textSize unit for best view across different screens Nov 24 06:03:51 dip ? ? Nov 24 06:03:58 sp Nov 24 06:16:18 it should be sp. Nov 24 06:21:19 pfn , have you seen this? http://hawtdispatch.fusesource.org/ Nov 24 06:21:50 trying to figure out what is the difference between that and a regular Executor. i guess it can be used with akka Nov 24 06:21:55 scala, etc Nov 24 06:23:49 thanx desmin88 Nov 24 06:27:30 Looney: yw, this is nice resource you can read: http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android Nov 24 06:29:31 ok, so TIL that dip == dp Nov 24 06:32:43 yup lol Nov 24 07:02:38 g00s, sounds super old Nov 24 07:02:50 doesn't sound useful... Nov 24 07:25:47 strange, I want two buttons in a line Nov 24 07:26:04 they look neat but not when I rotate phone Nov 24 07:26:23 one button gets bigger/wider than other Nov 24 07:27:09 although both are 150dp wide Nov 24 07:29:52 hi Looney Nov 24 07:30:37 I guess it depends which layout, if its filling parent and then maybe you need to set the weight, or get it to stay constant Nov 24 07:32:06 I am almost done with this scanning storage for media lol, took me forever Nov 24 07:33:24 now the next big trick is how to grab a frame of video and make it a preview screenshot icon image beside the title of the video in the list Nov 24 07:35:31 yo Nov 24 07:35:59 I am in a relativelayout Nov 24 07:36:03 and maybe with some AI that determines that the frame is not all black, because most videos start with all black Nov 24 07:36:43 setting weight, pointer ? ? Nov 24 07:37:07 if you want them to be evenly distributed across the width Nov 24 07:37:37 android:layout_weight="0.50" for each button Nov 24 07:37:54 shmooz: he is in a relatively layout Nov 24 07:38:33 oh, crap how my supposed to keep track of what layout does what , feckin ell Nov 24 07:38:45 what? Nov 24 07:39:31 hmm, well I do have layout_width of 150 dp for both button Nov 24 07:39:41 looks all nice and neat Nov 24 07:39:52 show the xml Nov 24 07:39:54 pls Nov 24 07:40:01 but when phone is rotated, on button is wider than other Nov 24 07:40:05 xml coming up Nov 24 07:42:53 http://pastebin.com/j1sLYujd Nov 24 07:42:57 my buttons Nov 24 07:43:08 only two harmless textviews above them Nov 24 07:43:09 I can't believe there was no nice example online to scan storage, I had to put all the clues together myself Nov 24 07:43:31 well, you can now make on example yourself shmooz ;-) Nov 24 07:43:35 just the whole xml please Nov 24 07:45:08 well my way is probably not that clean, so it wouldn't make a good example, maybe after I clean it up a bit Nov 24 07:45:26 but at least it works, and it seems to scan pretty fast Nov 24 07:47:07 desmin88: I do not think what you want to see but nonetheless, here you go http://pastebin.com/c3vMnpMp Nov 24 07:47:40 cool, can you give me some screen caps Nov 24 07:55:32 I'm looking for boku sample code, but can't find any. Does anybody know where I could find something? Nov 24 08:04:43 Is there any possible way to have spanned strings defined in xml, i.e multicolor text? Nov 24 08:07:10 html Nov 24 08:07:35 without any programmatic interaction Nov 24 08:07:44 html Nov 24 08:07:51 desmin88 does't seem to be working. with the screen off, i'm losing 10% battery every hour Nov 24 08:08:01 fucming google Nov 24 08:08:06 gaggahahaha Nov 24 08:08:08 g00s: you only have one option now. Nov 24 08:08:11 destroy it. Nov 24 08:08:17 i just fucking turned it off Nov 24 08:08:27 maybe next week i'll turn it back on and shit will start working Nov 24 08:08:42 i'll just use the emus for now Nov 24 08:08:49 google kinda did drop the ball here Nov 24 08:08:58 flash krt16s Nov 24 08:09:13 what is krt16s Nov 24 08:09:21 pfn kitkat users are having the same problem Nov 24 08:09:36 I've been off charger for 16hrs and have 3h screen on time Nov 24 08:09:41 seems CacheUpdateService is holding a wakelock forever Nov 24 08:09:48 I'm at 70% Nov 24 08:10:10 im on kitkat Nov 24 08:10:14 http://productforums.google.com/forum/#!msg/nexus/-u_hnLy4vrM/d5c3XXackakJ Nov 24 08:10:15 krt16s Nov 24 08:10:46 nobody seems to know what is going on with play services , or what app is provoking the behavior Nov 24 08:11:11 are you on krt16s? Nov 24 08:11:29 no, still have 4.3 Nov 24 08:12:33 http://www.androidheadlines.com/2013/11/google-play-services-draining-battery-lately-youre-alone.html Nov 24 08:12:48 http://www.reddit.com/r/Android/comments/1ra1wo/google_play_services_draining_my_battery_super/ Nov 24 08:13:34 although, i tried everything. well, i just turned it off for now ;) Nov 24 08:16:58 turn off auto backup in +? Nov 24 08:17:09 i disabled that app Nov 24 08:17:59 oh fuck me its started to happen to me too now Nov 24 08:18:01 prolly cuz you did that Nov 24 08:18:03 46% battery usage Nov 24 08:18:37 google pls. Nov 24 08:24:13 hey, if i need to deliver an APK to a client, how can i make sure he cannot upload this apk to google play? Nov 24 08:24:35 (barring a complete reverse engineer) Nov 24 08:25:44 why would you impose such restriction to a client Nov 24 08:26:04 for example because it is an in-house app Nov 24 08:26:17 i also need to distribute to testers Nov 24 08:26:24 and none of them can upload it either Nov 24 08:26:47 why don't you just tell them it's not for publishing Nov 24 08:26:49 keep getting this abd error, no such file or directory. I put the sdk in the workspace folder was that wrong? Nov 24 08:26:49 i can make them sign nda's but i would like a technical backup Nov 24 08:27:06 i can, but that wasn't my question Nov 24 08:27:37 also i installed with sudo apt-get install eclipse so I was having issued updateing. so opended it as sudo eclipse could that mess with the dirs? Nov 24 08:28:05 XMLnewbi: don't run eclipse as root Nov 24 08:28:17 no it won't Nov 24 08:28:26 well Nov 24 08:28:32 saving will save as root Nov 24 08:28:37 so normal user may not have permissions Nov 24 08:28:43 do I need to reinstall now because i did that? Nov 24 08:28:47 well Nov 24 08:28:47 no Nov 24 08:28:52 you need to run ADB as sudo Nov 24 08:28:57 but not eclipse itself Nov 24 08:29:05 you just need to chown all the files to your non-root user Nov 24 08:29:56 im trying to download in SDK manager and im getting the error ABD no such file in dir Nov 24 08:37:07 hey guys when the specs say ROM, does it pertain to the "hard drive storage" of the phone? i don't understand Nov 24 08:37:16 it's always next to RAM which im familiar with Nov 24 08:38:18 Is the phone's "internal storage" size different from the ROM size? Nov 24 08:53:39 Hi all, just released an obfuscated version to the Playstore, and got a NoClassDefFoundError on a method call Nov 24 08:53:44 why would this happen?! Nov 24 08:57:41 proguard cutting classes you should have retained? Nov 24 09:20:01 genymotion please find virtualbox :( Nov 24 09:23:56 hey ther Nov 24 09:24:30 hi Nov 24 09:25:25 when i shuffle the order of a view in my project i'm getting strange errors saying the type of the view can't be cast Nov 24 09:25:45 i switched the order of a button and an imageview, it's saying the button can't be cast as an imageview Nov 24 09:26:01 hi Nov 24 09:26:04 it's weird, i didn't change the names, any idea how this could come up? Nov 24 09:26:42 how can I have some kind of listener on the system time? I need to do an action each second. Can this be implemented without using sleep on a thread? Nov 24 09:27:46 Zgary: i don't know how to do what you're trying to do but it seems like a job for threads of some sort Nov 24 09:28:26 Zgary: check out Timer and TimerTask classes Nov 24 09:29:36 that's probably better advice Nov 24 09:30:08 Well, I got a bunch of stuff done today and had fun making a video of it all. Nov 24 09:30:11 erdos: not sure about your problem Nov 24 09:30:12 The new screenrecord utility would make me cry tears of joy if I wasn't incredibly jaded. Nov 24 09:30:25 what exactly do you mean Nov 24 09:30:28 it's very weird! tricky to google for as well Nov 24 09:30:41 i feel like i've had that issue and it was a silly typo or xml issue Nov 24 09:30:48 hmm, i'll check the xml Nov 24 09:32:03 I am looking at TimerTask , can it be set so that it executes exactly as the system seconds increment? Nov 24 09:33:06 i can't see anything.. can you notice anything here? http://pastebin.com/QD2cCjyP Nov 24 09:33:38 Zgary: sure, set it to 1000 ms Nov 24 09:34:46 erdos: what is the error you are getting? Nov 24 09:36:10 "Unable to start activity"... "android.widget.Button cannot be cast to com.dirkdirk.googleyize.CropImageView" Nov 24 09:37:04 thats when it starts up, but i shuffle the view back to the bottom of the list it works fine >_< Nov 24 09:37:08 this is so weird Nov 24 09:39:24 oh wtf Nov 24 09:39:37 ok so i changed the id of the view and it fixes it... Nov 24 09:39:48 some weird eclipse issue maybe Nov 24 09:53:14 yeah, probably Nov 24 09:53:20 eclipse has loads of bugs Nov 24 09:53:25 when in doubt, clean project and/or restart Nov 24 09:55:55 hello Nov 24 09:57:39 or simply ditch eclipse Nov 24 09:57:56 Looney: what is the proposed alternative? Nov 24 09:58:04 i am all ears :) Nov 24 09:58:30 hmm, I switched to much frown upon ant+vi combo Nov 24 09:58:56 ah Nov 24 09:59:08 maybe if i could get used to emacs key bindings i would use that Nov 24 09:59:19 is there any generic reason why an asynctask would run onPreExecute() but sometimes not perform its doInBackground() or onPostExecute() methods? Nov 24 09:59:42 onPostExecute() only gets called when doInBackground() returns Nov 24 09:59:49 i suppose doInBackground() wont execute until onPreExecute() completes Nov 24 09:59:50 that makes sense Nov 24 09:59:58 that's what i thought too Nov 24 10:00:13 for me, onPreExecute() does close to nothing. I can't see how that would hang Nov 24 10:00:18 hrm Nov 24 10:00:36 try some console messages so you can see where it falls off Nov 24 10:01:38 i did that too Nov 24 10:01:45 it apparently completes to the last line of the method Nov 24 10:02:27 * hesperaux puts a log output at the very beginning of doInBackground() Nov 24 10:03:33 verified. it does everything in onPreExecute() but doesn't even make it to the first line of doInBackground(). Nov 24 10:04:17 the task will read a file at a byte location determined by a seek bar's progress Nov 24 10:04:56 on release of touch, the seek bar calls the async task. it works fine up to a certain point in the file. If i try to seek from like 95%-100% it just hangs. Nov 24 10:05:46 i can skip around in the file just fine at lower percentages, but once I try to seek ~95-100% of the way, all subsequent tasks hang before doInbackground(). Nov 24 10:07:01 whenever the seek bar is released, it cancels any existing tasks and starts a new one, too...and i see that happening. I really don't get this. Nov 24 10:07:03 hesperaux: there's a thread pool of grand total of 1 threads to run asynctasks with Nov 24 10:07:10 if a previous task has not returned, no new tasks will run Nov 24 10:07:25 alankila, by return, do you mean return? or will cancelling it do the trick? Nov 24 10:07:44 you must exit doInBackground somehow Nov 24 10:07:54 hesperaux, and seeking from outside a task to lets say 99% works? Nov 24 10:07:59 cancel will attempt to interrupt the thread if you tell it to do that Nov 24 10:08:24 but interrupts will only stop i/o and sleep and stuff like that, afaik Nov 24 10:08:40 alankila, if the user asks to seek to a different spot, I call thread.cancel(true) on it and it does indeed die (i check to make sure) Nov 24 10:08:46 since admob like for sign up is making me go round, so AirPush it is Nov 24 10:08:50 if you're stuck computing something, you need to check if (Thread.isInterrupted()) break; occasionally or something Nov 24 10:09:06 hmmm.. Nov 24 10:09:10 interesting Nov 24 10:09:37 the onPreExecute runs as soon as the asynctask is added to scheduler Nov 24 10:09:56 so generally this will always run, the ability to add a task to the queue implies ability to run onPreExecute Nov 24 10:11:20 regarding tasks i also do have some question: can i somehow explicitly change the UI task? i do know that only one task is allowed to draw stuff... can i change that one somehow? Nov 24 10:14:43 alankila, well you're clued me in to the possible issue - maybe the previous thread gets locked up by some crap code of mine and then even cancelling it successfully does not allow me to rerun the task Nov 24 10:17:29 alankila: sorry, could you please clarify this: "there's a thread pool of grand total of 1 threads to run asynctasks with" Nov 24 10:17:49 zpr: when you do 'new AsyncTask() { ... }.execute()', this goes by default into a 1-threaded executorservice Nov 24 10:17:52 at least since android 3.0 Nov 24 10:18:13 before this, there used to be a whole bunch of threads potentially available to do this, but this proved to be a problem for number of reasons Nov 24 10:18:45 alankila: i'm not sure i understand. for a single task or are you suggesting there cannot be more than 1 thread running at a time? Nov 24 10:18:51 one of them is that programmers didn't know that asyncs could run in parallel; another is that you can waste a lot of memory accidentally by running too many tasks in parallel Nov 24 10:19:08 that is the point, though Nov 24 10:19:13 zpr: the default executorservice handling asynctasks has 1 thread in its pool. What about this is difficult to understand? Nov 24 10:19:36 handling *all* asynctasks? Nov 24 10:19:49 all asynctasks of that application which do not specify an executorservice Nov 24 10:19:49 how could programmers not know asyncs run in parallel? that is their main feature Nov 24 10:20:21 are you sure this is the case? i have an application on my other monitor with multiple threads Nov 24 10:20:22 zpr: they run in parallel, but also parallel together. If you put 10 asynctasks, they don't execute serially but all start running truly parallel, giving 11 threads in your program Nov 24 10:20:26 this proved to be surprising Nov 24 10:20:26 zpr, i think he's saying they got rid of it because people like me wrote a task that can hang itself Nov 24 10:20:52 and if you keep trying to create more and more threads, it explodes the poor phone Nov 24 10:21:09 alankila: sorry but surprising to whom? i really dont understand Nov 24 10:21:09 if you think about the strict memory limitations that android apps generally grapple with, the singular threads best be very cheap in memory terms or you risk intermittently going out of memory Nov 24 10:21:11 since i can only make one, i get kicked in the head right away if i write a bad task Nov 24 10:21:35 zpr: let's just say that ordinary android applications programmers do not understand parallel processing. Nov 24 10:22:00 they copypaste some asynctask shit together without understanding it in a fine display of cargo cult programming. Nov 24 10:22:01 alankila: right, that is why it is suggested to fork every non-direct-UI task to a background thread Nov 24 10:22:11 a serial executor is more likely to work in those situations. Nov 24 10:22:39 alankila: i suppose their code wont run very well Nov 24 10:23:05 whats the concern with that? they will crash their phones and not get accepted to the market lol Nov 24 10:23:14 I've seen numerous newbies fire an asynctask, but in the UI thread immediately ask the result of the asynctask Nov 24 10:23:20 ironically i say this and google play services crashes on my phone Nov 24 10:23:24 so they then wonder why using asynctask didn't help Nov 24 10:24:05 so async tasks were capped at the extremely strict limit of 1 because some people copy paste code from tutorials? Nov 24 10:24:28 zpr: not really. It is the right solution, catering for a memory constrained system and inexperienced programmers. Nov 24 10:24:39 and you can ALWAYS provide a larger thread pool for asynctasks once you know what you're doing Nov 24 10:25:07 seems silly to cater to inexperienced programmers but ok. parallel processing and asynchronous design is very powerful. Nov 24 10:25:08 alankila, not sure what you mean...do they do thing = asyncask.execute(); Log.i(TAG, "Thing: + " thing);? Nov 24 10:25:18 hesperaux: no Nov 24 10:25:40 AsyncTask foo = ...; foo.execute(); nowIWantToUseTheResult(foo.get()); Nov 24 10:25:48 the foo.get() stops until the asynctasks is ready Nov 24 10:25:55 oh Nov 24 10:26:07 isn't that why you use onPostExecute()? Nov 24 10:26:13 in terms of not forcing the UI thread pause, this is of course complete waste of time Nov 24 10:26:17 to execute something on the UI after it's done? Nov 24 10:26:21 sure Nov 24 10:26:37 but it requires people to think in a different way, not conceive the program as a serial list of statements to execute... Nov 24 10:26:47 sure, Nov 24 10:26:48 ok, i see what you mean Nov 24 10:26:55 but rather as a state machine which enters different states and has methods to handle the various states it is in Nov 24 10:27:02 but the core of android is event driven paradigm Nov 24 10:27:16 it is asynchronous by design Nov 24 10:27:24 things just happen and listeners get called Nov 24 10:27:41 its inherently parallel -- all the time Nov 24 10:28:05 why cater to people sticking square pegs in round holes? Nov 24 10:28:15 because popularity matters Nov 24 10:28:17 nevermind, i know the answer to that one. but i'm confused now Nov 24 10:28:18 i think google wants more people to use it Nov 24 10:28:23 and it was stupid to have something like up to 64 threads in the default asynctask pool Nov 24 10:28:38 firstly you don't have that many CPU cores, so it's likely that you are only slowing down the average execution time of the task Nov 24 10:28:43 why does my app work then? :P Nov 24 10:28:52 secondly, you are implicitly placing a very strict cap of memory consumption per thread, in order of 100 kB Nov 24 10:28:55 this is very, very little Nov 24 10:29:32 side question: is it normal for frequent canvas draws to instigate garbage collection? Nov 24 10:29:33 64 is a lot but maybe 3 or 4 at least Nov 24 10:29:36 and thirdly, programmers really don't understand parallelism and never will, so you want to help them to not fuck up Nov 24 10:30:30 alankila: so in the current implementation, if you start 2 async threads at once Nov 24 10:30:39 asynctask Nov 24 10:30:45 they will execute serially. Nov 24 10:30:47 one will wati for the other? Nov 24 10:30:55 unless you specify differently by giing a different executorservice Nov 24 10:31:03 in terms of computations or lines? Nov 24 10:31:34 onPreExecute() of the second one will wait for onPostExecute() of the first one? Nov 24 10:31:38 serially in sense of one after the other Nov 24 10:31:42 no, it will not Nov 24 10:31:47 onPreExecute runs at task queueing time Nov 24 10:31:53 ok Nov 24 10:31:55 sorry Nov 24 10:31:56 it's just immediately called when execute() is called Nov 24 10:31:57 doInBackground? Nov 24 10:32:03 my mistake Nov 24 10:32:09 the doInBackgrounds will not overlap in time. Nov 24 10:32:13 ah Nov 24 10:33:08 3 or 4 threads i think would be more reasonable than 1 or 64 Nov 24 10:33:38 common things like starting gps and network or camera should happen simultaneously to involve the use of newer phones cores Nov 24 10:33:44 * alankila thinks there are no good values, but 1 is likely the least bad one. Nov 24 10:35:09 I mentally classify executor services to different types: for UI activity related pools, single thread is most likely the best; for cpu intensive pools, the count should be number of cpu cores; for i/o related, there's a limit given by available memory and little else. Nov 24 10:35:59 these are based on simplifications/expectations of what the tasks will do. The ui-pool is merely a way to give control back to OS while you process user action. User generally can only take one action at a time, so that's fine. Nov 24 10:36:39 the cpu intensive pool obviously wants to saturate execution resources, and the i/o pool wants to saturate the bandwidth on assumption that cpu usage is basically nonexistent per task, so submitting as much in parallel as possible makes sense Nov 24 10:37:24 because android is very severely memory limited, it's probable that merging i/o and cpu pools makes sense. Nov 24 10:38:15 so you take care to only hand out 4 computation threads to a thread pool that has, say, 6 or 8 threads, and then the remaining can be used to handle your i/o, but you really can't afford much more than this because you'll hit the RAM limit. Nov 24 10:38:37 depending on your application etc. You got to have an idea about the resources your types of tasks will need. Nov 24 10:48:28 for i/o by the way I wasn't thinking about network i/o. I recommend against using a wide pool for network. 1-2 threads for that is fine Nov 24 10:48:54 it'll just make all data transfer incredibly long times, making the average task completion time worse Nov 24 10:53:38 Noob question. I want to write some JSON to a string using a JsonWriter object. I am happy with my writer. What I can't figure out is what object I need to pass across as an OutputStream parameter to my writeJsonStream method. Can anyone help? Nov 24 10:54:44 Can I install playstore apps from the android emulator? Nov 24 10:55:21 Why would you want to do that, ExeciN? Nov 24 10:55:31 dont have a phone? lol Nov 24 10:55:37 want to play angry birds? Nov 24 10:55:53 The answer is no. Nov 24 10:55:54 writteninr3d__: It would be a bit more convinient if I had dropbox on the emulator Nov 24 10:56:02 Use a device. Nov 24 10:56:16 alankila: regarding user taking one action at a time. consider a multiplayer game, such as air hockey on the phone Nov 24 10:56:19 the answer is yes, but it's probably easier to pull the apk off a device and install it that way Nov 24 10:56:24 I do not have an android device, this is why I use the emulator to test my app Nov 24 10:56:30 multi touch is fascinating Nov 24 10:56:35 regarding implementation Nov 24 10:57:58 hi I'm trying to build my project with gradle but it failes due to a proguard error, this is the complete log: http://pastebin.com/M5KDmEGe it says that it cant find the class com.....JavaScriptInterface, but this class does exist, I just copypasted the package and name over... how to do this right? Nov 24 10:58:06 *fails Nov 24 10:58:25 can I sent an apk to the emulator? I could sent my app that way. Nov 24 10:59:03 ExeciN: yes, if you open it in an explorer or download it with the browser, you can install an apk to the emulator Nov 24 10:59:21 Your emulator has access to the net. Why not download an apk from the web while the emulator is up and running? Nov 24 10:59:52 <^cheeky> i download the sdk 19, but in the samples i cant find the code for transitions and Scene for the animations , does anyone know the name of what the demo is, or which folder the transitions framework example code is ? Nov 24 11:00:37 hi Nov 24 11:00:50 how can I detect when a live wallpaper is out of focus? Nov 24 11:00:55 what I mean is a way to sent an apk to the emulator without using the net. As of now I was getting my apk from my dropbox account but when I had no internet I had to start a local webserver just to host that apk to the emulator. Nov 24 11:02:07 ExeciN: you should be able to send an apk to the emulator directly from your IDE - I'm guessing you're an IDE person - or you can use adb directly Nov 24 11:02:09 You wouldn't be able to use the Play Store all that much without an internet connection anyways. Nov 24 11:02:41 if that's your issue, you have no issue :) Nov 24 11:02:43 writteninr3d__: this is why I am asking for an offline alternative Nov 24 11:03:21 Leeds: I use Corona SDK so I have to do it myself Nov 24 11:03:45 whatever the fsck that is... learn to use adb Nov 24 11:04:08 oh, a cross-platform doodad... whatever Nov 24 11:06:59 adb gives me this kind of error: Failure [INSTALL_FAILED_ALREADY_EXISTS]. Can I replace or just delete the previous app? Nov 24 11:07:15 does the app version matter? Nov 24 11:07:28 ExeciN: adb install -r Nov 24 11:07:42 Ge0rG: thanks Nov 24 11:19:50 I want to write some JSON to a string using a JsonWriter object. I am happy with my writer. What I can't figure out is what object I need to pass across as an OutputStream parameter to my writeJsonStream method. Can anyone help? Nov 24 11:31:51 <^cheeky> the Transisions demo sample is located in the android-studio/sdk/samples ? i am really having a hard time trying to find the sample code for this dev byte http://www.youtube.com/watch?v=S3H7nJ4QaD8&feature=youtu.be Nov 24 11:33:02 guys.. how would i build a bottom button bar like the one in this screenshot? http://img3.pixhost.org/images/4062/19562500_screenshot_2013-11-24-21-24-15.png Nov 24 11:37:17 <^cheeky> nvm found it... Nov 24 11:47:10 Is it possible to show a country on Google Maps and it's Islands? For example, Spain and the Canary Islands (which are a bit far away) Nov 24 11:52:05 stuck at bootloop, i'm unable to mount efs or data, any way of recovering my data? Nov 24 11:52:17 is it not possible to run proguard on library projects? Nov 24 11:54:46 Pyromanus: you did that with an app? Nov 24 11:54:57 recoverymode menu Nov 24 11:55:09 can access with adb shell Nov 24 11:55:16 try reading the channel topic... Nov 24 11:55:32 ah alright, sorry Nov 24 12:56:28 trying to open up my app's activity by sending an intent with a particular action after the user clicked on the notification. Works so far. The activity is being started and shown to the user. But the action somehow is not being sent. Any thoughts on that? Here's the code where I construct the contentIntent for my notification: http://pastebin.kde.org/pv95so79y Nov 24 12:57:38 When I debug my app, I can see that there is no extra or action associated with the Intent that I receive in my onCreate method Nov 24 13:05:54 The same thing happens when I try to attach an Extra to my Intent. The activity is being started correctly after I've clicked notification, but there is no Extra attached to it :( Nov 24 13:14:24 I have a question: Nov 24 13:14:24 I have an Activity with a ProgressBar. This Activity calls a Service which sets a recurring alarm which is supposed to update the ProgressBar, but I can't figure out how to access the ProgressBar from the BroadcastReceiver. Any ideas? Nov 24 13:19:12 Boz0r: You can get a reference to your ProgressBar by (ProgressBar)findViewById inside your Activity Nov 24 13:19:49 yeah yeah, but I need a reference to it from my BroadcastReceiver Nov 24 13:21:23 Boz0r: well. Isn't your broadcast receiver just an inner class in your Activity? Nov 24 13:21:38 No, since it is started from a Service Nov 24 13:22:17 I don't know if I can have both the Service and the receiver as inner classes Nov 24 13:22:24 that seems pretty messy Nov 24 13:22:55 Boz0r: So you're sending Broadcasts from withing your Service, and want to receive them in your Activity, right ? Nov 24 13:22:58 within* Nov 24 13:23:47 Right now I don't have the BroadcastReceiver as an internal class, just as a separate one Nov 24 13:24:07 But yeah, if I can't modifiy the ProgressBar from outside the Activity, I'll move it back inside Nov 24 13:25:21 Boz0r: Ofc you could, by exposing the reference in your Activity and then setting it from outside. But I personally wouldn't go that way. Nov 24 13:25:52 Boz0r: I would create a separate Service and a separate Activity class. And then create the BroadcastReceiver as an inner class in your Activity Nov 24 13:26:14 Then you would just call sendBroadcast in your Service and receive them in your Activity's inner class, so you can then directly set the ProgressBar Nov 24 13:26:21 Seems the cleanest to me Nov 24 13:26:30 Cool, I'll try it Nov 24 13:26:45 But won't I need a reference to the activity from inside the service? Nov 24 13:27:02 Boz0r: nope that's the beauty of Broadcasts Nov 24 13:27:19 nice Nov 24 13:27:30 Thanks a lot, I hope it works out:) Nov 24 13:27:37 Boz0r: sure np Nov 24 13:29:33 Boz0r: btw. a small hint. don't forget to register an IntentFilter to your BroadcastReceiver, or else you won't receive anything Nov 24 13:29:46 you can do this through registerReceiver Nov 24 13:30:26 keep a reference to your instantiated broadcastReceiver so you can unregister the BroadcastReceiver in your onPause callback method Nov 24 13:31:17 Shameless bump: I'm trying to open up my app's activity by sending an Intent with a particular action after the user clicked on the notification. Works so far. The activity is being started and shown to the user. But the action somehow is not being sent. Any thoughts on that? Here's the code where I construct the contentIntent for my notification: http://pastebin.kde.org/pv95so79y Nov 24 13:31:17 When I debug my app, I can see that there is no extra or action associated with the Intent that I receive in my onCreate method Nov 24 13:31:17 The same thing happens when I try to attach an Extra to my Intent. The activity is being started correctly after I've clicked notification, but there is no Extra attached to it :( Nov 24 13:48:46 <^cheeky> morning , in order for you to swap out fragments, the layout should consist of a frame layout thats empty, well i have been implementing this all this time, but now i am trying to implement animations; specifically the card flip animation from the android documents, but i am kinda stomped on how i could do this. I am actually trying to implement this using the viewpager. I tried implementing by enclosing the view pager in Nov 24 13:48:46 <^cheeky> a framelayout, hopeing i could swap it out and add the flipped card fragment, but it fails, i know i should not be doing this because the framelayout has to be empty to this and it also should be the main layout for the activity it hosts.Is there a way i could implement the cardflip animation with a viewpager ? Nov 24 13:51:44 How I register an intent filter when the BroadcastReceiver is an inner class? If I just write this, it says the manifest is malformed: android:process=":remote" Nov 24 13:51:44 android:name="MainActivity.ProgressReceiver"> Nov 24 13:51:44 Nov 24 13:55:52 Boz0r, use a $ instead of a . Nov 24 13:56:06 Boz0r: or do it programmatically in onResume http://pastebin.kde.org/pytctwbyl Nov 24 13:57:15 If I use a $ it complains that it doesn't have an empty constructor, even though it has one. I'll try the other method Nov 24 14:16:12 hello, Id like to ask about sms spoofing for my company Nov 24 14:16:35 is it doable and legal? to send SMS with my company's name as sender instead of a phone number Nov 24 14:18:35 I can't get the receiver to trigger. Can someone see the problem in my code? http://pastebin.kde.org/p3zvxowci Nov 24 14:20:27 tibbi, depends on your area. illegal in australia for example Nov 24 14:21:51 and do you have any idea if its doable at all? there was some change about it in android 4.2 or so Nov 24 14:21:52 Boz0r: you don't send a Broadcast in your Service Nov 24 14:22:35 Boz0r: sendBroadcast(new Intent(BROADCAST_PLAYSTATECHANGED)); Nov 24 14:23:49 tibbi, not 100% sure, but there are apps ( like https://play.google.com/store/apps/details?id=il.azusdex.incognito_sms_2 ) which target 4+ Nov 24 14:24:04 Boz0r: oh sry didn't see that you're passing the pendingIntent into setRepeating Nov 24 14:24:37 PatrickBic: according to comments it doesnt work :) Ive tried a similar app and the sms wasnt sent Nov 24 14:24:45 Ill look around again, thanks Nov 24 14:25:08 http://stackoverflow.com/questions/9239953/how-to-send-fake-sms-to-my-android-device Nov 24 14:25:18 seems similar.. dunno if the refered link, helps Nov 24 14:25:26 will check https://github.com/thomascannon/android-sms-spoof Nov 24 14:30:12 Any idea why it doesn't trigger? Nov 24 14:30:40 Do I register the IntentFilter the wrong place? Nov 24 14:31:35 I haven't registered it in the manifest, but the onResume code should take care of that, right? Nov 24 14:33:42 Boz0r, did you try making the receiver class static? Nov 24 14:34:18 I'll try it Nov 24 14:35:01 no, it still doesn't trigger Nov 24 14:35:12 ok, any output in logcat? Nov 24 14:36:07 Only the output from the previous method saying it set the alarm Nov 24 14:36:17 and some memory freeing Nov 24 14:37:38 meh, that app is for sending spoofed sms to myself :D Nov 24 14:50:06 how do I detect when an imageview is drawn? Nov 24 14:53:15 view.getVisiblity() Nov 24 14:53:22 I guess Nov 24 14:53:30 is there an event? Nov 24 14:53:34 or view.isShown() Nov 24 14:53:58 dont think so Nov 24 14:56:58 I need to set an input filter for an edittext based on the dimensions of an imageview Nov 24 14:59:12 Thanks! Nov 24 14:59:36 Hi developers! I know this is a wall of text ;) but can someone help me? I have a ViewPager filling half the screen with an expandableListView. The other half of the screen is also an ExpanableListView directly in the activity. Whenever i click a list item in either ExpandableListView the item expands and the item in the same position in the other ExpandableListView also expands. Now this Nov 24 14:59:36 works fine, but when i swipe the ViewPager and the next expandableListView is shown, it won't expand when i click a list item in the expandableList in the activity. So i guess my question really is: How do i get the current view of a viewpager?? Thanks! Nov 24 15:16:59 any solution in compiling Android on OSX Mavericks? Nov 24 15:24:32 I guess I can just install gcc the other way Nov 24 15:36:18 i'm trying to make a dd image of an android device. Nov 24 15:36:19 when i plug in the android device, /dev/sdc appears Nov 24 15:36:19 but when i sudo dd if=/dev/sdc of=/home/dan/Phone.dd Nov 24 15:36:19 dd: opening ‘/dev/sdc’: No medium found Nov 24 15:40:38 perhaps it's the SD card? Nov 24 15:41:03 the SD card is not in Nov 24 15:41:17 iateadonut, right. and that's *why* you're getting the error message. Nov 24 15:41:19 how do we use linux to backup our phone? Nov 24 15:41:24 oh! Nov 24 15:41:36 iateadonut, apparently i didn't make that clear enough before. Nov 24 15:41:49 so, where is the root partition? Nov 24 15:42:17 iateadonut, like i said, generally not available as a mass storage device. Nov 24 15:42:42 iateadonut, you're going to need some sort of andoird imaging tool, not dd. Nov 24 15:44:38 i do see an sg2 in my /dev directory Nov 24 15:44:42 i guess that is it Nov 24 15:45:24 What could be the reason that a platform permission is revoked at installation time, even if it shares the same platform key with the system? (not a testkey) Nov 24 15:46:41 do you know of a linux android imaging tool? Nov 24 15:46:49 to make an image connecting over usb? Nov 24 15:47:10 (the phone's screen broke. i just want to make an image before i take it apart) Nov 24 15:48:10 iateadonut: (try #android for non-development questions) Nov 24 15:49:05 when doing imaging, I usually forward a TCP port over USB, then use netcat and dd to forward over adb (gzip to account for the slow USB link) Nov 24 15:49:12 this needs root ofc. Nov 24 15:49:14 Lekensteyn, system is different from systemOrSignature Nov 24 15:50:26 pfn: android.permission.NET_ADMIN is protectionLevel="signature" Nov 24 15:50:47 dunno Nov 24 15:51:00 anyone done kernel modding before here? Nov 24 15:51:42 Curly-Brace: you are asking that on the #android-dev channel? :-) Nov 24 15:52:29 ....its still dev! Nov 24 15:52:38 But yeah, I'm asking on others as well =\ Nov 24 15:54:02 iateadonut, i guess #android is the place to try. for whatever reason i wasn't expecting them to have the answer. anyway, i haven't had to do it myself. i can give you rationale for why it does present a block device, if you just want to understand why it doesn't. but that won't actually help you solve your problem. Nov 24 16:00:24 good morning Nov 24 16:23:32 hello all.. Im just trying to install Android NDK stuff using eclipse update sites and Im getting errors that none of the repositories contains for example osgi.bundle,com.android.ide.eclipse.adt Nov 24 16:23:36 any ideas? Nov 24 16:32:47 every time I call getPixel on my bitmap, I get -1 as the result, any idea why this might be? other methods like getHeight() show the proper dimensions Nov 24 16:33:59 Jonno_FTW: Dunno. Works on my bitmaps. Nov 24 16:34:13 this is really annoying Nov 24 16:34:17 Jonno_FTW: not sure what would make it return an error there Nov 24 16:34:24 it's the bug that's making my app break Nov 24 16:34:53 actually is -1 invalid? Int color is a ARGB Nov 24 16:35:02 yes it's invalid Nov 24 16:35:05 so if it's FF000000 it might flip signed Nov 24 16:36:12 I get ffffffff Nov 24 16:38:26 dragorn: and the bitmap works when I use it as content for an imageview Nov 24 16:38:28 i am creating a custom View derived class in Android4+. What is the best practice in order to have resizable graphics? i.e. i would like to take into account screen pixel density Nov 24 16:39:06 Jonno_FTW: if you're loading it from a resource, is it getting scaled? Nov 24 16:39:23 nope Nov 24 16:40:55 dragorn: http://pastebin.ws/6k742f Nov 24 16:41:49 output gives the right dimensions and file path, but the pixel is still -1 Nov 24 16:43:27 no clue, sorry. The bitmaps I need to get data out of I generate myself. Nov 24 16:48:48 I want to mess around with modding, I sucessfully ran "adb pull /system/framework/framework-res.apk" but running "adb pull /system/app/SystemUI.apk" tells me is doesnt exsist. Any idea? Nov 24 16:49:28 #android-root Nov 24 16:49:53 roger that, thanks Nov 24 16:54:23 -1 is valid, that's white Nov 24 16:54:43 -1 = 0xffffffff Nov 24 16:54:50 = white Nov 24 16:55:33 getPixel returns an int, 32 bit Nov 24 16:55:53 ok Nov 24 16:56:08 oh ignore me Nov 24 16:56:10 pfn is right Nov 24 16:57:37 lack of signed vs unsigned in Java is so irritating Nov 24 16:57:42 yeah Nov 24 16:58:01 well then Nov 24 16:59:47 how do I see all the debug messages in eclipse logcat? Nov 24 16:59:52 it just says ... 14 more Nov 24 17:00:53 that's how stack traces work Nov 24 17:01:01 it's a wrapped exception Nov 24 17:01:14 see the beginning, that's the 14 frames Nov 24 17:02:01 well I get java.lang.IllegalStateException when I try to use bitmap.setPixel Nov 24 17:02:32 is the bitmap mutable? Nov 24 17:02:44 i guess not, how do I make it so? Nov 24 17:03:17 where is the bitmap coming from? IIRC if you load it from resources it won't be, but if you use Bitmap.createBitmap it will be Nov 24 17:03:33 ok Nov 24 17:03:33 err Bitmap.createBitmap(int width, int height, Bitmap.Config config) Nov 24 17:04:19 whys it so hard to read the exception message? Nov 24 17:04:39 do I make a mutable bitmap from the URI or as a copy of the original bitmap Nov 24 17:05:56 hi, can someone help me solve this error:" fatal: No existing author found with 'Zgary' " on Android Studio when I try to commit to git? Nov 24 17:08:13 use the Google Nov 24 17:08:18 i am Nov 24 17:16:15 Can I make an xml shape that is an inverse circle (as in, a white square with a transparent circular chunk cut out)? Nov 24 17:27:47 I used teh Google. sent me here :)) Nov 24 17:27:52 anyway, fixed Nov 24 17:31:40 an Android studio, is there a way to insert my computer's IP address into a source file at compile time? Nov 24 17:32:01 modify the grade build to do that Nov 24 17:32:11 I have a productflavor 'staging' that should insert the user's IP as a constant in a file before compiling Nov 24 17:32:16 to run a test harnes Nov 24 17:35:11 any idea how I might accomlish this with gradle? i'm not seeing how I would modify a source file during a build script Nov 24 17:36:47 regreddit: you could maybe use the application plugin to run some java which does it for you, if not directly execute a script Nov 24 17:38:17 regreddit: or something like http://mrhaki.blogspot.com/2010/09/gradle-goodness-run-java-application.html Nov 24 17:41:48 dragorn, thanks, I'm reading that now - looks like creating an app properties file with gradle at compile time is the way to do it Nov 24 17:42:56 currently im using a productFlavor with constants defined for staging and production, but I'll switch staging to use a properties file Nov 24 18:09:20 hi Nov 24 18:09:53 i have an expandable list view and i want a button inside each entry whether or not that entry contains a child Nov 24 18:10:08 how do i go about doing that? Nov 24 18:12:34 when there are chlidren the button should still be there, but only one. i don't want a button for each child. Nov 24 18:13:17 probably put the button in your list item layout and in your on item create in your list adapter set it accordingly, if I understand you. Nov 24 18:16:42 that makes sense Nov 24 18:18:31 That will let you determine if there are child entries for a particular line as well Nov 24 18:37:12 Today my tabs in TabManager started to disappear when changing display orientation. Nov 24 18:37:25 *TabHost Nov 24 18:37:35 I've not changed anything in TabHost managing code. ;< Nov 24 18:37:43 What could be the reason? Nov 24 18:39:12 I am still struggling to grant my app the android.permission.NET_ADMIN permission. I have so far tried: testkeys, platform keys and newly generated platform and release keys Nov 24 18:39:43 then I installed it with `adb install myapp.apk` (built with ant, verified with jarsigner that it got signed) Nov 24 18:40:20 even with and without sharedUserId="android.uid.system" it either does not install or the permissions get revoked Nov 24 18:40:24 I thought you have to pull some tricks and move it to /system for that to work Nov 24 18:40:57 durka42: yeah, I was afraid that it has to go that way. Is there no other way to gain the permission in /data/? Nov 24 18:41:39 <|0xD34D|> system apps cannot be installed in /data Nov 24 18:42:46 <|0xD34D|> and NET_ADMIN protection level is just signature so you should not need to need to use the system uid Nov 24 18:43:41 |0xD34D|: well, I supposed that only the signature matters, but since all failed I just threw in the system uid, hoping it would work.. it did not. Nov 24 18:44:16 alternatives for not installing to /system/ is using Superuser, but that is a fragile approach Nov 24 18:44:20 <|0xD34D|> why not pull a system app from the device and check the signature, see if you are even matching it Nov 24 18:44:50 I could not find it in the framework jars, which one would you suggest? Settings? Nov 24 18:44:59 <|0xD34D|> Settings, SystemUI Nov 24 18:45:30 <|0xD34D|> any app that has LOCAL_CERTIFICATE := platform in their Android.mk Nov 24 18:47:19 yep, it got signed with the same platform key Nov 24 18:48:14 <|0xD34D|> maybe you should watch logcat as you install the app to see what is going on then Nov 24 18:49:54 I have logcat opened all the time and get: Not granting permission android.permission.NET_ADMIN to package (protectionLevel=2 flags=0x8be44) Nov 24 18:50:10 looking in the source, the only reason why it would fail is when the signature check fails Nov 24 18:50:38 but the platform keys used for the system and apk are 100% the same Nov 24 18:53:51 it's almost if Android considers /system and /data separatedly. Nov 24 18:56:48 Is Android Studio more than an IDE? Nov 24 18:56:51 * LuisLeite good afternoon Nov 24 18:59:59 hello Nov 24 19:02:16 is there a way to password protect some settings ? Nov 24 19:08:45 64-bit JDK. Is that Java SE? Nov 24 19:09:43 Where do I download JDK? Nov 24 19:13:05 During orientation change... is current Activity object *destroyed* and new one created? o_O Nov 24 19:13:13 I observe such behaviour. Nov 24 19:13:23 And I could swear it wasn't so a few days ago. Nov 24 19:13:52 <|0xD34D|> it should be so unless you tell the system you want to take care of specific config changes Nov 24 19:14:46 |0xD34D|, and I do that in AndroidManifest.xml? Nov 24 19:15:00 |0xD34D|, it has not changed since then... Nov 24 19:15:33 <|0xD34D|> you would do that in AndroidManifest.xml Nov 24 19:15:41 So strange. :< Nov 24 19:15:56 <|0xD34D|> I tend to let the system do it's thing and I take care of saving instances of things where needed Nov 24 19:17:05 |0xD34D|, I'd do the same thing... if only the Activity didn't prersist through orientation change before. I assumed it's a normal behaviour. Nov 24 19:18:06 But Fragments are not recreated, right? Nov 24 19:20:48 <|0xD34D|> only if you use setRetainInstance(true) Nov 24 19:20:48 <|0xD34D|> http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean) Nov 24 19:21:35 "Google says if you have an account with them, it’s not just indiscriminately searching through your pictures, but their servers are looking for possible digital fingerprints the FBI may be interested in." eeeinteresting Nov 24 19:22:26 |0xD34D|, thank you. <3 Nov 24 19:22:46 <|0xD34D|> np Nov 24 19:23:33 g00s: I read that as "no, we're not doing that, except that actually we are." Nov 24 19:23:48 hah maybe thats what play service is eating my battery for ;) Nov 24 19:29:10 g00s: http://i.imgur.com/FRvCyVZ.png Nov 24 19:29:33 g00s: this is an image in a private album which was never shared Nov 24 19:29:51 icedp is it your album? Nov 24 19:29:58 yes Nov 24 19:30:22 wtf; its too dark for me to tell what it is, but thats amazing Nov 24 19:30:38 that means google is scanning all photos incl. private Nov 24 19:31:35 it doesn't _necessarily_ mean the results are shared though Nov 24 19:32:38 if they can be shared they will eventually for some Nov 24 19:32:54 for some… $$$ Nov 24 19:33:01 ) Nov 24 19:37:28 durka42: "The company says its database is share with law enforcement and watchdog groups such as [...]" "When an image is found, an employee will inspect it to make sure [..]" :-D Nov 24 19:37:54 it's always in the fine print isn't it Nov 24 19:39:19 doesn't matter really Nov 24 19:40:03 they do because they can Nov 24 19:44:43 I have a problem with a broadcast not triggering a receiver. I register an IntentFilter in an onResume() on the activity and use the same action name for the Intent for the broadcast. Can anyone see the error in my code? http://pastebin.kde.org/pbbprijzb Nov 24 19:51:52 Boz0r: is the value of 'time' huge? Nov 24 19:52:06 it's 1 in this context :) Nov 24 19:52:17 It's from an input field and I'm testing with 1-10 Nov 24 19:59:18 Is it normal for Gingebread to be unbearably slow when using https? No difference on JB on my GNex, but on my HTC Legend a single basic JSON request goes from like 0.5s to 30s+ to load when using https (document size under 1kb) Nov 24 20:00:05 back in those days, htc did weird things with buffer sizes Nov 24 20:00:16 but i dont see how it would impaxt Nov 24 20:00:30 It's running CM7, shouldn't be affected by HTC's weird stuff Nov 24 20:01:07 yeah, dunno then Nov 24 20:01:17 I'd expect at least the CPU to be completely loaded or something due to encryption, but it's mostly idle (< 20%), I just don't get it Nov 24 20:02:15 Seems fine in the browser, but other apps seems affected as well. I will continue testing then Nov 24 20:02:17 oh i found that bug, they had a 2mb buffer which was causing ooms - not related Nov 24 20:20:17 is there a script / cli app that will automatically scale drawables and put them in appropriate resource dirs? Nov 24 20:20:55 I mean that you supply a xxhdpi drawable and it makes xhdpi, hdpi, mdpi and ldpi Nov 24 20:26:17 shvelo, This is not really recommended as the idea is to regenerate them to be as crisp as possible. But the standard ImageMagick "convert" command should do what you need fine Nov 24 20:27:04 so I write a script for running imagemagick commands on them? Nov 24 20:27:15 btw is using optipng recommended? Nov 24 20:27:16 If you use some UNIX variant it's a bash one-lines basically Nov 24 20:28:02 for f in *.png; do convert "$f" -resize "50%" "../hdpi/$f"; done Nov 24 20:28:06 Or something in the like Nov 24 20:28:11 thanks Nov 24 20:28:59 Can't test right now on my machine, my kernel does some funky things and processes hangs randomly, so you might need to change the command slightly Nov 24 20:29:22 Bump: I have a problem with a broadcast not triggering a receiver. I register an IntentFilter in an onResume() on the activity and use the same action name for the Intent for the broadcast. Can anyone see the error in my code? http://pastebin.kde.org/pbbprijzb Nov 24 20:38:34 Can someone explain the difference between the v4 and v7 support libraries? Nov 24 20:38:49 I'm trying to get action bars working with the support library. Nov 24 20:40:04 I've looked into ActionBarSherlock, but that just makes it all more confusing. :P Nov 24 20:49:43 The v4 support library backports fragments and a lot of other stuff. It works from api level 4. There are several v7 support libraries, all of them work from api level 7. AppCompat is one of the v7 libraries, it backports the action bar Nov 24 20:57:40 AppCompat looks uglier than Actionbarsherlock Nov 24 20:58:22 for some reason it mimics the ICS actionbar Nov 24 20:58:39 conta me Nov 24 20:58:41 So does ABS Nov 24 20:59:20 but it doesn't have the blue line Nov 24 21:01:27 and it's bigger Nov 24 21:02:56 Yes it does, and no it isn't Nov 24 21:03:44 maybe I'm using the different version idk Nov 24 21:05:19 ah Nov 24 21:05:32 nevermind Nov 24 21:05:35 So, if I wanted to have some backport of the actionbar and use ActionBar tabs, what should I use? Nov 24 21:05:51 minsdk 15 and drop backports Nov 24 21:05:57 minSdkVersion=14 Nov 24 21:06:18 I know for a fact one of my users uses 2.3 Nov 24 21:06:21 2.2.3* Nov 24 21:06:29 oh no...one user :P Nov 24 21:06:45 Out of the 27 people who will be using that, that's a big fraction. Nov 24 21:06:53 No it's not. Nov 24 21:06:53 It's an in-house thing. Nov 24 21:07:17 4%. That's less than global percentage in 2.3 Nov 24 21:07:22 Cheaper to get him a Nexus 5 than to invest time for API <14. Nov 24 21:07:23 I still use 2.3 and I don't feel like a real Android developer ;/ Nov 24 21:07:38 shvelo: You should be ashamed of yourself Nov 24 21:07:45 I'm poor :D Nov 24 21:07:53 shvelo me too :) Nov 24 21:08:16 Okay. Time to pray that it's not too big of a problem. :P Nov 24 21:09:15 I'm switching to 4.4 as soon as a rom becomes available that will be acceptable for day-to-day use Nov 24 21:09:31 my phone is motorola bravo :D locked bootloader shit Nov 24 21:14:01 hi. i have a custom java module for appcelerator titanium that opens the front facing camera with an overlay (launchActivityForResult). it takes the picture but the onresult function is not called so I can't transfer the image back to my titanium app. anyone knows where to look and could help (can upload the module and send a link) Nov 24 21:54:37 Hi, I have a PreferenceActivity and I'm trying to implement caret-up-navigation using the v7 support library. But I can't seem to use getSupportActionBar() in the PreferenceActivity Nov 24 21:56:00 also, I'd like to set