**** BEGIN LOGGING AT Thu Apr 17 02:59:58 2014 Apr 17 03:00:45 I know I would never be caught dead in the past tense of play. Apr 17 03:00:51 ugly stuff. Apr 17 03:01:07 Thanks again jug6ernaut - I need to go to sleep now, its 4am haha Apr 17 03:01:13 lol Apr 17 03:01:15 k Apr 17 03:01:16 gl Apr 17 03:01:20 & np Apr 17 03:01:26 See ya all! Apr 17 03:01:53 Anthaas needs to move here, it's still early. Thinik of all the extra time he would have. Apr 17 03:02:01 :P Apr 17 03:03:53 lol Apr 17 03:04:49 oi, openvpn was susceptible to heartbleed Apr 17 03:05:56 alex_PP try the new camera blurring yet ? Apr 17 03:06:36 I did, looks like hell on m7 Apr 17 03:07:03 ey, can someone help me out? I'm working on an app, almost done, and editing the player settings. I'm new to Android development, and I'm not sure where to find the bundle identifier on the developer console, or if I just make one up in the player settings (using Unity)? Any help would be vastly appreciated, thanks for your time. Apr 17 03:10:31 while (UpStatus.get("xda-developers.com") == UpStatus.DOWN) { IRC = (IRC == null? new IRC() : IRC()); IRC.connectIfDisconnected(); IRC.spam(); } Apr 17 03:10:55 g00s, que? Apr 17 03:11:29 alex_PP http://www.androidpolice.com/2014/04/16/hands-on-with-the-google-cameras-new-lens-blur-effect/ Apr 17 03:11:59 i liked my google camera the way it was :( Apr 17 03:12:10 change is scary Apr 17 03:12:55 "This item is not compatible with your device." Apr 17 03:13:03 darn, kitkat devices only :( Apr 17 03:14:42 today i adopted the Wharton code style Apr 17 03:14:46 2 space tabs Apr 17 03:14:52 annotations on the same line as declarations Apr 17 03:15:01 everything is more compact Apr 17 03:15:43 Still have func specs above each function? Apr 17 03:15:48 xml, maybe. java, not :) Apr 17 03:16:05 Mango_Man thats the google java guidelines Apr 17 03:16:44 g00s: oh Apr 17 03:16:47 maybe they decided they their android methods were too long and had too many levels of indentation, so instead of fixing it they decide to put everything on one line Apr 17 03:17:30 * g00s hopes he never has to read 2-space indented java Apr 17 03:18:23 two-space is the only way Apr 17 03:18:31 cringe Apr 17 03:18:41 does anyone know what's the difference between the "Approved" and the "Eligible" status on admob? Apr 17 03:18:51 i quite like the 2 space thing Apr 17 03:18:56 but the annotations belong above Apr 17 03:19:02 except for @Inject Apr 17 03:19:21 i'm going to beat you all to 1-space Apr 17 03:19:37 g00s: two space is the google java style guide Apr 17 03:19:43 2-space makes me feel claustrophobic Apr 17 03:19:44 yeah Apr 17 03:20:10 g00s: Then what will you do for breaking up a single line when it gets long? Apr 17 03:20:11 JakeWharton does an attr defined in have to be bound to a namespace when used Apr 17 03:20:25 depends where Apr 17 03:20:26 for my own tags Apr 17 03:20:28 I don't like the same indent as the rest of the code when I have to do that. Apr 17 03:20:33 xml: yes, theme: no Apr 17 03:20:50 I.E for a function call that has loads of args. Apr 17 03:21:00 Fenny: hanging is always double indent Apr 17 03:21:09 JakeWharton ok, so if i have res/xml/myfoo.xml - i still need to do it there then ? Apr 17 03:21:15 no idea Apr 17 03:21:25 something is amiss :( Apr 17 03:21:51 AttributeSet is empty Apr 17 03:21:54 * g00s keeps digging Apr 17 03:22:50 I still have problems putting my open braces at the end of the line Apr 17 03:22:58 Doesn't look right to me. Apr 17 03:23:19 too much vertical space is wasted with them on their own lines Apr 17 03:23:26 i hated that doing C# for a few years Apr 17 03:23:36 yeah, we did that in c/c++ Apr 17 03:23:50 I loved it from c++ then in C# Apr 17 03:24:08 You could look down the line for your matching brace Apr 17 03:24:13 If anyone knows Unity, please query me (I will pay for help) Apr 17 03:24:14 i'm pretty flexible, as long as they don't as me to prefix with 'm' , thats when its fighting time Apr 17 03:24:27 ^^^^ Apr 17 03:24:34 Fenny: any decent IDE will show vertical lines on the indent stop Apr 17 03:24:43 and highlight the matching brace when the cursor is on it Apr 17 03:25:05 Sometimes all I get is a terminal and vi or nano Apr 17 03:25:20 does no one have admob experience here? Apr 17 03:26:11 oh man, this is messed up. gradle or AS is putting the R file from one sub-project, into another sub-project's build/ tree Apr 17 03:33:15 maybe i'm confused. if i have a project, with 2 sub projects (app, lib) , should I see lib.R in the package view of app? Apr 17 03:34:22 oh i guess, its under build/exploded-aar Apr 17 03:35:16 alex_PP also http://phandroid.com/2014/04/16/google-details-the-crazy-3d-mapping-tech-behind-google-cameras-lens-blur-effect/ Apr 17 03:44:46 hello Apr 17 03:44:57 anyone here Apr 17 03:46:00 g00s, that's pretty cool Apr 17 03:46:09 * wiky is away: I'm busy Apr 17 03:46:11 spin off from projects whatsitcalled? Apr 17 03:46:21 * wiky is back (gone 00:00:12) Apr 17 03:46:28 * wiky is away: I'm busy Apr 17 03:46:35 project tango Apr 17 03:46:36 anyone here is interested to do an open source app? Apr 17 03:46:51 suppose it depends, cortexA9 Apr 17 03:46:54 alex_PP i wish Lr got more of those kinds of things. imho, Lr needs better (1) keyword management (2) adaptive stuff like blur and content-aware gradient filter Apr 17 03:47:06 and multi-exposure management Apr 17 03:47:22 hdr & median would be nice Apr 17 03:47:59 i never bothered with keywords Apr 17 03:48:07 and now i've too many to go back and add it all Apr 17 03:48:09 need them if doing stock Apr 17 03:48:15 Hello, I am wondering if someone is aware of an API call that would tell me if I am running Dalvik or Art on the system Apr 17 03:48:17 i ain't Apr 17 03:48:39 alex_PP: i wanna make a new open source project, looking for people interested Apr 17 03:49:04 but people are going to want to know what it is Apr 17 03:49:06 cortexA9, Apr 17 03:49:15 oh Apr 17 03:49:50 alex_PP: is an open/virtual world app for android Apr 17 03:50:12 quick question from an Android newbie. Is there a cheat sheet / website which would tell me a list of most commonly used function calls from a given class (say TextView) , with a much better description than present in android developer website ? Apr 17 03:50:36 alex_PP: there are already open source projects but not for mobile Apr 17 03:50:59 For some APIs, I dont really find the description too much useful / clear from android developer Apr 17 03:51:08 actually for a lot of APIs. Apr 17 03:51:28 cortexA9, just start, publicise it a little and interested parties will join in Apr 17 03:51:29 the programmer guides are good, but yeah the javadoc are terribad Apr 17 03:51:47 g00s, where do I get teh programmer guides ? Apr 17 03:52:01 i mean the guides on d.android.com Apr 17 03:52:48 when google had code search, i learned how to use a method by seeing how other projects used it ... Apr 17 03:52:59 there are some crawlers still but they aren't as good Apr 17 03:54:06 i find developer.android.com a little bit complicated. Apr 17 03:55:48 g00s, http://code.ohloh.net/ http://grepcode.com/ Apr 17 03:56:06 yeah, grepcode. Apr 17 03:56:27 ohloh was koders.com Apr 17 03:57:24 the fuinction call explanations under aPI reference s are very small. and running through a whoe 100 functions to begin with is sort of intimidating :-( Apr 17 03:57:46 ok. thanks for the website, I cna always get some inspiration lookat teh codes over there. :-) Apr 17 03:57:49 don't start with the reference :| Apr 17 03:57:56 yes. where do I start with ? Apr 17 03:58:22 i'd start with tuts + programmer guides on d.android.com Apr 17 03:58:47 http://developer.android.com/training/index.html Apr 17 03:58:55 http://developer.android.com/guide/index.html Apr 17 03:59:42 its starting to take a very long time to deploy an apk to my device Apr 17 03:59:47 i wonder if something is going wrong Apr 17 04:00:26 well. I already have a book that I am reading. Its called Android Programming - The big Nerd Ranch Guide Apr 17 04:00:35 yeah, that should be good Apr 17 04:00:59 I amcurrently trying laerning creating "Dialog". Apr 17 04:01:33 clearly there are a lot more functions, than whats in teh book. i want to konw what are the diff functions (atleast most commonly used ones) for a given class / sub class, Apr 17 04:02:06 which is impt in order to know what feature is already available (adn what not) and how to use them Apr 17 04:02:17 If i know what is available, how shouldnt be a problem, i can always google and figure out . Apr 17 04:03:26 hi, im trying to build an NDK toolchain with GDC support; is there a better channel for questions (basically, the D runtime needs a slice of thread-local storage but it seems i cant get access to bionic's storage other than pthread_key_create)? Apr 17 04:05:58 Hi guys, how do you make VideoView strech full screen and properly? right now when I start my video it’s landscape mode and its in the middle of the screen, here my Class Code: http://pastebin.com/H3VQ7ePf and Activity Code: http://pastebin.com/pWvgL173 Apr 17 04:10:20 droidNub: I tried to register sensoreventlistener in new thread. But handleMessage method in handler is never called. What I'm doing wrong. http://paste.ubuntu.com/7261266/ Apr 17 04:13:03 slani: can you paste more code? Apr 17 04:13:50 ""According to a recent survey of 1,000 U.S.-based software developers, 56 percent expect to become millionaires in their lifetime. " Apr 17 04:13:52 bwahahah ! Apr 17 04:14:17 g00s: were they all in silicon valley? Apr 17 04:15:05 mathstuf doesn't seem like it http://adtmag.com/articles/2014/04/16/developer-survey.aspx Apr 17 04:15:14 but yeah, i know what you mean :) Apr 17 04:15:16 it's not that much of a far reach if you include assets including super etc. Apr 17 04:16:45 g00s: more interesting, imo: "95 percent feel they are one of the most valued employees at their organization." Apr 17 04:17:35 yeah; my experience at BigCo: the people i delivered to thought i was valuable, but my management & support structure thought i was an interchangeable cog Apr 17 04:17:38 from the other numbers, im guessing they asked software shops, not devs on internal monstrosities that never see the light of day Apr 17 04:17:53 yeah, seems weird Apr 17 04:19:26 hm, so my xml file in res/xml/foo.xml needs attrs bound to namespaces :( Apr 17 04:19:31 boo verbosity Apr 17 04:20:04 you know what android needs Apr 17 04:20:05 xsl Apr 17 04:20:22 is there xpath in there somewhere ? Apr 17 04:20:29 then we'll see who's complaining about verbosity Apr 17 04:20:39 or objective c :p Apr 17 04:20:52 http://fuckingblocksyntax.com/ Apr 17 04:21:17 i just wanted to say not Apr 17 04:21:44 i like obj-c syntax; its verbose because the arguments are named. i don't think thats a bad thing Apr 17 04:21:53 except for the first :) Apr 17 04:22:00 it ends up ok because it forced xcode ot have some of the best auto complete Apr 17 04:22:13 yo freelancers, what is like the average prevailing development rate per hour Apr 17 04:22:24 Looney depends on "everything" Apr 17 04:22:25 writing a quote/estime Apr 17 04:22:28 $600/day Apr 17 04:22:37 maybe a bit higher Apr 17 04:22:39 8 hours a day wabz or 24 Apr 17 04:22:44 :-P Apr 17 04:22:45 8 are you crazy Apr 17 04:22:57 (yes 8) Apr 17 04:23:05 AUD$ Apr 17 04:23:07 hehe, I sort of am crazy wabz Apr 17 04:23:18 doesn't my nick give you any hint/notion Apr 17 04:23:21 wabz you in autralia too ? Apr 17 04:23:26 yeah Apr 17 04:23:32 along with bankai_au Apr 17 04:24:12 I wonder if google io "randomness" has per country quotas Apr 17 04:24:15 gee what a loser ... Apr 17 04:24:18 so, quoting 80/hr is likely to give someone a hear attack perhaps :-( Apr 17 04:24:24 wish me luck mateys Apr 17 04:24:42 I was just having lunch with an apple dev relations guy Apr 17 04:24:46 depends on experience, location, everything Looney Apr 17 04:25:02 100/hr in SF maybe 120? Apr 17 04:25:07 he was saying a problem they now have is a *lot* of people put their name down because it was free to do so and weren't actually interested in going to wwdc Apr 17 04:25:21 i quote more around 100/hr unless it's a charity or the like Apr 17 04:25:27 g00s: but I live on internet Apr 17 04:25:33 where S5 has been launched Apr 17 04:25:45 need to have it Apr 17 04:26:24 what city are you in bankai_au? Apr 17 04:26:28 BNE Apr 17 04:27:08 when you charge by clock ticks, who own the code Apr 17 04:27:14 ahk Apr 17 04:28:13 Looney: depends which country you live in and the contract, but generall not you Apr 17 04:28:33 oh, then I would be giving 100 Apr 17 04:28:37 instead of 80 Apr 17 04:37:09 i'm pretty sure bankai_au asks 100/hr but gives the work to his 2 dogs, which work for 3 treats / hr Apr 17 04:38:36 3? do you want them to get fat?? Apr 17 04:39:11 :( Apr 17 04:39:14 you have them on treadmil desks right ? Apr 17 04:39:36 >100/hr in SF is pretty uncommon Apr 17 04:40:14 maybe if you're part of a consulting firm, sure, but your cut is significantly less Apr 17 04:45:26 is true that you outsource work to your dogs bankai_au :-P Apr 17 04:45:32 how is the google camera app not compatible with the xperia z Apr 17 04:45:36 amateurs Apr 17 04:46:24 isn't that caused by sony rather than google ? Apr 17 04:47:13 I doubt it Apr 17 04:47:23 I installed their older camera apk which works well Apr 17 04:47:51 sony also have https://github.com/sonyxperiadev/device-sony-c6603 Apr 17 04:49:39 needs 4.4 i think Apr 17 04:49:52 nuts Apr 17 04:50:26 oh yeah it even says in the description Apr 17 04:50:27 Works on phones and tablets running Android 4.4+ KitKat Apr 17 04:51:26 so there you go everyone, minSdk-19 \o/ Apr 17 04:51:37 5.3%! Apr 17 04:51:50 no more minSdk 14 Apr 17 05:05:05 how can I stop new thread Apr 17 05:11:17 Someone was demo'ing an app to the Android developer meetup today with about 100 people Apr 17 05:11:36 He said "It's an app for kids, how many people here have kids?" Like, 2 people raised their hands Apr 17 05:12:01 lol... talk about knowing your audience Apr 17 05:12:50 Ologn the rest *were* kids, right ? Apr 17 05:12:54 :P Apr 17 05:13:14 g00s, pretty much, at the bar afterward I spent most of my time talking to some kid in high school Apr 17 05:16:48 Whats the process like for publishing an Android game to Ouya? Anyone done it? Apr 17 05:17:28 slani, you don't Apr 17 05:18:24 pfn you do if its blocked :) Apr 17 05:18:52 blocking isn't really stopped Apr 17 05:19:48 slani more info needed Apr 17 05:20:15 generally, a condition becomes false and call() falls through, or you interrupt if blocked Apr 17 05:27:05 Nilium has been quiet lately; i'm sure he's up to something crazy Apr 17 05:30:14 Crazy: not really. Just sitting around being depressed lately. Apr 17 05:30:45 Which is its own form of crazy, but it's not terribly productive or interesting. Apr 17 05:31:21 speaking of depressing https://www.commondreams.org/view/2014/04/14 Apr 17 05:31:26 its all an illusion :| Apr 17 05:34:48 Nilium maybe depression is not a form of crazy, but closer grasp of reality Apr 17 05:35:37 Some people try to justify it like that, but it isn't. Apr 17 05:36:19 if its biochemical , then no Apr 17 05:36:45 Even if it's psychological, it's still not reality if it's tainted. Apr 17 05:41:44 it would be nice if there was a way to control the shown logcat columns in AS; all i want is time, tag and message Apr 17 05:42:48 don't need the pid, package name, which wastes a ton of space Apr 17 05:43:48 unless i missed some config option Apr 17 05:49:43 I just keep DDMS running separately from IntelliJ Apr 17 05:49:46 hmm https://android-review.googlesource.com/#/c/61680/ Apr 17 05:50:04 Nilium i dont have the memory for that ;) although i could use pidcat Apr 17 05:50:12 That way, on the off chance something goes wrong, only one thing is lost Apr 17 05:50:46 If you have at least 3gb of memory, you should be able to do that just fine Apr 17 05:51:01 i usually have 203--mb free Apr 17 05:51:04 200-300 Apr 17 05:51:56 Granted I have 16gb because I like the idea that I could keep a bunch of stuff in memory without swapping Apr 17 05:53:52 Does anyone know if its possible to dynamically update a view that is part of a custom list view? Meaning like when you make a custom adapter and have it inflate a text view and an imageView in the getView() method and then usually set the text/image in that view based on the "position" int provided by the list given to the adapter....I am wondering if you can, after the list view is created with the adapter, edit one imageView from 1 item of the l Apr 17 05:54:20 Sorry to come with possibly a noob question, but I am having trouble searching for the answer to my issue because I believe I may not be using the right terms, or I am not able to simplify the question enough to get any viable results, I am hoping someone can help me Apr 17 05:54:38 the4ndy i think i have done that , sure Apr 17 05:55:07 if you sayNotifyDatasetChanged() then of course, it asks each position to update itself Apr 17 05:55:44 but i had some views hooked up to rx observers and they changed as events flowed ;) Apr 17 05:55:44 You can if the view exists. Apr 17 05:56:11 notifyDataSetChanged is the best way... Apr 17 05:58:22 Wouldnt that just re-run the getView() code and thus basically "reset" the list view Apr 17 05:59:49 like image a list of red squares next to buttons, how do i do things like set an onClickListener to each button and have it change the associated red imageView to Green? Apr 17 05:59:55 imagine* Apr 17 06:01:03 to be clear i guess, I know ho to set onClickListeners and how to change the background color of an imageview, im simply wondering how you reference a view that is a part of list view Apr 17 06:02:40 would i be able to or have to save the Button and ImageView objects as parts of the custom Java Object that houses the data to fill the list view? Apr 17 06:04:54 i dont know that "save" is the right term, but my custom objects (i believe they are reffered to as POJOs) have for example a string field and two int fields, and so now i can handle 1 object that itself houses multiple simpler objects.....i am certain you guys know that, but thats my understanding and I hope im not horribly wrong. i hope that helps explain my issue Apr 17 06:23:46 i suppose I was too confusing? I hope I am not breaking any rules, I have tried since asking to continue to figure it out/search for the answer. Should I be using a BaseAdapter rather than an ArrayAdatper? Either way, I seem to be unable to reference the individual views created by the adapter Apr 17 06:28:20 I tried to register sensoreventlistener in new thread. But handleMessage method in handler is never called. What I'm doing wrong. http://paste.ubuntu.com/7261266/ Apr 17 06:32:52 this was pretty interesting http://www.androidpolice.com/2014/04/15/android-design-head-matias-duarte-talks-about-the-essence-of-design-google-io-and-the-death-of-mobile/ Apr 17 06:33:00 listening to duarte Apr 17 06:33:38 thinks 'apps and web' are dead, the next thing brings best attributes of both Apr 17 06:33:42 I watched that last night g00s it was pretty good Apr 17 06:34:33 but what he's talking about, multidevice experience; seems like ios and wp or further ahead. at one point josh asked if chrome and android were merging Apr 17 06:35:05 was nice to here android framework was getting lots of scrutiny Apr 17 06:35:25 I found the blog post about the new camera app feature "Lens Blur" to be a good read as well http://googleresearch.blogspot.com/2014/04/lens-blur-in-new-google-camera-app.html Apr 17 06:58:24 hmm just updated android studio to 0.5.5 Apr 17 06:58:39 anyone had a problem with apply plugin: 'android-library' Apr 17 06:58:40 ? Apr 17 06:59:08 not yet Apr 17 06:59:22 hello Apr 17 06:59:38 what if I use openjdk for android ? will that work? Apr 17 07:00:32 tagrudev like what ? Apr 17 07:00:44 its best to hang back on updates and follow the defect tracker :) Apr 17 07:00:53 g00s, facebook lib build gradle Apr 17 07:01:04 does it build from the command line ? Apr 17 07:01:10 the gradle plugin stuff is the same Apr 17 07:01:38 what are the image size and resolution requirements for android app? Apr 17 07:01:58 sara_ubuntu_girl see the design guidelines Apr 17 07:05:18 oh shit Apr 17 07:05:45 https://code.google.com/p/android/issues/detail?id=68643 Apr 17 07:11:46 f that after a clean Apr 17 07:11:52 everything builds fine Apr 17 07:11:54 wtf Apr 17 07:22:04 g00s, "2) Revocation checking generally doesn't work (as a security feature), and especially for mobile, greatly affects performance (negatively) and privacy (negatively)" - discuss Apr 17 07:22:34 am i being dense, how does revocation checking generally not work? Apr 17 07:25:39 i can see how the latter 2 points are valid, not the first Apr 17 07:28:17 Has anyone used libcurl with Android NDK ? I can't do Server SSL Certificate validation, tried so many ways, all fails with error Curl error: Problem with the SSL CA cert (path? access rights?) Apr 17 07:33:53 No matter where I put the CAs /system/etc/securtiy/cacerts /data/data/cacerts /sdcard/cacerts. Setting SELinux to permissive mode.Running my application with android.permissions.SUPER_USER permission, using CURLOPT_CAINFO, instead of a CURLOPT_CAPATH, same error Apr 17 07:34:29 So how the heck can I verify the server's SSL cert on Android NDK ? with libcurl & libssl Apr 17 07:52:24 alex_PP not sure. chrome (desktop) updates its CRL using a technique similar to patching itself; not with OCSP. Apr 17 07:52:59 lots of time it degrades performance, etc; i think FF just assumes trust if it cant connect to the OCSP service Apr 17 07:53:20 but there should be a way to update that in a lightweight manner, say within a 10 day window Apr 17 07:53:56 that kind of emergency hotfix thing needs to be there for android imho; can't rely on all the crap with carriers & oems Apr 17 07:56:07 not really sure if chrome (mobile) just consults the system keystore or what Apr 17 07:56:14 or if it has its own keystore Apr 17 07:56:22 truststore Apr 17 08:17:07 What directories can I read from in Android from inside my app ? Apr 17 08:17:22 Is /data/data/mydir a valid one? Apr 17 08:17:34 What about /sdcard/mydir? Apr 17 08:19:15 so is it no longer possible to edit build.gradle from with AS? its not showing a cursor for m Apr 17 08:20:24 g00s: Did you just update to 0.5.5? Apr 17 08:20:33 yeah Apr 17 08:20:49 oh my cursor appeared after a few minutes :| Apr 17 08:21:02 I'm making a backup at the moment, but I will try in a few minutes Apr 17 08:33:23 Hi *. Do you know if the Fragment method onAttach() is called every time the configuration of its parent activity is changed and this activity gets reloaded? Apr 17 08:33:23 "Called when a fragment is first attached to its activity. onCreate(Bundle) will be called after this." --> "first attached" is a little confusing. Apr 17 08:34:38 As against Gradle as I was at first, I do love it now Apr 17 08:39:41 g00s: works for me. no problems Apr 17 08:40:09 ansgarm yeah, i just had to wait a while. it must have been really busy Apr 17 08:40:58 hi, I was wondering if Timer is the best choice to execute an action periodically (re-downloading a settings file) from a service Apr 17 08:41:50 bassStation2: Depends on how often you want to execute the action Apr 17 08:42:03 ansgarm: just once a day Apr 17 08:42:18 bassStation2: Then I'd prefer the alarmManager Apr 17 08:42:40 It won't consume any power if it isn't running Apr 17 08:43:25 And register a broadcast receiver for bootup Apr 17 08:43:34 this settings need to be saved in my App's DB Apr 17 08:44:28 I already have a receiver for that that starts my service,... should I just add this on my service's onCreate? Apr 17 08:48:11 the docs say this is case where a sync adapter might be better Apr 17 08:51:04 bassStation2: you're right Apr 17 08:51:23 https://github.com/mapbox/mapbox-android-sdk/issues/325 Apr 17 08:51:28 am I missing something here Apr 17 08:51:42 or we are not on the same page Apr 17 08:54:36 Croutons are the shit Apr 17 08:54:36 <3 Apr 17 08:55:43 Brian|CS you using them? i couldn't tell from the demo why they were useful Apr 17 08:55:55 g00s, context awareness basically Apr 17 08:55:57 also they look sexy Apr 17 08:55:58 xD Apr 17 08:56:09 looked like a layout with a textview :) Apr 17 08:56:45 g00s, they solve the context issues with toasts, and they look decent Apr 17 08:56:48 also they're really easy to use Apr 17 08:56:56 for quick hackathon-esque projects they are fantastic Apr 17 08:57:02 Brian|CS are they always in the same place ? Apr 17 08:57:14 g00s, you can move them Apr 17 08:57:21 the default is the top of the screen directly below the action bar Apr 17 08:58:16 i wish the demo showed more. i got it from Play and was not blown away :) Apr 17 08:58:23 maybe i'll look again Apr 17 09:05:54 So if im adding the views programmatically How should I use the viewHolder pattern since there is no any layout file to inflate ? Apr 17 09:23:45 Oh Android, why are you so hacky Apr 17 09:29:14 Did you know that the `cat` command in Android doesn't show up as `cat` in ps? Apr 17 09:29:42 `grep` does. every other android toolkit (afaik) shows up properly. but `cat` does not. Apr 17 09:30:15 s/toolkit/toolbox command/ Apr 17 09:32:10 I'm not sure if the busybox one is similarly affected. Apr 17 09:33:35 csst0111: the view holder pattern is only useful for avoiding layout inflation. Apr 17 09:33:55 if you do not have an inflater then you don't need the pattern. Apr 17 09:34:30 though I suppose you could use it to avoid programmatically recreating the view Apr 17 09:35:09 you just put your view creation code where the inflator would have been. Apr 17 09:35:47 pragma-, hmmm... then I have to create a layout file - yeap seems reasonable Apr 17 09:36:13 if you say so. Apr 17 09:36:28 pragma-, cat might be a builtin of the shell Apr 17 09:39:03 shell@maguro:/ $ type cat cat is a shell builtin Apr 17 09:39:16 alex_PP: Q.E.D. Apr 17 09:39:36 that's whack. Apr 17 09:39:48 grep is a tracked alias for /system/bin/grep Apr 17 09:40:23 https://github.com/android/platform_system_core/blob/master/toolbox/cat.c -- they build it as part of toolbox, why would it also be a shell built-in? Apr 17 09:40:55 there's /system/bin/cat Apr 17 09:41:09 ls -l /system/bin/cat -> toolbox Apr 17 09:41:23 android be cray-cray. Apr 17 09:42:37 what shell is android using? Apr 17 09:43:17 MirBSD Korn shell? Apr 17 09:43:49 bah, i'd like to be able to overlay product flavours over each other Apr 17 09:44:45 any bright ideas? Apr 17 09:45:42 pragma-: ps -p $$ Apr 17 09:45:50 .\/system/bin/sh Apr 17 09:46:19 which I don't know what shell it is Apr 17 09:46:52 it's mksh. Apr 17 09:47:08 ls -l /system/bin/sh Apr 17 09:47:18 right Apr 17 10:01:04 Shouldn't the regex 012* match 0123456? Apr 17 10:01:19 Pattern.matches says otherwise Apr 17 10:02:29 hey there Apr 17 10:03:19 I accidentally called File(Environment.getExternalStorageDirectory().toString(), null) Apr 17 10:03:30 now all my sdcard content is gone Apr 17 10:03:39 is there a way to restore my files? Apr 17 10:06:43 File(Environment.getExternalStorageDirectory().toString(), "").mkdirs(); Apr 17 10:06:45 actually Apr 17 10:07:05 mount it on pc and use some sort of forensic program to retrieve the data Apr 17 10:14:33 dixxy its a nexus4 Apr 17 10:14:40 dunno how to get raw access to storage Apr 17 10:15:46 MohammadAG, 0122222222222 Apr 17 10:16:28 http://regexpal.com/?flags=g®ex=012*&input=01222222%0A01234556 Apr 17 10:16:49 hello, has anyone had internal errors thrown by MediaCodec? I get "E/MediaCodec﹕ Codec reported an error. (omx error 0x80001009, internalError -2147483648)" Apr 17 10:17:15 it seems to encode a few video frames then fails with that error Apr 17 10:18:34 alex_PP thanks for the link :D Apr 17 10:19:07 I have this code that draws a sinewave, http://pastie.org/9087186 Apr 17 10:19:08 and I have this code which is an adapter to create rows, each having two textviews and one View http://pastie.org/9087188 Apr 17 10:19:35 how the hell, am I going to instantiate that drawLine object into the view that's inside that adapter, I want that sine wave to appear between those two textviews Apr 17 10:20:45 Sicp, create a Drawable that draws the sine wave and set it as the background to the View Apr 17 10:21:13 Im going to have to set the drawLine object to that Drawable Apr 17 10:21:43 plus no idea what it would take now to make a drawable Apr 17 10:21:56 or use DrawLine instead of View in your XML Apr 17 10:22:11 https://developer.android.com/training/custom-views/index.html Apr 17 10:22:12 I tried that, I got that error inflating at that line Apr 17 10:22:20 https://plus.google.com/+FrankieSardo/posts/1mHL85NgX4z Apr 17 10:23:11 found in rss, might be usefull Apr 17 10:24:03 let's go with setting that View to a Drawline object Apr 17 10:24:48 I've already done something like this with TextView and Button and EditText, made a class of them that extends TextView, EditText and Button respectively, so that I could make it stylable Apr 17 10:24:53 now if an app i wrote/write is ran under a custom made rooted rom, it will run the same. the only difference is google apps can be blocked (well, without custom rom or root actually because ive done it, but my device is rooted and does it through a different means than a non rooted device couldn't do). I just need to make sure to handle the case that access is denied, or spoofed to certain permissions, Apr 17 10:24:54 but those are often permissions the app has that doesn't need that are blocked and those apps aren't good, but hard to avoid in some cases. any factors missed about running apps running on popular roms used by users that i didn't think of? Apr 17 10:25:19 BullShark, #android-root Apr 17 10:25:53 anyone using this: http://developers.aviary.com/ ? Apr 17 10:26:01 Sicp :: afaik, that's not a programming channel, and not all apps need to require root to run on those. Apr 17 10:27:24 though it may be a good place to get information from end-users who run apps on their custom roms or even ones that require root, but im not asking about an app that requires root right now. Apr 17 10:27:47 BullShark so flash a custom ROM without gapps on a spare device and test away Apr 17 10:27:57 testing == knowing Apr 17 10:28:14 how to get all info as string from TelephonyManager Apr 17 10:28:48 google that, milord Apr 17 10:29:04 and its too general, what could you possibly mean by "info"?? Apr 17 10:29:13 if your app is likely to be used on custom ROMs, be sure to ask or get the user who asks for support to otherwise tell you if they are using a custom firmware, and/or running Xposed. Xposed is the bloody devil, and quickly becoming the #1 cause of support requests for me Apr 17 10:29:32 hmm, i could use this motorola to do that. it's mostly a testing device for ensuring apps will run for the majority of users that are running on 2.3.3 and hardware a device would run if it was to run that version (highest majority of end users last i checked is version 2.3.3 of android) Apr 17 10:30:00 BullShark: run it on genymotion ? Apr 17 10:30:00 with corresponding API level Apr 17 10:30:14 never heard of genymotion Apr 17 10:30:23 may be worth checking out Apr 17 10:30:27 Sicp, all the things that the individual get*() function return.. eg phone number Apr 17 10:31:00 genymotion is the bestest. Apr 17 10:31:21 it is however, still an emulator Apr 17 10:32:21 and generally speaking, anything not completely 100% pure Google sanctified API (and even then), should at least be tested on latest latest Samsung, and latest HTC, latest Sony, etc. OEMs break everything. Apr 17 10:33:05 would be nice to get all TelephonyMangager info as JSON for example Apr 17 10:33:16 Hello! Apr 17 10:33:20 I still get an error inflating XML file when I include Drawline as element type in my XML, if interested alex_PP, see how it was reflected in XML http://pastie.org/9087215 and in code http://pastie.org/9087216 Apr 17 10:33:47 BullShark as for 2.3.3, I wouldn't personally bother supporting it anymore for anything new Apr 17 10:34:05 Chainfire :: i think the goal of roms is still to be able run all, but to make customizations maybe a user wouldn't normally be able to do, ability to deny permissions to sensitive information that's not needed for an app to function unless the user wants to allow gps data being read instead of optional support to pick a location, etc Apr 17 10:34:26 Sicp, implement all the constructors of view Apr 17 10:34:33 and pass the arguments to super Apr 17 10:34:41 What is simply way to change theme for app? Now I can change activity styles dynamically. But I have Views with their own styles Apr 17 10:34:57 BullShark be that as it may, there are many ways and many things that can make a complex system fail. If you wan't to be compatible, test it. If you don't, might as well just resort to praying. Apr 17 10:34:59 And I have two style White and Black Apr 17 10:35:32 Chainfire :: majority of paying customers are likely running a top samsung galaxy s series with a very recent version of android if not latest that similar to that of how android with stock even root stock rom always updates to the latest Apr 17 10:35:38 for simple I make style like Black.mySpecTextView, and some White.mySpecTextView Apr 17 10:35:51 sorry, left out one detail i meant to say Apr 17 10:36:17 BullShark I know that, I sell apps for a living. But if you nkow that as well, why go through the world of hurt of even bothering to support pre-4.0 ? Apr 17 10:36:18 How change styles for view depend on activity style? Apr 17 10:36:56 Jov I don't know the answer, but probably something with http://developer.android.com/reference/android/view/ContextThemeWrapper.html Apr 17 10:37:14 well alex_PP I did that http://pastie.org/9087222 but now I get a nullPointer at line 39 Apr 17 10:38:06 mPath is only set by one of your constructors, i'd guess that one ain't being called Apr 17 10:38:09 because one of the other constructors was called Apr 17 10:38:12 Chainfire: I know about this method. But in that way I should create all Views mannualy and place his style names to wrapper Apr 17 10:38:13 yea Apr 17 10:38:26 i'm sure you can work out how to solve that Apr 17 10:38:28 It really hard code I think Apr 17 10:38:44 Chainfire :: majority of paying customers are likely running a top samsung galaxy s series with a very recent version of android if not latest? the nexus 7 with stock rom which would be oem if not closest to oem rom, even root stock rom always updates to the latest version of android? Apr 17 10:39:38 it works now Apr 17 10:39:47 I have the line inside the view in between the two other views Apr 17 10:39:52 May be has way make styles depends from Activity style? Apr 17 10:40:26 thanks alex_PP Apr 17 10:40:31 is it a security problem to send and store device or SIM ids in the open? Apr 17 10:40:58 Chainfire ? Apr 17 10:41:52 Chainfire :: selling apps for a living, your target is what i mentioned? Apr 17 10:44:33 Jov you know about Activity#setTheme right? Apr 17 10:45:08 g00s: Yes of course Apr 17 10:45:32 so then just inflate with a themed context Apr 17 10:45:45 g00s: I can change Activity style. But I have many Views with custom styles Apr 17 10:46:44 Chainfire do you have any idea how i could apply a 'red' filter to my app; that is so it only looks like black (bg) and red pixels are working ? Apr 17 10:46:52 for night vision Apr 17 10:48:27 Jov: Don't hardcode styes then, use theme attributes Apr 17 10:49:51 g00s, SimonVT I have style.xml like this http://pastebin.com/wFY3Ndz2 Apr 17 10:49:59 android's attr; theme; style stuff totally confuses the hell out of me Apr 17 10:50:38 Ugh, apps with themes.. Apr 17 10:50:57 And for some Views in xml I set style attr. But if I want change style from AppThemeBlack to AppThemeWhite Views not inherit styles Apr 17 10:51:25 be course in style attr I write full style name, like AppThemeWhite.TrackInfo.ValueBig Apr 17 10:51:40 Then you'd make e.g. a statusRowStyle attribute, and point it to the right style in your theme Apr 17 10:51:47 And then use ?attr/statusRowStyle wherever Apr 17 10:52:25 SimonVT: Hm.. Can you show example? Not really understand you Apr 17 10:52:35 themes always look pretty poor, it breaks the zygote preview for all but one of them Apr 17 10:53:14 alex_PP yeah, i have a requirement tho that the app needs to be usable in daylight and complete darkness :| Apr 17 10:53:23 daylight, light theme is fine Apr 17 10:53:34 isn't that what the backlight is for? Apr 17 10:53:40 but in total darkness, i need to switch to black or something Apr 17 10:54:13 It very simple app, and many peoples want dark theme. And others want white. = Apr 17 10:54:14 .. .. Apr 17 10:54:16 alex_PP light theme is still too bright in the dark scenario Apr 17 10:54:24 As close to an example as I'm going to make Apr 17 10:54:34 Google it, or look at the framework.. This is done everywhere Apr 17 10:54:58 SimonVT: Thanks. Let me check and understand Apr 17 10:56:18 SimonVT: looks really cool. I try make. Big Thanks! Apr 17 10:57:36 SimonVT: I need implement Attrs in styles.xml? Apr 17 10:58:02 Anywhere in values/, most people choose attrs.xml Apr 17 10:58:40 Ok. Thans Apr 17 11:15:53 I officially give up with Fragments. Apr 17 11:16:18 quitter Apr 17 11:16:40 I was here last night until 4am getting help from people and nobody can help me fix them Apr 17 11:17:00 The only logical conclusion is that Fragments are wrong. Apr 17 11:17:47 I don't see it Apr 17 11:17:57 if you need the benefits they provide, there aren't many alternatives Apr 17 11:18:12 if you don't, using them is not that different from just putting all the stuff directly into activities Apr 17 11:19:25 Im using a ViewPager, which is the functionality that I need. Apr 17 11:19:56 Im certain I need fragments, its just updating the UI on them is impossible. Apr 17 11:20:12 updating the ui? Apr 17 11:21:03 Yes. I have 4 fragments. When fragments 1, 2, or 3 get updated they each increment a value in the parent Activity. The fourth fragment has to read this when it is displayed and display it. Cannot do. Apr 17 11:21:47 The onResume of the 4th fragment is called before the 3rd fragment has a change to change. Also, the OnPageChangedListener for ViewPager is not reliable. It doesn't always call when a page is changed. Apr 17 11:22:18 hmm Apr 17 11:22:41 Anthaas, don't give up with Fragments, they are so amazing Apr 17 11:22:45 Literally they are black magic Apr 17 11:23:05 Hahaha, I'm told this. However I feel like I'm an ingredient to the potion haha Apr 17 11:23:12 Not the one making it. Apr 17 11:23:18 Adjacent fragments are added to the ViewPager by default, that's why the default adapters call setUserVisibleHint as they go in/out of the visible part Apr 17 11:24:33 SimonVT: How would I go about implementing that then? Im assuming that is set only when the fragment is actually visible? Apr 17 11:24:45 I'm just trying to think where in code it would fit. Apr 17 11:24:55 Yes, the fragment in the current page has it set to true Apr 17 11:25:05 The one that leaves has it set to false Apr 17 11:25:27 Not sure of the order of that Apr 17 11:25:52 But, onResume is not a good indicator for when a Fragment becomes visible.. user visible hint is :) Apr 17 11:25:56 is it the same problem as this? https://stackoverflow.com/questions/11794269/onpageselected-isnt-triggered-when-calling-setcurrentitem0 Apr 17 11:26:36 Ok, so somewhere I want to do (pseudo) if (myFragment.setUserVisibleHint) { updateText() } but where am I putting this if statement? Thats what Im not confused on, because the pagechange listener isnt reliable, and neither is onResume? Apr 17 11:26:40 Man, it's been awhile since I've been on this channel/seen SimonVT active. Guess thats what I get for pulling an all nighter xD Apr 17 11:27:34 You'd probably do it in your fragment Apr 17 11:27:40 You know, when the method is called Apr 17 11:28:00 itamz: No, although that solution doesnt work, the OnPageSelected(index) doesn't always call. So I could be ON that page, and the listener won't trigger. Apr 17 11:28:34 seems like mutating state depending on whether you are being shown or not is kinda brittle anyhow Apr 17 11:28:48 just update the state when the user enters the value, or whatever Apr 17 11:29:01 g00s: Tried it. The Fragment still doesn't update. Apr 17 11:29:07 come on :| Apr 17 11:29:08 Or that, yes Apr 17 11:29:29 This is where my frustration lies, everything apart from setUserVisibleHint has been tried. Apr 17 11:30:02 Anthaas is this for some kind of Wizard ? Apr 17 11:30:03 g00s suggestion works perfectly fine as well Apr 17 11:30:17 Unless the implementation is wrong Apr 17 11:30:27 Not at all haha. I'm creating an application which has a part which allows users to answer surveys Apr 17 11:30:36 Each fragment is a question, the last fragment is the "Submit" page. Apr 17 11:31:00 has anyone worked with MediaCodec to encode video from camera ? Apr 17 11:31:05 The last fragment also displays the progress in case a user tries to prematurely progress Apr 17 11:32:18 so you want to update data in fragment 4 based on user actions in fragments 1,2,3? Apr 17 11:32:24 shouldn't all these answered questions be saved in the db as the user goes along? i mean, if i choose "i agree!" at that moment, it should be saved Apr 17 11:33:06 g00s: In a full implementation, yes. Im doing this app mainly to teach myself a few different areas of Android. Apr 17 11:33:15 itamz: Yes Apr 17 11:33:23 well, anything less than a full implementation here is probably busted :) Apr 17 11:34:03 what if the user presses home and everything goes to hell, you've lost all your answers Apr 17 11:34:14 this part of the docs seems to address exactly that https://developer.android.com/guide/components/fragments.html#EventCallbacks Apr 17 11:34:17 g00s: That is kind of the idea of what I am going with. Apr 17 11:34:18 that state needs to be persisted somehow Apr 17 11:34:52 g00s: There are several factors as to why, mainly surrounding survey fatigue (This app is a teaching app for what will eventually become a full implementation) Apr 17 11:35:24 itamz: I've used that and implemented it. Doesn't work. Apr 17 11:35:39 how does it "not work" Apr 17 11:35:51 itamz: The UI isn't updated. Apr 17 11:36:05 I put the UI update logic in the function that the callback was hitting Apr 17 11:36:29 sounds like an unrelated issue to me Apr 17 11:36:35 are you sure you had the right fragment instance? Apr 17 11:36:59 Update state when the user hits submit.. If fragment4 has its ui created, update it.. If not, just save the values for later Apr 17 11:37:00 itamz: Definitely sure. It is the only fragment in existance that could be successfully cast to that subclass. Apr 17 11:37:23 alex_PP, so I want to get the width of the view inside which Im implementing this DrawLine class Apr 17 11:37:37 Anthaas, right, but maybe it was recreated afterwards or something like that? Apr 17 11:37:46 getWidth() alone inside the constructor produces 0 Apr 17 11:38:28 A view doesn't have a size until View#layout is called Apr 17 11:38:40 It has a measured size when View#measure has been called Apr 17 11:38:43 Would it be helpful if I add the code to pastebin for you guys or something? Apr 17 11:39:12 I see Apr 17 11:39:38 so how am I going to make sure that this thing I'm drawing will fill the view (width-speaking) regardless of screen size? Apr 17 11:39:47 Anthaas all that typing and still no code XD Apr 17 11:40:03 g00s: I did submit code last night :P haha, Ill add some now! Apr 17 11:40:07 itself is match_parent, but...the drawing inside has to have some sort of measurement to know how much of the sine to draw Apr 17 11:40:38 is it a custom view? Apr 17 11:40:45 yea Apr 17 11:40:57 http://pastie.org/9087322 Apr 17 11:40:57 If you implement your own measuring code you have onMeasure Apr 17 11:41:04 There's also onSizeChanged Apr 17 11:41:17 Or, just do it in onDraw when you're actually drawing it Apr 17 11:41:43 in onDraw I can then have access to getWidth() Apr 17 11:42:06 Yes, onDraw happens after it has been measured and laid out Apr 17 11:42:32 yeah, it should definitely be done in onDraw Apr 17 11:45:19 Can I get the https://developer.android.com/reference/android/os/Build.VERSION_CODES.html from Android NDK without calling a Java method ? Apr 17 11:45:47 g00s: SimonVT: itamz: ParentActivity: http://pastebin.com/8hzfp9L1 Fragment4: http://pastebin.com/2e3jN37A Fragment1 (to see how Im updating values): http://pastebin.com/m0f1JkX1 Apr 17 11:46:42 yes it works as expected thanks Apr 17 11:46:43 :) Apr 17 11:46:49 getWidth and everything Apr 17 11:48:41 mProgressBar is inside fragment 4? Apr 17 11:48:50 I don't think you should be changing it from the activity class Apr 17 11:49:04 just pass the message along to the fragment and let it update its own ui Apr 17 11:49:11 Oooh one second - I think I just forgot to remove that Apr 17 11:49:29 Is there anybody who can help me with this issue: http://stackoverflow.com/questions/23031095/part-of-custom-android-view-for-ime-being-cut-off Apr 17 11:49:40 There doesn't seem to be anybody on StackOverflow :( Apr 17 11:49:43 No? No progress bar in Fragment 4? Apr 17 11:50:02 so where is that progress bar? Apr 17 11:50:07 The ProgressBar is in ParentActivity? Apr 17 11:50:22 so the view is not inside the fragment? Apr 17 11:50:31 Not the progress bar no? Apr 17 11:50:36 what is then? Apr 17 11:50:42 A text view. Apr 17 11:50:48 ok, lemme see Apr 17 11:50:53 the xml? Apr 17 11:51:21 no, wait Apr 17 11:52:31 well onResume is wrong Apr 17 11:52:48 Yeah I know that now, I just reverted a bunch of changes before I started hacking around. Apr 17 11:52:55 g00s use CF.lumen for that :P Apr 17 11:53:12 g00s unfortunately, I do not know of an easy way to do that per-app, else I would have built it into DSLR Controller long ago Apr 17 11:53:15 Anthaas, I would just forget about detecting that change and just update it right then and there Apr 17 11:53:39 How can I update it there and then if in Fragment1 Fragment4 isnt attached? Apr 17 11:53:51 Chainfire hm , ok thanks Apr 17 11:55:03 Anthaas i would go about this like so: have a db which has the questions, say 10. have the view pager create a fragment for each question on demand; but probably the same fragment over and over. Apr 17 11:55:22 Well, that onPageSelected implementation is certainly wrong Apr 17 11:55:26 so the fragment's arguments would be the ID of the question, once somebody delected, it updated that row with the answer, done Apr 17 11:55:36 Anthaas, I would just do this via some general publish/subscribe mechanism Apr 17 11:55:38 FragmentStatePagerAdapter removes fragments outside of the offscreen page limit Apr 17 11:55:54 have an interface with method like onNumberOfQuestionsChanged Apr 17 11:55:55 With a default of 1, there will only ever be 3 fragments added at a time Apr 17 11:56:02 make the fragments implement that interface Apr 17 11:56:10 and register themselves inside their parent activity Apr 17 11:56:14 the activity will then fire those events Apr 17 11:56:31 If there's 4 pages in the viewpager, the last page will never be == .size() - 1 Apr 17 11:56:48 or you can forget about that and just call a method inside fragment 4 directly from activity Apr 17 11:57:00 There's also no guarantee that the submit page will be the last fragment added to the pageradapter Apr 17 11:57:08 using findFragmentByTag Apr 17 11:57:29 Guess that's the "onPageSelected is broken" thing you were talking about Apr 17 11:57:55 I am reading this, Im just flicking through my code at the same time to make sense. Apr 17 11:58:22 Anthaas why even use fragments for this; there isn't enough state. Apr 17 11:58:30 just a question, right ? Apr 17 11:59:02 I havent added all code yet, there will be the answer put in, the time taken from display to answer, etc Apr 17 11:59:25 SimonVT: Surely if that were the case, the cast would fail and throw a ClassCastException? Apr 17 11:59:59 You guard against that with instanceof Apr 17 12:00:37 SimonVT: Ooooh I see. So you are saying that the if statement never has its condition satisfied? Apr 17 12:01:08 Yes Apr 17 12:01:12 It might in some edgecases Apr 17 12:01:21 Also, never use FragmentManager#getFragments Apr 17 12:01:28 I'm surprised it's exposed Apr 17 12:02:09 Forgive my ignorance, but someone said about using tags on the fragments, firstly I cant seem to find anywhere to set it, secondly I also read somewhere that that shouldnt really be exposed and will likely be removed in future? Apr 17 12:02:11 Oh right, the dependency contains the entire source.. It wouldn't be available with the native FragmentManager Apr 17 12:03:13 You probably want to change this to have some way of notifying the SubmitFragment (if it exists) when the state in the Activity is changed Apr 17 12:03:23 If it doesn't exist, just fetch the state when attached Apr 17 12:03:54 Like, set a listener on the Activity in onAttach.. Remove it in onDetach Apr 17 12:04:30 You mean the fragment? Apr 17 12:04:39 Regarding tags, you'll have to roll your own adapter if you want to set those Apr 17 12:04:42 Yes Apr 17 12:05:24 Another way would be to use an event bus and posting events when the state changes Apr 17 12:06:27 No clues on my issue? Apr 17 12:06:28 Pär Lagerkvist Apr 17 12:06:40 Sorry – wrong paste: http://stackoverflow.com/questions/23031095/part-of-custom-android-view-for-ime-being-cut-off Apr 17 12:09:36 Anthaas, something like http://pastebin.com/85UzzWeA (just a rough overview, the code is ugly and possibly not even valid) Apr 17 12:09:42 how to access button in another xml file and then switch back? eg, just do this? setContentView(R.layout.fragment_screen_slide_page); Apr 17 12:10:13 Button theButton = (Button) findViewById(R.id.skipButton); Apr 17 12:10:28 then use theButton and switch back setContentView? or what’s a better way? Apr 17 12:11:33 What would be the point of that? The button is no longer part of the content view.. It isn't drawn Apr 17 12:12:06 itamz: Trying that now. Apr 17 12:12:08 xml layouts just describe a layout.. Until it's inflated and added to the content view it's useless Apr 17 12:14:02 paldepind: It seems to take about 40% of the part below the input box, so you'll probably have to look elsewhere to set the ime height Apr 17 12:16:05 itamz: ok I've written the code, trying it now... Apr 17 12:16:36 itamz: Still doesn't update. Apr 17 12:16:45 can you post the entire code? Apr 17 12:16:47 SimonVT: Am I not setting the IME height in the onMeasure method? Apr 17 12:16:58 For Fragment4 and ParentActivity? Apr 17 12:17:04 yes Apr 17 12:17:12 Oh hang on Apr 17 12:17:14 paldepind: I don't know if you are, but it looks like you aren't Apr 17 12:17:16 I've forgotten something! Apr 17 12:17:28 You could verify that easily by checking the size passed to the heightMeasureSpec Apr 17 12:17:42 SimonVT: I'm not defining the height in the XML layout. Only in the onMeasure method. So the 40% is being picked up from there. Apr 17 12:17:58 Well yes, the height of your view Apr 17 12:18:27 But is that the height that the entire ime occupies? Apr 17 12:18:30 It doesn't look like it Apr 17 12:18:44 itamz: I love you. Apr 17 12:19:01 itamz: I shall have many babies and have them slave after you for many years. Apr 17 12:19:33 itamz: Seriously though, thanks. I did exactly this the other night, but it didn't work. Today, it works. You have no idea how thankful I am. Apr 17 12:20:07 SimonVT: Yes. My custom view makes up the entire IME. Apr 17 12:20:28 hey got a question about BackupManagerAgent. I'm trying to implement it with SDK 2.3. afaik it will execute doFullBackup() on Android 4 and doBackup() on 2.2 Apr 17 12:20:28 Youll laugh, but the code I forgot to add was "if (listener != null) { listener.onQuestionAnswered(number); } haha Apr 17 12:20:32 Does anyone know what's the format for /system/etc/security/cacerts.bks from Android < 4.0 ? file says "data" and chardet says "ISO-8859-2" Apr 17 12:20:45 what is the best approach to implement it for 2.2? Apr 17 12:21:39 Gah, I can't figure out how to pass callable object from one place to another Apr 17 12:21:49 activity that is Apr 17 12:21:58 Anthaas, usually walking through the code with debugger helps finds things like that Apr 17 12:22:25 you just set a breakpoint, go to the next line, then the next, next, inside the method called, next line and... oh shiet Apr 17 12:27:54 how can i have a .xml drawable file where there's 2 items, 1 outside 'panel' (rectangle) and at the center a rotating bitmap? Apr 17 12:29:53 that sounds more involved Apr 17 12:30:41 Well, I wrote some "raw" test case just to show what I want to achieve, http://ideone.com/hEuG2B Apr 17 12:30:58 How will I be able to set ip to instance of MainActivity? Apr 17 12:31:06 so that I can implement a callback mechanism Apr 17 12:36:06 Omnipotent: look at startActivityForResult Apr 17 12:36:33 Can OpenSSL read BKS (BountyCastle) keystores? Apr 17 12:37:28 hi guys , i wanna compile the code that lenovo released for ideaphone s820 (http://goo.gl/9j69r6) , can anyone help me about it ?! i installed ubuntu 13.10 and all dependency packages ! and the readme file said : http://pastebin.com/ksrHGDmE , but i have no clue about it ( although im pretty good at ubuntu commands ) Apr 17 12:41:26 funkbox, the only way? Apr 17 12:42:00 SimonVT: the point is I want to access a button inside an XML for a fragment for a ViewPager from my Activity. Apr 17 12:43:57 Right.. xml just describes how the layout should be build.. It's not java objects until inflated.. And every inflation returns a different set of java objects Apr 17 12:44:32 Tell the fragment what to do, then it can act appropriately based on whether its has a layout or not Apr 17 12:44:35 SimonVT, Mind reading my questions once, please. Apr 17 12:45:12 Two activities should not have references to eachother Apr 17 12:46:16 SimonVT, Gotcha, but then, in scenario where, I add something to the database in second activity and there is a listview that shows stuff from the database in mainactivity Apr 17 12:46:26 what should I do to update list? Apr 17 12:46:33 after inserting the record. Apr 17 12:48:20 You need some way for the first activity to subscribe to changes in the database Apr 17 12:49:08 With a ContentProvider you'd set a ContentObserver on the cursor, and the ContentProvider would call ContentResolver#notifyChange Apr 17 12:49:21 If you're not using a ContentProvider, implement something similar yourself Apr 17 12:49:45 Could also just be an event bus Apr 17 12:53:12 Omnipotent: the best and only way Apr 17 12:53:52 Omnipotent: in android, activities get destroyed and recreated all the time. plus if you keep a reference to it you create a gc root. you might want to look at otto Apr 17 12:59:13 Can I use the KeyStore class to get a list of ALL the certificates in they keystore? Apr 17 12:59:22 s/they/the Apr 17 13:04:21 ah, maybe KeyStore keyStore = KeyStore.getInstance("BKS"); ArrayList certs = new ArrayList(); for (String alias : keyStore.aliases ()) { certs.add(keyStore.getCertificate()); } Apr 17 13:04:22 I use ltInflater.inflate(R.layout.item, linLayout, false); to inflate one layout to another layout. How I can change style to R.layout.item (LinearLayout)? Apr 17 13:04:22 I'm developing an application using the Navigation drawer feature, i would like to know if its possible to use relative/linear layouts instead of List view for the side-bar menu Apr 17 13:05:08 hi Apr 17 13:05:13 can someone help me: Apr 17 13:05:25 I know, we can't change style dynamically, but in my case I create new view from xml. It is possible? Apr 17 13:05:25 http://stackoverflow.com/questions/23100219/sort-apps-according-to-usage-in-android Apr 17 13:06:32 I know about ContextThemeWrapper but how create new view use ContextThemeWrapper from exist xml layout? Apr 17 13:08:04 Hi all. Apr 17 13:08:18 I use a spinner on Android 4+. Apr 17 13:08:39 I want the background in drop-down mode not to be white. Apr 17 13:08:50 I want it the same as in dialog mode. Apr 17 13:08:54 How can I do that? **** BEGIN LOGGING AT Thu Apr 17 13:14:40 2014 Apr 17 13:15:04 I know I have to use android:popupBackground. I don't know what value to set to it. Apr 17 13:15:32 That is, how to get the system background colour of the "dialog" mode. Apr 17 13:24:51 How change style to LinearLayout while I use LayoutInflater for create layout Apr 17 13:24:52 ??? Apr 17 13:27:30 I am getting error on line 20 http://pastie.org/9087523 why? Apr 17 13:34:16 Because you're doing something wrong Apr 17 13:34:50 Any idea? Apr 17 13:36:43 SimonVT: any idea where why it is wrong? Apr 17 13:37:14 The error would tell you what's wrong Apr 17 13:37:55 kamol: 'message' is a String, right? Is that String a valid JSON array? Apr 17 13:38:18 java.lang.NoSuchMethodError: org.json.JSONArray. Apr 17 13:38:53 ddobrev: yes, it is valied JSON, I tested it already Apr 17 13:40:02 So the constructor you're using doesn't exist on the platform you're running it on Apr 17 13:40:27 Go check d.android.com, it tells you when a method was introduced Apr 17 13:41:18 http://developer.android.com/reference/org/json/JSONArray.html JSONArray(String json) Apr 17 13:41:19 Creates a new JSONArray with values from the JSON string. Apr 17 13:41:37 SimonVT: Added in API level 1 Apr 17 13:41:46 Hi all, I'm handling NFC detection and received a newIntent, which is good :) but when I scan another NFC tag, I get the data from the 1st tag again, not the data from 2nd tag, what can be the problem? Apr 17 13:42:00 Alright, so that's not the one you're using then Apr 17 13:42:17 SimonVT: Do you do Android GUI-s? Apr 17 13:42:26 But the one right below that was added in api19 Apr 17 13:42:35 Solution: don't use that one Apr 17 13:42:48 ddobrev: All my apps have gui's Apr 17 13:43:36 SimonVT: I was wondering if you had an idea about my issue. Apr 17 13:54:24 hey I need some help :-) I Implemented the BackupManagerAgent and I want to exclude some stuff from the Backup. Also I changed the android backup transport to local. triggerung a bmgr run runs the job but where do I find the backup to verify if it worked :-/ Apr 17 13:57:52 When i make my project why do i see appcompat_v7 top of my project is it part of my project? Apr 17 13:58:34 Sorry for the newbie question. Apr 17 14:09:08 Maybe it part of android if i am right. Apr 17 14:27:36 Does anybodu have an idea? Apr 17 14:28:23 Hi, what image button function do you use to check if the button has hold press? like if the user pressed the button for very very long and let go? not setonlclicklistener Apr 17 14:29:38 longclick Apr 17 14:30:07 http://developer.android.com/reference/android/view/View.OnLongClickListener.html Apr 17 14:30:11 g00s: not longclick, longer than long click Apr 17 14:30:36 llooooooongclick Apr 17 14:30:39 lol :D Apr 17 14:30:42 one o for every second Apr 17 14:30:45 I google onTouchEvent , is this gonna work? ,lol Apr 17 14:31:20 androidnewb: yeah you will need to track that with onTouchEVent by yourself, (also if the user has moved the finger between and how you want to handle that) I just wonder if there is a reasonable use case for it :D Apr 17 14:31:42 How do i move the tabs beneath the textview and image? http://postimg.org/image/bhf69unc3/ Apr 17 14:32:05 timroes: thanks, for the help, Ill try it! Apr 17 14:33:41 I'm using a spinner on Android 4+. I want the background in drop-down mode not to be white. Apr 17 14:33:59 I want it the same as in dialog mode but I don't know what value to set to it. Apr 17 14:36:42 timroes seems as 0.5.5 fixed those darcula bugs Apr 17 14:37:45 yeap :) Apr 17 14:38:06 https://plus.google.com/u/0/+TimRoes/posts/A16HZU3Ahet also see my last comment ;) Apr 17 14:38:51 :) Apr 17 14:40:09 Hi :) Apr 17 14:40:42 I play with camera API, is it possible to save a picture to a file without creating preview ? Apr 17 14:41:29 Why don't I ever hit the receiver?? http://pastebin.com/B8tUiUVB Apr 17 14:44:31 Hey all. I have a textview, and an edit text inside of a linearlayout and centered horizontally. Can I make it so it continuously re-centers the two depending on the length of the edit text? Apr 17 14:56:46 ddobrev maybe check some of the default colors for the Holo theme? http://stackoverflow.com/questions/9947156/what-are-the-default-color-values-for-the-holo-theme-on-android-4-0 Apr 17 14:57:31 mattblang: Thank you. Apr 17 14:57:42 However, I don't want to hard-code a colour. Apr 17 14:57:54 Because then it would look strange on another Android version. Apr 17 14:58:26 I need to know what key - I would assume it is one of the keys at the XML you sent - I need to use. Apr 17 14:59:01 ddobrev yeah, if you can find the correct key and reference it as android.R.color ...? Apr 17 14:59:31 mattblang: One of my attempts was with ?android:windowBackground. Apr 17 14:59:59 However, that does not yield the same - though similar - colour as a spinner with mode 'dialog'. Apr 17 15:00:29 ddobrev let me know if you figure it out. I am curious Apr 17 15:00:35 there are also Holo color swatches: https://developer.android.com/design/style/color.html Apr 17 15:00:50 I'd like to do something like ?android:dialogBackground (no such key so far), Apr 17 15:01:36 Mavrik: Aren't those some kind of custom colours? I only need a system colour. Apr 17 15:01:41 tjbiddle is your editText changing size? Apr 17 15:01:57 ddobrev, hrm, true Apr 17 15:09:49 oh maybe i need this http://www.amazon.com/Pro-Android-UI-Wallace-Jackson/dp/1430249862 Apr 17 15:10:50 mattblang: It's set to wrap_content on the width and height. So should be? Apr 17 15:21:01 Anyone know where I can find sounds and icons to use in my application? I want a refresh button and a sound to tell the user that there is new data Apr 17 15:21:04 to display Apr 17 15:21:17 tjbiddle if you put an onTextChangedListener on the EditText, and change the TextView width in onTextChanged, does it recenter? Apr 17 15:22:05 GEEGEEGEE you can get the icon packs from Android (https://developer.android.com/design/downloads/index.html), or check thenounproject Apr 17 15:22:54 GEEGEEGEE the noun project is really cool if you don't find what you want in the native icon packs Apr 17 15:31:07 SimonVT: tq! Apr 17 15:31:25 how to make this code prittier ? http://pastie.org/9087753 Apr 17 15:33:33 by not using java ;-) Apr 17 15:33:44 or, in this case, by not using org.json Apr 17 15:33:53 mattblang, thanks Apr 17 15:35:00 pfn: then, use gson? Apr 17 15:37:29 I made it a bit shotter http://pastie.org/9087762 , but still ugly Apr 17 15:39:41 kamol hah, what pfn said. hate org.json Apr 17 15:40:21 mattblang: tell me the alternative please Apr 17 15:40:37 or better show me :) Apr 17 15:43:12 kamol I use retrofit, which uses gson. so happy I switched Apr 17 15:46:35 mattblang: I also using, but… never tried to use for parsing JSON directly on retrofit… can you give example code? Apr 17 15:47:55 alot of the code samples for detecting fling direction define a min velocity and min distance in onFling, does a GestureDetector not have some sane defaults for detecting what a fling is? Apr 17 15:48:31 kamol: see the samples in the retrofit directory Apr 17 15:48:41 *project Apr 17 15:48:46 mattblang: thank you for help Apr 17 15:49:12 kamol, quit asking for sample code Apr 17 15:49:18 f2prateek: already reading… actually will read tomorrow, tired today… thank you guys Apr 17 15:49:51 pfn: hehe :) thank you for advice Apr 17 15:49:56 I'm having trouble with playing a sound via MediaPlayer multiple times. I'm running Kit-Kat btw. Apr 17 15:50:13 Does anyone have experience with MediaPlayer? Apr 17 15:55:23 hm, if i have a xml file in res/xml and i got an xmlpull using getXml(int) … how do I get and resolve the text element @string/bar ? Apr 17 15:56:00 AttributeSet stuff seems like … its for attributes, but in this case its the text of the tag Apr 17 15:58:44 maybe i need 2 steps, Resource.getIdentifier() then use the ID for getString() hmmm Apr 17 15:59:25 oh getValue, k Apr 17 16:00:28 why are you doing your own xml inflation? Apr 17 16:00:28 I have a simple question, in the developer console I can't dismiss the alert msg "new Google Play Developer Program Policy....", Am I the only one in this situation? Apr 17 16:00:52 custom configuration, but i want it to reference other resources Apr 17 16:01:19 and those references need to be resolved Apr 17 16:06:44 NoteCrypt: no, it wont go away for me either Apr 17 16:09:29 sabton: Thanks Apr 17 16:20:29 how can i have my activity respond to clicking the icon in the actionbar? without adding the < Apr 17 16:26:03 hi guys i have developed my first app... i want adapt the layouts on others device... can you help me? Apr 17 16:27:39 I published an app last week, but it doesnt come up in the google play search results. You can only access it when you click a direct link to it. Anyone ever have this issue? Apr 17 16:27:41 roxdragon: most layouts automatically scale on other devices, according to screen density, size and orientation Apr 17 16:28:24 roxdragon: if you used the default layouts provided (Linear, Relative, Grid) Apr 17 16:29:04 impedancee: yes but i have a listview with custom_row.xml it doesn't adapt Apr 17 16:29:41 roxdragon: the listview should automatically take the width of the window it is in, and the row should adapt to the parent listview Apr 17 16:33:45 impedancee: yes listview is ok but rows no.. if i execute the my app in a device with small display the textview are overlapped Apr 17 16:34:18 Henry_Gale: Name? Any restrictions on countries? Beta/Alpha mode? Apr 17 16:34:36 roxdragon: you have 2 solutions for that. For smaller screens either make a separate layout file in a folder called FOLDER_NAME-ldpi, or set it programmatically Apr 17 16:35:26 roxdragon: And what the app will do is that, when it detects a screen that is LDPI - it will use the alternative layout for your custom_row Apr 17 16:35:57 roxdragon: removing some elements from the alternative xml file would be your best bet Apr 17 16:37:35 roxdragon: anyway, i'm off. Have a good one Apr 17 16:38:08 Does anybody at least know what the relevant section in the android sources is? Apr 17 16:39:28 can i duplicate custom_row.xml and paste in folders layout? Apr 17 16:46:45 hi all Apr 17 16:47:11 so ive got an app that crashes on my clients device, what is the best way to get the crash log or do some sort of diagnostics remotely? Apr 17 16:49:23 Can we look at getting some love for this Repo on GitHub. I'm contributing but I would love to see it filled out with every android device out there. https://github.com/j5at/AndroidAVDRepo Apr 17 16:50:51 mathis98: You can use the application "CatLog - Logcat Reader!" and save the logcat Apr 17 16:51:14 ive heard that cannot access another apps logfile anymore Apr 17 16:52:10 I published an app last week, but it doesnt come up in the google play search results. You can only access it when you click a direct link to it. Anyone familiar with this issue? Apr 17 16:53:48 mathis98: I tried a month ago and I read the stacktrace of my app Apr 17 16:53:55 what version? Apr 17 16:54:15 Android 4.4.2 Apr 17 16:55:23 Henry_Gale: The name of your app use common words? A friend of mine have the same problem Apr 17 16:56:36 yeah it requires root Apr 17 16:56:39 catlog is worthless Apr 17 16:57:09 oh yes... Apr 17 17:00:27 ryukk, yes the words are pretty common, although no other app shares my exact name Apr 17 17:01:25 it sucks because there other other similar apps released just this week that are very similar to mine and show up high up on the results (and thus have many more downloads). Apr 17 17:11:14 mmm uploaded a little app to google play, but it is nowhere in the search results at all, not even if I specify the name totally. Apr 17 17:12:04 Unknown0BC, i literally just mentioned the same thing on here Apr 17 17:12:18 wow Apr 17 17:12:47 the only way I can find it is if if put quotes around the exact name of my app Apr 17 17:12:55 but whose going to do that? nobody! Apr 17 17:13:24 When did you upload it ? Apr 17 17:13:31 Anyone got experience with stuff regarding to ROMS and how you would add the functionality of double tapping your phone to unlock? Apr 17 17:13:33 a week ago Apr 17 17:13:48 how bout you? Apr 17 17:14:06 about 2 days. Apr 17 17:14:36 the problem with mine is that the words are very commonly used (although not the exact sequence in my title) Apr 17 17:14:50 but google doesn't care about sequence Apr 17 17:16:05 I see my app now when putting quites around the exact title. Apr 17 17:16:10 :\ Apr 17 17:16:37 quotes* Apr 17 17:17:12 Yeah, it appears my work was for nothing since no one will ever see the app Apr 17 17:17:35 oh well, lesson learned, only create apps that are truly unique with a unique name Apr 17 17:19:48 What does your app do ? Apr 17 17:19:54 Henry_Gale Apr 17 17:21:36 music player Apr 17 17:21:40 yours? Apr 17 17:22:03 Just a small thief alarm program. Apr 17 17:22:15 Just a test run to see the google play process. Apr 17 17:22:32 There must be 20 similar programs on google play already. Apr 17 17:22:56 Works nicely. It will even phone someone when the phone is moved :). Apr 17 17:23:02 or sms. Apr 17 17:23:07 or just sound a siren. Apr 17 17:23:46 very cool. Apr 17 17:24:47 Something I wanted for myself. Apr 17 17:25:24 So it detects if someone moves your cell, like while your in a meeting or asleep or something? Apr 17 17:26:28 Yes. Apr 17 17:26:42 It uses the accelerometer. Apr 17 17:28:52 I wish I know googles search algorithm for play store searches. Apr 17 17:29:28 I get my app listed with some others when I put quites around half the title. Apr 17 17:31:24 quotes* Apr 17 17:31:52 And if I search for my developer name. Apr 17 17:32:01 This sucks. Apr 17 17:32:15 how when using fragments, do I get a handle to my Fragment class in my activity? Apr 17 17:32:52 ie. MyFragment mine = /*somethign */ (R.id.myfragment); Apr 17 17:32:54 hei I got the source code from an APK file with the help of dex2jar and apktool but when I imported it into the ecllipse and launched it then error in emulator Unfortunately app has stopped?? Apr 17 17:33:05 myfragment.myfragmentmethod() Apr 17 17:35:59 ?? Apr 17 17:36:32 Yo YoAbhi, can you be more specific Apr 17 17:37:16 nick9998 what?? Apr 17 17:38:05 YoAbhi: Could you be more... specific? Apr 17 17:39:01 yo guys! Apr 17 17:39:11 vassup!! it's me bruno! Apr 17 17:39:12 quick one please, how can i have apps share the same sqlite db on android? Apr 17 17:39:19 nick9998: heh Apr 17 17:39:42 need to wrap this module up before easter celebrations and this is blocker ^^ Apr 17 17:39:48 umm do you ever run downloaded apk file in ecllipse?? Apr 17 17:40:09 oh yea, lots of times Apr 17 17:40:33 so tell me how to run Apr 17 17:40:41 YoAbhi: My time is yours... Apr 17 17:41:53 waiting.. Apr 17 17:42:26 YoAbhi: hang on Apr 17 17:45:10 Hey, i am using the bluetooth chat example to connect to a HC-06 bluetooth module. I have only modified the uuid to suit the module. Sometimes i get the error "Service Discovery failed", when i try to connect, but i don't really know why. Does anyone else know? Apr 17 17:51:47 YoAbhi: Very good, proceed... Apr 17 17:52:18 What is the fragment lifecyle when used in XML as ? Apr 17 17:52:33 I'm not getting my members bound to my views Apr 17 17:53:09 how to run it?? Apr 17 17:53:22 nick9998 Apr 17 17:53:34 YoAbhi: Yes... yes, I understand... Apr 17 17:53:57 Does someone have experience with installing kernels and ROM's? I heard a lot of good things about Franco's kernel and also its battery life. Then I would also like to change the ROM I'm using from CM to a simple one with a stable version. Apr 17 17:54:19 I was looking at this ROM: http://forum.xda-developers.com/google-nexus-5/development/rom-aospa-4-0-beta-4-4-2-kot49h-t2606917 Apr 17 17:54:53 Muchoz: #android-root Apr 17 17:54:57 SimonVT, thanks. Apr 17 17:55:16 YoAbhi: This is a channel for developers, not decompiling apps Apr 17 17:55:16 what happened? Apr 17 17:56:00 do you have any problem Mr. developer SimonVT Apr 17 17:56:21 Sure. Find another channel to discuss decompiling apps and running them Apr 17 17:57:27 It's your channel or your father's channel ?? I'm little confused... Apr 17 17:58:23 Hey, i am using the bluetooth chat example to connect to a HC-06 bluetooth module. I have only modified the uuid to suit the module. Sometimes i get the error "Service Discovery failed", when i try to connect, but i don't really know why. Does anyone else know? Apr 17 17:58:29 my dad died =( Apr 17 17:58:49 nick9998: my condolences :( Apr 17 17:59:07 thx, it was back in 2008 actually Apr 17 17:59:18 hm Apr 17 17:59:28 oh Apr 17 17:59:35 yea old news Apr 17 17:59:47 I don't quite understand AccountAuthenticators yet Apr 17 18:01:01 YoAbhi, I try to keep it a place for actual developers Apr 17 18:01:02 the Activity handling the LOGIN intent would call AccountManager.addAccountExplicitly() after logging in, at least in the example code Apr 17 18:01:41 but what if the account already exists, and the authentication token just expired? Apr 17 18:03:37 SimonVT: ohh ... I'm sooo soooooo sorry.. I didn't know that android was developed by you!!! Apr 17 18:04:29 YoAbhi: stop being a silly goose please Apr 17 18:05:01 YoAbhi: Let us be thankful we have an occupation to fill. Work hard; increase production, prevent accidents, and be happy. Apr 17 18:05:17 Drop the attitude :) You're welcome back when you start developing your own apps. Until then.. Apr 17 18:11:06 For broadcast receivers, do I have to call registerReceiver() for every single intent filter defined? Apr 17 18:12:02 If you have an intent filter in your manifest it's already registered Apr 17 18:12:17 Is it possible to use a Cursor to manipulate data from a JSONArray? If not, can I convert a JSONArray into a ResultSet to do this? Apr 17 18:12:50 I'm not referring to manifest receivers, rather programmatically, that is, broadcast receivers. Apr 17 18:14:02 nvm Apr 17 18:14:05 found it! Apr 17 18:23:39 i need some help understanding google app engine. does anyone here have experience? Apr 17 18:24:04 so basically client phones should be able to make requests and get responses from the server Apr 17 18:24:56 Do I have to use google endpoints? or can i treat google app engine as a server, and just run something like Flask or Django on it to handle http Apr 17 18:25:15 is Endpoints and alternative to flask or Django? Apr 17 18:25:21 or am i misunderstanding? Apr 17 18:26:53 mantazer: GAE is an application shared hosting solution. It doesn't add anything that you couldn't do on, say, DigitalOcean or AWS. Apr 17 18:28:02 mantazer: Google Cloud Endpoints is a library they wrote up to ease deployment of webservices to GAE servers. Apr 17 18:28:38 mantazer: Server-side, it replaces JAX-RS or JAX-WS. Client-side, it replaces Retrofit. Apr 17 18:29:07 freeone3000: ok, i think i understand Apr 17 18:29:10 freeone3000: thanks Apr 17 18:30:51 Why is my SyncAdapter never called? https://gist.github.com/freeone3000/03b97287cba5ff27444c Apr 17 18:35:30 * GyrosGeier also builds a SyncAdapter Apr 17 18:43:03 Ah. Turns out I needed to set up a SyncService, as on http://stackoverflow.com/questions/5253858/why-does-contentresolver-requestsync-not-trigger-a-sync Apr 17 18:46:34 Gah modified a bit of code and the activity fails to start Apr 17 18:46:44 onCreate isn't called, Constructor isn't called Apr 17 18:46:45 :\ Apr 17 18:52:18 Would I have to re-register the broadcast receiver in onResume() after having unregistered it in onPause()? Apr 17 18:53:29 How to I edit the individual pages in action bar tabs? acitivity_main.xml is showing a blank page Apr 17 18:59:13 hi there, i'm using RenderScript, and after having a closer look with DDMS, I can see that the .copyOut method of an allocation (in my case an array of short created with the classic "Allocation.USAGE_SHARED | Allocation.USAGE_SCRIPT") is very expensive, and I need to frequently retrieve this array from RS to java Apr 17 18:59:28 any idea of what can I do to reduce this bottleneck? Apr 17 19:00:42 s/copyOut/copyTo/ ... ofcourse. Apr 17 19:00:53 in android studio, i'm making a DrawerLayout (Navigation Drawer). it works, but the content is invisible (on the left side) in the designer. how can i make it visible at design time? Apr 17 19:04:00 QuantaIdle: Copying GPU to CPU is expensive. You want to do it less. Apr 17 19:04:28 QuantaIdle: Considering running more of your app through renderscript. Apr 17 19:05:48 Is it safe to use android studio? Apr 17 19:05:48 freeone3000, there is no proof the GPU is being used but ok. I unfortunately cannot run more of this app on RS because i process audio Apr 17 19:05:56 perlsynt_: Yes. Apr 17 19:06:14 freeone3000, at some point i need to send the data to AudioTrack which is not available on RS Apr 17 19:06:17 it not in beta still? Apr 17 19:06:24 I might switch to jni with openSL but i don't want Apr 17 19:06:34 perlsynt_: Probably. If you don't want to use beta-labelled software, you should use IntelliJ IDEA CE 13.1 with the Android plugin. Apr 17 19:06:55 where can i get that and is it free? Apr 17 19:07:15 perlsynt_: That'd be http://www.jetbrains.com/idea/ . Android Studio is a fork of IntelliJ IDEA CE. Apr 17 19:07:15 apparently john mcafee lives in montreal now Apr 17 19:07:38 thanks i try it out.:D Apr 17 19:07:59 its cold and sometimes violent in montreal, but the girls are awesome :) Apr 17 19:08:03 QuantaIdle: Doing audio synth using RenderScript? Apr 17 19:08:04 freeone3000, in fact, RS is so great at computing that multiple repetitive copyTo of the array took more CPU Apr 17 19:08:11 than the function invoked under RS Apr 17 19:08:21 funny somehow Apr 17 19:08:29 freeone3000, yes, lot of DSP Apr 17 19:08:36 QuantaIdle: See http://music.columbia.edu/pipermail/andraudio/2012-July/000670.html . Someone, apparently, implemented an audio player as a RenderScript kernel. Apr 17 19:08:37 also sequencing clock Apr 17 19:09:06 Does anyone have experience with the MediaPlayer object? Apr 17 19:09:09 freeone3000, thx! i am suscribed Apr 17 19:09:12 to this list lol ;) Apr 17 19:09:22 problem is at 44kHZ in stero Apr 17 19:09:28 stereo* I do a lot of copyTo Apr 17 19:09:48 QuantaIdle: You could copy less frequently - as in, render multiple frames, then copy them all. Apr 17 19:09:48 (44100*2 / size of buffer) == number of copyTo / second Apr 17 19:09:58 if I copy less often, it helps but.. latency Apr 17 19:10:08 and since Android is already catastrophic in terms of latency Apr 17 19:10:12 QuantaIdle: A second or so of buffer wouldn't be obscene, would it? Apr 17 19:10:12 I don't want to add more Apr 17 19:10:22 a second buffer is already used :) Apr 17 19:10:34 but my goal is to gain performance in order to reduce latency Apr 17 19:10:42 not increase latency to not suffer from performance Apr 17 19:10:52 QuantaIdle: Not much you can do to speed up a memory copy. Apr 17 19:11:06 yeah :/ i thought/hoped for hidden methods maybe Apr 17 19:11:19 which needed to be use via reflection Apr 17 19:11:24 like bypassing some check in the alloc copy Apr 17 19:11:51 i should stop dreaming :p Apr 17 19:12:40 RS is awesome by the way and meet my expectation Apr 17 19:12:49 only this "copyTo" ruins everything :))) Apr 17 19:13:16 i'm having trouble playing a sound file upon a button click Apr 17 19:13:33 it works for the first 30 or so clicks, and then the button doesnt play the sound anymore Apr 17 19:13:52 mantazer, what do you use? MediaPlayer Soundpool Audiotrack OpenSL? Apr 17 19:14:03 QuantaIdle: I use MediaPlayer Apr 17 19:14:19 ah sorry, i cannot help :/ Apr 17 19:14:33 QuantaIdle: Do you recommend I use something elsE? Apr 17 19:14:51 mantazer, yes for playing short sound (few seconds), soundpool should be ok Apr 17 19:15:04 ok, i'll try that Apr 17 19:15:11 QuantaIdle: my files are 1.5 seconds at most Apr 17 19:15:13 mediaplayer is really heavy and can play encoded sound, has lot of features you don't need i think Apr 17 19:15:16 QuantaIdle: Basically, RenderScript is designed to use a GPU or an APU. There's nothing that says it has to, but looking at it, you see OpenCL just sort of seep through everywhere. The assumption is that RenderScript uses a differnet memory buffer than your Java application - hence the copy. Apr 17 19:15:25 QuantaIdle: thanks Apr 17 19:15:37 I have a Service that accepts many intents via StartService(). Is there a way to determine the package name of the caller in my Service's onStartCommand()? Apr 17 19:15:43 QuantaIdle: To avoid the memory copy, you could use the CPU itself, but I have a feeling that it'd perform worse. Apr 17 19:15:43 mantazer, i recall a limitation with length of sound in soundpool, but I don't recall the exact max length Apr 17 19:15:57 QuantaIdle: ok thanks Apr 17 19:16:02 freeone3000, indeed! Apr 17 19:16:15 Hello Apr 17 19:16:36 Oops. Wrong channel. Sorry. Apr 17 19:22:20 I'm trying to move a view based on a MotionEvent. It seems to work the first time, but the second time it doesn't. It places the view back in its original position. Can anyone take a look. zNmaNhqw Apr 17 19:22:29 http://pastebin.com/zNmaNhqw Apr 17 19:47:21 Hello. Apr 17 19:47:37 Hello there. Apr 17 19:48:37 No one is here? Apr 17 19:51:03 Anyways, if anyone could give me some advice about android menus, it would be great. Apr 17 19:52:11 QuantaIdle: I think latency is not something that has been optimised in Renderscript. It's probably not the copies themselves but the synchronisation that takes up the time, and that's because it's compute-optimised. Apr 17 20:00:41 Ok. Apr 17 20:00:45 Well Apr 17 20:08:17 Gumboot, yeah according to DDMS, around 46% is taken by AllocationThunker.copyTo, and 29% by my calculations (which is forced to not use kernel, via invoke_) Apr 17 20:09:49 What kind of costs would be associated with doing it through JNI? I wonder if it's worth filing a feature request for a low-latency interface -- even if it cost you the ability to benefit from GPU acceleration. Apr 17 20:09:53 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.4_r1/android/renderscript/Allocation.java#Allocation.copyTo%28short%5B%5D%29 Apr 17 20:10:01 here is a partial answer of "the cost" Apr 17 20:10:20 validation, alllocation and even a Trace Apr 17 20:10:57 in jni, the advantage would be to not come back with value to java layer for playing audio via audiotrack Apr 17 20:11:06 but directly playing it in jni side i think Apr 17 20:11:19 I don't think I can access in RS any audio system Apr 17 20:11:36 and cat in /dev/snd would not work so easily and everywhere :) Apr 17 20:12:45 Gumboot, it's not really about using GPU (and it's not supported on many devices, on the contrary of NEON but that last fact is going to be less & less true) Apr 17 20:13:21 Guys. This is a stupid question. But can you let me know how bad or acceptable my method of networking is? Apr 17 20:13:22 at first, it's running some heavy computations (dsp) faster without much effort from the dev point of view Apr 17 20:14:19 I register a broadcast receiver in onResume. When a button is pressed (that triggers the networking), I create a runnable, have my DefaultHandler class (for XML) hit a script, parse the RSS into objects. then I broadcast a string. I have my broadcast receiver pick up the string and do different things depending on the content. Apr 17 20:14:25 I unregister in onPause. Apr 17 20:14:32 i'm a bit tired to explain other points :p but it involves using parallelism on any available (could be few cores, gpu, etc..) cpu Apr 17 20:15:07 it's interesting also to "convert/port" few audio sequential algo to take benefits of parallelism Apr 17 20:15:11 The broadcast receiver is local to the activity, not global in the application (i.e. it is not declared in the manifest) Apr 17 20:15:14 and hard too :[ Apr 17 20:15:55 It's hard enough making audio processing use SIMD effectively, let alone multi-threading. Apr 17 20:16:47 I guess a GPU can implement a FIR easily enough; but I can't see the chunks of audio being big enough to warrant the overheads if latency was a concern. Apr 17 20:17:04 yep Apr 17 20:18:25 Sounds like what'd work best for you is a "do it now, in this thread -- I'll wait" kind of call, rather than the usual message-passey high-latency approach. Apr 17 20:18:27 Gumboot, https://www.youtube.com/watch?v=6CCJOTiqUyk if you're curious, it "does" that. The drum beat is sample based (read from rs too) and the bassline and its filter is entirely synthetized Apr 17 20:18:38 also the sequencer is maintained on RS side Apr 17 20:18:54 the ui is far from being "okay", that's obvious Apr 17 20:24:24 is there anyway to convert from BufferedImage to Drawable without saving it? Apr 17 20:26:43 BufferedImage? Apr 17 20:27:11 yes Apr 17 20:27:27 There's no BufferedImage in Android Apr 17 20:27:46 but there is in java Apr 17 20:28:24 That doesn't matter.. It doesn't exist on Android Apr 17 20:28:53 QuantaIdle: Seems the other problem you have is that the vector data types aren't relevant to audio, so you're at the mercy of autovectorisation to get any good SIMD effect. Apr 17 20:29:13 so, maybe convert it to a Bitmap then to BitmapDrawable Apr 17 20:29:17 Unless you want two-way parallel for stereo, but that's rarely effective because left and right channels can be subject tofundamentally different operations. Apr 17 20:30:42 Gumboot, hmmmm should be ok cause I give a buffer (power of 2) to the RS side which can be different than the one being eaten by audiotrack Apr 17 20:30:45 Sure, if you have a Bitmap you can create a BitmapDrawable Apr 17 20:30:54 hello guys, Apr 17 20:32:03 Gumboot, if you search some // benefits, think per example I have multiple oscillators and they are independent, so it's easy to distribute Apr 17 20:32:12 Can JNI calls write directly into Java arrays without huge copy overheads? Apr 17 20:32:18 but one oscillator, where a state n depends on the state n-1 Apr 17 20:32:25 you cannot start by computing n before n-1 Apr 17 20:32:35 or even at same time Apr 17 20:32:47 QuantaIdle: But for SIMD you need all the oscillators to run the same code, and vary only by the content of the registers. Apr 17 20:32:48 I have an app that needs to store data all throughout the session. I cannot use SharedPreferences because that will store the data even if the app is killed. Apr 17 20:32:52 Gumboot, no clue for jni :| Apr 17 20:33:11 my app also has a service that also needs to access the data Apr 17 20:33:17 Well, I'm just trying to think about what's feasible for low-latency. Wouldn't actually propose that you use JNI. Apr 17 20:33:27 (just using it as proof of concept) Apr 17 20:33:28 jni has a direct access to audio system Apr 17 20:33:30 via opensl Apr 17 20:33:35 that's the major diff i think Apr 17 20:33:38 OK, but that's a whole other solution. Apr 17 20:33:40 it seems that after my app is suspended, I lose that data Apr 17 20:33:41 it bypasses all my issues :) Apr 17 20:33:52 but indeed i don't want (yet) to take this road Apr 17 20:34:38 Took me a while to realise that JNI != JINI for a second there Apr 17 20:34:43 :) Apr 17 20:35:03 Shouldn't your wt_noise[] buffer be gaussian distribution rather than rectangular, by the way? Apr 17 20:35:09 I was thinking "JavaSpaces in an Android app?" Apr 17 20:35:35 no idea, gauss curve has some good property but i don't use it Apr 17 20:36:18 from empirism, i've deduced that it's important to match the samplerate of the DAC behind (to avoid resampling (again) from the audio system) Apr 17 20:36:37 You can approximate it with TPDF; simply: rsRand(0.0f,1.0f) - rsRand(0.0f,1.0f) Apr 17 20:36:40 sometimes the device ouputs at 48kHz, sometimes 44k Apr 17 20:36:41 so weird Apr 17 20:37:06 funny random Apr 17 20:37:28 Or maybe, since my first example will be a bit quieter than what you started with: rsRand(-1.0f,1.0f) - rsRand(-1.0f,1.0f) Apr 17 20:37:34 white noise is perfect distribution on all the spectrum Apr 17 20:37:38 Which might be a bit louder. Apr 17 20:37:45 Im assuming you guys are talking about audio stuff? Apr 17 20:37:48 yes Apr 17 20:38:01 Right. I like audio. It lets me hear things. Apr 17 20:38:07 That can be handy. Apr 17 20:38:08 :) Apr 17 20:38:09 Thats about all I can contribute Im afraid. Apr 17 20:38:15 Saves lives on busy streets. Apr 17 20:41:17 ok, lets rephrase the question. how can I access a static variable in the activity from the service in a separate process? Apr 17 20:41:34 You can't Apr 17 20:41:49 really? Apr 17 20:42:10 so I need to bind and send it over that way? Apr 17 20:42:15 :( Apr 17 20:43:55 what does "This Handler class should be static or leaks might occur" mean? Apr 17 20:44:46 in the example metioned here: http://developer.android.com/guide/components/bound-services.html#Messenger Apr 17 20:46:45 Can't find that sentence anywhere Apr 17 20:47:04 MDTech-us_MAN, no Apr 17 20:47:10 separate process means static variables are not present Apr 17 20:47:24 avoid ipc if possible Apr 17 20:47:36 there are very few reasons to use ipc on android Apr 17 20:47:41 (within the same app) Apr 17 20:48:37 And AIDL should be used when there is? :D Apr 17 20:48:46 yes, you use aidl if ipc is involved Apr 17 20:48:46 *please be right, please be right* Apr 17 20:48:51 WOOO CORBA! Apr 17 20:48:53 Hahaha Apr 17 20:48:59 CORBA taught me that. Apr 17 20:49:49 Might get a T-Shirt that says "F**K the ORB" on it. Apr 17 20:53:54 What is better for performance (if there is a difference) Apr 17 20:54:13 or is there absolutely no difference between an anonymous thread and a named thread? Apr 17 20:54:19 Stupid question. Apr 17 20:54:21 No difference. Apr 17 20:54:24 Apr 17 20:57:10 All threads are named, just a question of whether you decide on the name or not Apr 17 20:57:40 Yeah, so much wrong with that question I wish I hadn't said it haha. Apr 17 21:19:26 I'm having a lot of issues deleting a row given a row ID from my table, can anyone assist? Apr 17 21:19:47 This is the method I'm using: Apr 17 21:19:51 https://www.irccloud.com/pastebin/UTpkhzZB Apr 17 21:20:05 and my ri is set correctly, i checked the logs Apr 17 21:27:06 RedDunce: have you tried db.delete(RX_TABLE, RX_ID + "=?", new String[] { String.valueOf(ri) }); Apr 17 21:30:06 yeah, i have unfortunately :( Apr 17 21:30:12 i think the problem might be with how i add to my db Apr 17 21:30:18 so when i create my db Apr 17 21:30:29 i have it autoincrement the ID as a primary key Apr 17 21:30:35 but i never manually call it Apr 17 21:30:44 would you mind taking a quick look at my db code or are ya busy? Apr 17 21:30:52 anyway, I've relegated my services to simply be lifecycle managers that have a reference to another object I need Apr 17 21:34:32 hey pfn Apr 17 21:37:15 is there a good tutorial on how to add bluetooth joystick control to your android game? Is it pretty easy to do? Apr 17 21:37:16 sup nappy Apr 17 21:44:16 anyone? this is really confusing me to no end, and the worst part is i'm sure it's a really quick fix Apr 17 21:44:35 i'll donate you reddit gold or paypal you a few bucks if anyone could put in the time :/ Apr 17 21:47:12 Newly installed OS, but I keep getting a java.exe' is not recognized as an internal or external command, Apr 17 21:47:13 operable program or batch file. when trying to start a new android project Apr 17 21:47:26 anybody any idea? All I find is that java.exe should be in your path, which it is Apr 17 21:47:47 Is there a way to modify an apps source & recompile? Apr 17 21:49:12 im using Intent.ACTION_OPEN_DOCUMENT to get my file from sdcard, but on emulator I do not see it, but I'm sure I created and attached it Apr 17 21:50:00 on real machine i can go through many directories Apr 17 22:01:39 https://www.irccloud.com/pastebin/Z8mjTKY0 Apr 17 22:01:45 return db.delete(RX_TABLE, RX_ID + " = ?", Apr 17 22:01:45 new String[] { String.valueOf(ri) }); Apr 17 22:02:05 i have no idea how this could possibly not work Apr 17 22:02:13 i do Apr 17 22:02:20 db is not writeable Apr 17 22:02:43 or ri does not exist in RX_TABLE in the RX_ID column Apr 17 22:02:54 well, i call db.getWritableDatabase() before :( Apr 17 22:02:58 probably because your CREATE TABLE does not set RX_ID as the PRIMARY KEY Apr 17 22:03:38 DB_CREATE = "CREATE TABLE " + RX_TABLE + " (" + RX_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + RX_NAME + " TEXT," and so on and so forth Apr 17 22:05:00 is there a way i can test if ri does not exist in the RX_TABLE in the RX_ID column? because i call rxitem.setId(rxDb.insert(rxItem)) Apr 17 22:06:10 and then whenever i call delete, i call it through .delete(rxItem.getId()), which calls the db.delete method i just showed Apr 17 22:09:40 any clue why that could possibly be Napalm? or any advice how to debug it? sorry bout my noobihsness, i've only been working with android for roughly 3 months now Apr 17 22:10:53 have you used the Log methods to determine each time you insert into the database you are getting a unique id back? Apr 17 22:11:32 I would also suggest you Log in your delete function to determine which ID you are trying to delete Apr 17 22:12:43 yup; i've stepped over it in the debugger, and the ID of the item i'm trying to delete matches the row in the database (according to the toast I make when inserting an entry, anyways) Apr 17 22:13:25 what are you doing to confirm its been deleted? Apr 17 22:13:54 just seeing if it's still there Apr 17 22:13:56 (which it is) Apr 17 22:14:02 (so it hasn't actually been deleted) Apr 17 22:15:27 seeing? Apr 17 22:15:47 are you sure its not just your display code that is failing and it has actually been deleted Apr 17 22:17:18 oh wow Apr 17 22:17:53 I have built a authentication service that will crash the entire system when you try to configure the account Apr 17 22:18:05 Java only, no native code Apr 17 22:21:43 Napalm: I guess I can't be sure, but I don't think so because whenever I close/re-open the app, it shows the same Apr 17 22:21:50 and I know I Apr 17 22:21:59 reupdate my view onResume Apr 17 22:44:25 anyone help me? Apr 17 22:46:56 creatorb1: dont ask for help, just ask, and if anyone can assit they will reply Apr 17 23:13:13 i guess he didn't want help that bad :P Apr 17 23:15:37 Where I can get the default "send text to" button? (the one that shows up to the right of phone numbers in "People") Apr 17 23:16:03 I've scoured the drawables in the platforms and can't find it anywhere. Apr 17 23:16:27 greymalkin: there's a website, give me a sec Apr 17 23:16:57 https://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html#foreground.space.trim=1&foreground.space.pad=0&foreColor=33b5e5%2C0&crop=0&backgroundShape=bevel&backColor=ffffff%2C100 Apr 17 23:25:22 is there a way to turn off a screen and light it up again on touch? Android 4.2.2, if it's any difference Apr 17 23:39:45 bankai_au: Thanks for the link, but I found it in the main app packages (full download of Android source tree needed) Apr 17 23:40:00 that's also another way :P Apr 17 23:40:03 It was called "ic_text_holo_light.png" in the ContactsCommon application. Apr 17 23:45:44 I use a AlertDialog.Builder to build a alert with listview menu, how do I dim/disable a menu entry? Apr 18 00:02:18 Has anyone experienced a slow rate of playback when streaming an mp3 over HTTP using Android's MediaPlayer class? Apr 18 00:09:39 Why doesn't Volley support multiple response headers? Is there a good reason? I was able to patch it myself (yay OSS) but I shouldn't have to. This is really common for Set-Cookie headers. Anyone know why this isn't in there yet? Apr 18 00:23:31 jayd16, I don't know. Apr 18 00:23:40 jayd16, please submit the patch upstreams Apr 18 00:26:30 smallfoot-, Sounds like a plan Apr 18 00:58:49 hello, can anyone direct me to a channel for the HTC ONE? Apr 18 01:03:28 can anyone help me with the htc one? Apr 18 01:04:01 GuyNeedsHelp, try #android Apr 18 01:04:49 ty Apr 18 02:29:00 Anyone got an example of a arrayadapter using notifyDataSetChanged() after new data has been downloaded from a service Apr 18 02:29:01 ? Apr 18 02:38:29 hi, i got problem with Android.mk Apr 18 02:42:23 GEEGEEGEE service is irrelevant Apr 18 02:42:47 adding to the arraylist, or to the adapter? arrayadapter is mostly useless. i use it sometimes for spinners Apr 18 02:42:55 extend baseadapter instead Apr 18 02:43:03 one of my LOCAL_MODULE value has '(' in it. it broken the build somewhat. Apr 18 02:43:05 plenty of examples in apidemos Apr 18 02:49:59 Does anyone have any recommendations for finding button images for my app? Apr 18 02:50:30 noun project Apr 18 02:50:37 instead of searching for images of buttons online, and then photoshopping them to have two states {pressed, normal} Apr 18 02:50:58 g00s: k thanks ill look into it Apr 18 02:51:06 p_l this was pretty interesting http://theinvisiblethings.blogspot.fr/2011/04/linux-security-circus-on-gui-isolation.html Apr 18 02:51:20 you dont need button images, android already have a default look for buttons Apr 18 02:51:36 smallfoot-: right, but theyre very bland Apr 18 02:51:50 those are the ones you should use, you can also change their color i suppose Apr 18 02:51:51 smallfoot-: im trying to make the ui fancy Apr 18 02:52:01 make it fancy without violating the android design guide lines Apr 18 02:52:19 ugh, did you guys listen to that interview with duarte a few days ago? i got the impression they are going to update the design guidelines again Apr 18 02:52:20 mantazer, http://developer.android.com/guide/topics/ui/index.html Apr 18 02:52:27 mantazer, https://developer.android.com/design/index.html Apr 18 02:52:37 g00s, no, I didn't Apr 18 02:52:47 i'm going to hang myself if they do Apr 18 02:52:55 g00s, maybe, because there are rumors that 4.5 or 5.0 will have a new design Apr 18 02:53:18 what i hope is this; they just give us more fucking widgets, don't put the burden on us to emboss / shadow / bezel shit to fit in Apr 18 02:53:47 smallfoot-: im not sure i understand. are you talking about the default buttons? the gray one's? Apr 18 02:53:59 mantazer, yeah, those are great! Apr 18 02:54:15 smallfoot-: oh ok, and i would just change the xml to get it look like how i want? Apr 18 02:54:20 smallfoot- yeah, i dont think holo is *bad* i still like WP more; but they do bring up good points about everything being too flat Apr 18 02:54:37 but man i hate skeuo :) Apr 18 02:54:45 yeah skeu sucks Apr 18 02:54:47 i like holo Apr 18 02:54:50 if there is any felt or leather i will rage Apr 18 02:55:27 about linux security cirucs, on gui isolation, yeah its true X is shitty, and keyboard is easy to snoop, etc... but i think its gettin better with Wayland Apr 18 02:55:27 maybe they'll make all the falses become true, like they did when they moved from VB 3.0 to 4.0 lol Apr 18 02:55:50 i wonder with this amazon phone, its 3d display, wth this means exactly. perhaps affordance and information can be separated ? Apr 18 02:56:04 maybe open up new avenues for UI ? Apr 18 02:56:16 yeah i dunno what they think they're going to do w/ the 3d Apr 18 02:56:32 hey dragorn Apr 18 02:56:38 3D displays have been done before, Nintendo, HTC. Its an interesting idea, but so far all implementations have been shit Apr 18 02:56:40 i got the impression it was going to do some sort of wacky head tracking to give viewing angle stuff Apr 18 02:56:54 b/c otherwise you can do it from just the sensors already Apr 18 02:57:12 so if it actually tracks where you're looking at it from and you can look "into" it... i guess that's cool. or something. Apr 18 02:57:30 there was an interesting anecdotal story i read maybe a few weeks ago, that females were more likely to get headaches from 3D type stuff than males Apr 18 02:57:57 hi all :) Apr 18 02:57:58 i have a phone, the screen is broken Apr 18 02:57:58 the phone works fine Apr 18 02:57:58 and connects via usb to my computer Apr 18 02:57:58 two similar questions Apr 18 02:57:58 physiological differences in visual perceptual architecture Apr 18 02:57:58 1. can i recover the text messages on the phone? Apr 18 02:58:02 2. where/how are text messages stored in the android filestructure? Apr 18 02:58:16 g00s: i read something like that, yeah. About parallax vs other perception Apr 18 02:59:06 viktech: try #android Apr 18 02:59:22 dragorn if you have a second, can i ask you what your opinion (if you have one) on this is https://code.google.com/p/android/issues/detail?id=68643 Apr 18 02:59:30 join #android-dev Apr 18 02:59:34 x_______________x Apr 18 02:59:47 viktech: we're pretty much exclusively app dev here **** ENDING LOGGING AT Fri Apr 18 02:59:59 2014