**** BEGIN LOGGING AT Sat Jun 28 02:59:58 2014 Jun 28 03:32:10 please, how can I add a GoogleMap inside the LinearLayout of my Fragment? Jun 28 03:33:06 I can crete the Fragment once (on my navigation drawer).. but when i clicked the second it crashes: Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Duplicate id 0x7f070069, tag null, or parent id 0x0 with another fragment for com.google.android.gms.maps.SupportMapFragment Jun 28 03:34:17 the stacktrace: http://pastebin.com/xJ1su8jQ Jun 28 03:34:56 RxDx does this help? http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi Jun 28 03:35:52 i just learned something about nested fragments too :) Jun 28 03:36:33 nested fragments Jun 28 03:36:37 ewwww Jun 28 03:37:36 seems like they have a use case once in a while, maybe 1 level deep - but i try not too Jun 28 03:38:04 and i assume all kinds of weird shit could go wrong, like options menu, etc Jun 28 03:39:19 im gonna do a test rewrite of a simple app of mine with mortar Jun 28 03:39:21 see how it works out Jun 28 03:39:38 cool, let us know Jun 28 03:42:30 g00s: thanks :))) Jun 28 03:42:47 yw ;) Jun 28 03:46:26 g00s have you ever dabbled in mortar? Jun 28 03:47:41 g00s: I was reading that stackoverflow link.. is the 2 upvotes answer a more elegant solution than the 166 upvotes answer? Jun 28 03:48:20 Hey how can I tint a drawable/image on focused. Via XML Jun 28 03:48:38 desmin88 no i haven't Jun 28 03:51:53 Anyone?? Jun 28 03:51:55 RxDx i'm not sure Jun 28 03:52:48 ProjectBarks: google it, theres a couple good results Jun 28 03:53:01 I did Jun 28 03:53:05 all I found was shit Jun 28 03:53:26 uhh Jun 28 03:53:31 what have you tried so far Jun 28 03:53:45 RxDx Mapfragment itself might be slightly picky … i haven't used it. go with the most robust solution :) Jun 28 03:53:46 Like I want to find something that can do this via selector Jun 28 03:54:10 g00s: which is the most robust solution? Jun 28 03:54:22 You can do it programmatically easily Jun 28 03:54:33 ik Jun 28 03:55:14 RxDx try answer wth 53 upvotes Jun 28 03:55:32 g00s: actually its no clear to me whats the diff between GoogleMap (provided by the play service) and the Map provided by the Android API... and I didnt undestand the diff between Location by PlayService and Location by Android API Jun 28 03:55:44 oh shit, might be a problem with that one actually Jun 28 03:55:45 What I did for a custom card was to have two drawables, a darkened version for select/focus and a normal version Jun 28 03:55:52 i give up RxDx ! Jun 28 03:56:28 g00s: the 53 was the first that I tried... not work.. but the 166 worked fine :) Jun 28 03:56:44 ok , good phew Jun 28 04:13:12 * g00s is irritated there are no release notes for support lib 20.0.0 Jun 28 04:17:04 g00s: did you go to I/O? Jun 28 04:18:05 capella no … i actually get overwelmed by all day things like that. i'll probably watch some of the vids later when Material makes sense to play with - but thats far off Jun 28 04:18:20 * g00s also likes to avoid crowds Jun 28 04:18:43 capella DID YOU ? Jun 28 04:18:46 oops Jun 28 04:18:49 ah ... thought I saw you remark in passing about lectures / presentations Jun 28 04:19:13 no - I didn't get to go ... mozilla sends fte's to that - not contributors afaik Jun 28 04:20:23 capella oh yeah i was doing my Statler / Waldorf thing with some of the videos Jun 28 04:20:40 especially the fireside, love those Jun 28 04:21:07 * capella <3 the muppets Jun 28 04:21:12 hehe Jun 28 04:22:50 not really too interested in the wearable stuff; i don't see myself getting a watch - but maybe lots of people ask for that feature, and i have to do it Jun 28 04:23:17 car stuff - meh, my truck is so old its probably using an 8051 in it Jun 28 04:24:01 i explicitly go for the simplest things, least gadgets, least bells & whistles - life is simpler, less shit breaks, etc Jun 28 04:24:14 * capella has no use for wearables ... car stuff should have potential market Jun 28 04:24:36 all i have is a/c and power mirrors because - you can get into an accident mucking with mirrors while driving :) Jun 28 04:25:26 capella yeah maybe FF optimized for that layout, context - not sure how it would work out Jun 28 04:26:42 ouch ... one of my old mentors posted a js snip to prove a bug exists, and it has a bug Jun 28 04:27:43 car manufacturers are kinda like carriers Jun 28 04:27:59 they will fuck everything up Jun 28 04:28:29 another 'party' in the un-virtuous cycle ;) Jun 28 04:28:56 i want to use my new nexus 20 with my car ! Jun 28 04:29:11 oh, well, you'll have to update to the 2018 foomobile Jun 28 04:29:15 yeah fuck that :D Jun 28 04:32:13 another in-secure device in my life thanks to the internetofthingz ... now people will have me accellerate to 140 to watch me die Jun 28 04:33:47 i can't remember who it was, US DOT or NHTSA .. they want all cars talking to all cars Jun 28 04:33:58 for accident avoidance, etc Jun 28 04:34:34 * g00s looks for article Jun 28 04:42:05 capella oh well, cast a wide net couldn't find that article Jun 28 04:42:16 but did find something else not related but interesting http://www.computerworld.com/s/article/9248874/Enough_with_all_the_apps_in_my_car_say_drivers_ Jun 28 04:43:01 yah - heh - I read that on cw Jun 28 04:43:07 and I agree Jun 28 04:44:45 and then this was weird http://www.wired.com/2014/06/gm-license-app-text/ Jun 28 04:45:05 so yeah, don't want car companies involved in my computing ecosystem ;) Jun 28 04:45:33 yep - saw that too - suckers ;) Jun 28 04:47:54 well I just proved my mentor made a boo boo, now to gently point it out :D Jun 28 04:48:24 capella you have a mentor? thats cool Jun 28 04:48:36 good mentors are hard to find Jun 28 04:48:54 well, in that he used to be my main reviwer - I should have said module owner Jun 28 04:49:15 but yah, he was cool to work with - patient when I was first stumbling around Jun 28 04:50:22 then you run into the reviewers who basically post comments "well this is obviously wrong, can you fix it then repost?" Jun 28 04:50:23 And it's like "whaaaaaaaaa? it works!" Jun 28 04:50:50 can I buy a vowel? Jun 28 04:51:00 or do I have to drag it out of you? Jun 28 04:51:44 yeah, that would have been a nice thing about going to I/O … i think you could talk to expers there if you had some persistent / nagging questions & troubles Jun 28 04:51:55 or code review. sometimes i feel like i'm not doing the right thing Jun 28 05:06:35 dang: so I'll get to close the bug with no code commit Jun 28 05:08:02 hi Jun 28 05:08:24 can I use adb as a linux system like making directories,creating files,changing permissions etc? Jun 28 05:08:31 j #java Jun 28 05:08:40 what I need to do to achieve this any tutorial? Jun 28 05:11:38 adb is just a connection bridge to a device Jun 28 05:15:50 JakeWharton, then how can I change the permisson of sdcard folder to move some files into it Jun 28 05:15:58 adb shell Jun 28 05:16:13 dumps you into an interactive shell which is running on the actual device Jun 28 05:16:27 JakeWharton, yes and after that? Jun 28 05:16:40 su root? will give me access to write? Jun 28 05:19:09 there are a lot of awesome guides online Jun 28 05:30:07 looks like some notable designers have good things to say about Material http://venturebeat.com/2014/06/27/top-designers-react-to-googles-new-material-design-language/ Jun 28 05:32:00 UI design is not coding Jun 28 05:32:28 and I suck at it Jun 28 05:34:53 yeah, if all i have is the javadoc for an android UI thing i'm lost Jun 28 06:23:39 hi all Jun 28 07:27:01 In the google IO 2014 app, the grid is a special view (maybe from the material design) or just frameLayout with imageview and textviews? Jun 28 07:36:09 I dont know whats happeneing to the package creation Jun 28 07:36:31 the source folder does not contain anything Jun 28 07:36:43 I created a new android application project Jun 28 07:37:10 And the src folder does not have the dropdown attached Jun 28 08:15:24 yoavst: it's probably a RecycleView Jun 28 08:19:03 hello does anyone had problems with gradle version after upgrade? Jun 28 08:19:07 I have upgraded ADT and SDK Jun 28 08:19:30 it proposing me to upgrade gradle to version 1.10 Jun 28 08:19:39 And now I am not able to create a new android application project because the src folder does not contain any Mainactivity ie no dropdown Jun 28 08:20:01 but all your previous are still running? Jun 28 08:23:48 mene, yes Jun 28 08:24:03 all previous are working fine Jun 28 08:29:51 mene, I think the ADT is not installed properly Jun 28 08:30:17 because when I create a new workspace with the new ADT it is totally different Jun 28 08:30:38 I dont find the SDK Manger and Android virtual device menu Jun 28 08:31:20 sorry it was because I was in resource perspective Jun 28 08:31:46 Everything is fine still I dont see anything under src Jun 28 08:33:52 I see both the layout folder and src folder are empty Jun 28 08:38:44 mene, I got something Jun 28 08:39:00 Blank Activity does not work as in previous eclipse Jun 28 08:39:20 except that other activity time are working like empty activity and many more are included this time Jun 28 08:39:26 time/type Jun 28 09:05:59 Still want to get Robolectric to work with Scalatest. I could spend an entire day today but I don’t know where to start. Jun 28 09:38:58 I finally got fed up with not being able to import my desktop firefox bookmarks onto my android devices (I don't like sync) Jun 28 09:39:13 so I'm working on an app to read .json files... Jun 28 09:40:01 is there a kind of listview that will let me have a tree view structure, or cascading menus like firefox's bookmark's menu? Jun 28 09:40:21 (my plan is to run this app, pick the bookmark I want, and it'll open firefox and take me to the bookmark) Jun 28 09:41:22 oh well :( Jun 28 09:44:19 I guess what I need to do is show the top level, and when a folder is clicked on, show that level, until I select an individual url Jun 28 09:47:12 okay so expandable listview is what I want. Jun 28 09:52:08 Hello Jun 28 10:02:32 AnAnt, hi Jun 28 10:03:25 I wrote an app, but it sometimes causes a runaway process, how can I debug that ? Jun 28 10:03:54 the app contains a thread which monitors a connection Jun 28 10:04:22 the runaway usually happens when phone is disconnected from internet Jun 28 10:04:43 but it is does not happen consistently Jun 28 10:15:48 Anyone else experience that the activity-transition example from the l-preview sometimes does not animate the image? Jun 28 10:20:44 has anyone experience with his app being repackaged by someone else and offered on Google Play? Jun 28 10:34:23 morning Jun 28 10:40:28 EPG, no, not yet. that must suck. Jun 28 10:42:51 havchr, yeah, well, at least Google took it already down. But there exist enough other websites which still pirate it anyway :/ Jun 28 10:43:15 is it a game or an app? Jun 28 10:43:42 app Jun 28 10:44:48 I'll ask google if they can give me some info about this (e.g., number of downloads etc.) Jun 28 10:45:50 but since their information politics is rather restricted and I don't have much hope that they'd tell me anything (they didn't inform me about this illegal copy anyway) I hoped that maybe someone else already had similar experience Jun 28 10:46:02 EPG: what app is it? Jun 28 10:46:17 RepetiTouch Pro (https://play.google.com/store/apps/details?id=com.cygery.repetitouch.pro) Jun 28 10:47:56 looks like a practical app for a lot of things Jun 28 10:48:52 do you know how they managed to clone the app? I know nothing about how easy/hard it is to clone apk's if they live in google play. Jun 28 10:49:52 not in detail, I only got a report from a user which indicated a different package name and found a link to a matching app page on Google Play on another site Jun 28 10:50:08 but I think renaming the package name and resigning the apk can be done in a few seconds Jun 28 10:58:28 EPG: can't you do an update adding security to the app? Jun 28 10:58:53 you can check the app package name when the app starts, for example Jun 28 11:00:26 gdrc, sure, there are many things which could be done. But once it's cracked (again) it's cracked :( Jun 28 11:01:34 yes, I meant for the future updates Jun 28 11:02:31 yes, that's what I thought Jun 28 11:03:29 sorry for that, that should frustrating Jun 28 11:04:11 yeah. Pirating is one thing. But the amount of users who try to get support for a pirated copy is even worse Jun 28 11:04:42 lol Jun 28 11:37:42 anyone planning to get ADT-1? (the android tv devkit) Jun 28 11:38:10 p_l, u mean the latest ADT 23 Jun 28 11:38:13 API 23 Jun 28 11:38:22 SDK tools API 23? Jun 28 11:38:35 niru: no, I mean a physical kit that contains actual tv-attached device :) Jun 28 11:38:46 :( ok Jun 28 11:39:18 http://developer.android.com/preview/tv/adt-1/index.html Jun 28 11:57:57 hey guys i made another xml action under res/menu/ filename.xml Jun 28 11:58:12 i want to add it to the bar, when i added the code it added the originall text i wanted beside the three dots going horizontally Jun 28 11:58:17 but i cannot figure out how to make it show on the main page Jun 28 12:01:17 p_l: how can we get one? Jun 28 12:02:31 there's a page somewhere in the android tv preview with a form to fill in Jun 28 12:03:06 oh ok Jun 28 12:03:14 https://support.google.com/googleplay/android-developer/contact/adt_request Jun 28 12:11:32 hey guys this is my code for a different xml file in the menu folder my goal is to add this into the main screen along siode with the three ... icon Jun 28 12:11:32 http://pastebin.com/9iwfmezy Jun 28 12:11:49 how can i go about doing this at the moment, i set up another menu / action bar, but i cannot view it along side wit hthe three dots. Jun 28 12:40:11 hi, i am trying to run android in a chroot on my non-android linux smartphone (nokia n9), we have a tool called apkenv which is basically a modified bionic linker which allows us to run some android apps but not all of them because the java parts need to be rewritten and currently there are maybe ~10 apps supported, what is important is that apkenv allows us to intercept function calls. i am currently trying to run surfaceflinger through apkenv which wor Jun 28 12:40:11 ks but now i want to get surfaceflinger to render into an X11 window, i tried to intercept eglGetDisplay (the actual driver call not the higher android egl layer) and pass our X11 connection to it and i also intercepted eglCreateWindowSurface and passed our X11 window handle to it but all i get is a black screen, can you maybe help me out a little? Jun 28 12:53:49 krnlyng: you need to write new surface flinger driver Jun 28 12:54:22 I'd generally suggest different approach than apkenv apparently does Jun 28 12:54:49 create a container, and make new "port" of android with drivers that interact with host OS Jun 28 12:55:36 pfn: Are you here? Jun 28 13:02:16 Hi. I'm trying to record some video in an activity. I've tried to initialize the Camera and MediaRecorder in the activity's onCreate(): http://pastebin.com/UpTZbvTz, however, the camera seems to be crashing: http://pastebin.com/RfsLa426. I've run out of ideas, but I guess I'm doing something in the wrong order/way? Jun 28 13:02:51 What seems weird is how "Contentview set" is printed again after the video settings log message is printed, even though it shouldn't Jun 28 13:23:55 ehh, why there's no glass emulator :( Jun 28 13:31:47 hey everyone! can anyone help me with an RUU problem? Jun 28 13:32:11 #android-root sounds more like it Jun 28 13:32:24 thanks :) Jun 28 13:33:41 Hi! Jun 28 13:35:33 How can I check whether my App is signed correctly to use a Google API? Jun 28 13:36:57 I'm trying to create my own style for a ProgressDialog with Horizontal progressBar. I've created this custom shape.xml ( http://pastebin.com/EcmLmfNX ), and here is the result: https://www.dropbox.com/s/eiguy1ib2d0hqhk/Captura%20de%20pantalla%202014-06-28%2015.36.50.png . I want it to be as thinner as default android 4.x ( http://goo.gl/CmhocP Jun 28 13:37:02 sorry Jun 28 13:37:52 Basically, I just want to change the default progressbar color, nothing else Jun 28 13:39:49 Hey guys can you i am about to start my first project with Fragments (probably will use some stuff from Android L too) this is how i would usualy have activities http://oi57.tinypic.com/fvxlow.jpg can you give me some suggestions how much activites would you use or fragments? Jun 28 13:42:06 Sepho, android:background Jun 28 13:42:33 ArcaneWater: use activities as entry points and only if you really need Jun 28 13:43:50 anyone had luck clipping with a path with the outline-class ? (ref the L-preview sample project view/clipping) Jun 28 13:44:18 gdrc i was using activites all the time, but now as development goes on i want to test fragments for the first time ^^ Jun 28 13:44:21 Hello. Can anyone perhaps tell me how should i properly split my program to smaller parts depending on what action each part does? I was doing it with packages like com.app.database, com.app.search but i'm starting to think this is wrong Jun 28 13:45:21 How do I get the signature of my apk? Jun 28 13:46:08 skulltower, that does not seem horribly wrong. The best way to be sure is to let someone else find their way around the code. If they can find things easily, then it's all good. Jun 28 13:46:28 skulltower: I agree with havchr , that's not wrong Jun 28 13:46:42 shmooz: I explaned there in detail: http://stackoverflow.com/questions/24467444/change-progressbar-color-in-progressdialog Jun 28 13:47:00 marrrk: having the keystore file Jun 28 13:47:21 https://github.com/ianhanniballake/GlassPowerLevel <--- the obvious Glass App Jun 28 13:47:24 gdrc, havchr is there any way i get my activity from lets say package com.app.search in my manifest? Jun 28 13:47:32 it doesn't recognise the name Jun 28 13:47:52 I’m just confused as to why I can’t get calendar information through the Google API although I have added my key to that developer console. Jun 28 13:48:16 ahh... is name=".search.SearchActivity" correct way to do that? Jun 28 13:48:29 oh yes Jun 28 13:48:36 skulltower, it should not be a problem. just write the full name. drop the . in front if you want to specify an absolute name Jun 28 13:48:55 if i write just .SearchActivity it doesn't find it Jun 28 13:49:15 skulltower, or .search.SearchActivity if your package name is com.app Jun 28 13:49:52 Aha, so I need to add the key to the manifest. Jun 28 13:51:00 havchr, thanks i got it working :) Jun 28 13:51:02 how is this supposed to help anyone: „Add the key to your application by adding an element to your application's AndroidManifest.xml file.“ Yeah, great where and what’s the tag? Jun 28 13:51:05 Hey guys. Im in germany and cant seem to get the android wear app from the play store here. Does anyone have the apk or know where i can get it? Jun 28 13:52:00 goneeuro: you need to either way (till circa 7th july) or join preview group for Wear, Google Search and Google Play Service Jun 28 13:52:03 *Services Jun 28 13:52:25 goneeuro: http://t.co/MnJo4MkpFy Jun 28 13:54:44 This is weird, the L-preview outline clipping seems to only work with a rounded rect. Jun 28 13:55:31 p_l: Thanks. signed up as a tester. Jun 28 13:57:15 goneeuro: then follow the links to the play store to install wear app and upgrade google search, wear app will ask to update Google Play Services on start Jun 28 13:57:36 ok. thanks. Jun 28 13:57:46 I got it working with emulator Jun 28 13:58:04 a total newb question. i have a ViewPager that has an input field in it, when i swipe to the sides the keyboard minimizes. that takes time (keyboard minimizing), i want the keyboard to be swiped away with the contents of the view. is it possible? Jun 28 13:58:05 (wear emulator, that is) Jun 28 13:58:07 Thats what im trying to do too. Jun 28 13:59:33 goneeuro: then after getting wear app, start the emulator, connect your android with wear app to the computer running emulator, and do `adb forward -s forward tcp:5601 tcp:5601`, launch wear app and from the gear icon in top-right select "connect to emulator" Jun 28 14:01:23 p_l: are you playing with wear? :-) Jun 28 14:01:54 gdrc: on emulator so far Jun 28 14:10:31 adb devices displays my device, whereas fastboot devices does not Jun 28 14:10:43 according to the internet it is a driver problem Jun 28 14:10:56 blut: is this an app development issue? Jun 28 14:10:58 blut: because fastboot shows only the devices that are currently running fastboot protocol (those devices don't show in adb) Jun 28 14:11:42 fastboot is presented by bootloader or firmware like UEFI (if at all present), adb is an app once the linux boots Jun 28 14:12:01 p_l: thank you Jun 28 14:12:30 p_l: so if i reboot my phone into recovey/download mode i should be able to connect to it with fastboot? Jun 28 14:15:15 in download mode, if it's implemented with fastboot Jun 28 14:15:27 hmm. the emulator just shows the android logo. does it need to boot up fully to connect to my nexus Jun 28 14:15:31 recovery *might* show in adb (all custom recoveries do) Jun 28 14:15:44 goneeuro: wait till it shows clock Jun 28 14:15:46 p_l: so recovery does show in adb. Jun 28 14:15:53 * p_l went with intel-based android wear Jun 28 14:15:59 p_l: haven't found a way to use fastboot yet Jun 28 14:16:13 how long does it ussually take to boot up? Jun 28 14:16:17 blut: `adb reboot bootloader` Jun 28 14:16:27 goneeuro: well, arm-based emulator always boots slowly Jun 28 14:16:40 yeah. im using the arm based one. Jun 28 14:16:56 its been like 4 or 5 minutes. Jun 28 14:17:00 for the wear stuff, I went with x86, because I honestly doubt I'd use NDK :P Jun 28 14:17:07 goneeuro: assume 30 minutes :> Jun 28 14:17:20 please, I need help with getting something through the api Jun 28 14:17:25 google calendar api Jun 28 14:17:28 it’s impossible Jun 28 14:17:33 I’ve done everything it asks for. Jun 28 14:17:57 I’m not sure what I need to set as application name in setApplicationName on the client. Jun 28 14:17:59 How long does the x86 take to boot? Jun 28 14:19:01 on my pc, 5 seconds Jun 28 14:20:37 goneeuro: if you have virtualization support (on windows and I think Mac that requires an intel cpu and HAXM installed, on linux both amd and intel works as long as you have KVM) Jun 28 14:20:42 then it's v. fast Jun 28 14:21:31 p_l: that just reboot the phone Jun 28 14:21:35 im downloading the x86 now. I am running xubuntu 14.04 64bit Jun 28 14:21:41 p_l: it doesn't let me access the boot loader Jun 28 14:23:15 blut: "reboot bootloader" should put you into download mode Jun 28 14:23:42 mind you, your device might not have fastboot at all, since it's not a required part of the platform Jun 28 14:24:08 p_l: ok Jun 28 14:24:43 p_l: then is there still a way to upload a custom rom? Jun 28 14:24:56 yes. But for that, #android-root might be better place Jun 28 14:25:47 thank you Jun 28 14:26:15 grr. still just showing the android boot screen. Jun 28 14:26:56 are you changing any of the default setting like ram or storage space? Jun 28 14:27:04 p_l: Jun 28 14:27:38 goneeuro: none Jun 28 14:27:42 ok. Jun 28 14:28:37 p_l: this is what i have. Jun 28 14:28:39 http://www.zimagez.com/zimage/screenshot-06282014-042804pm.php Jun 28 14:29:07 my only difference from that is "use host gpu" Jun 28 14:30:56 can someone please help me with sqlite db Jun 28 14:31:11 ia9371: no Jun 28 14:31:20 pm me Jun 28 14:31:53 um... really no Jun 28 14:32:24 ia9371: you could try asking a real question, and see if anyone answers it Jun 28 14:32:27 where do I put sqliteopenhelper Jun 28 14:32:35 in another activity? Jun 28 14:32:59 i have to make another activity and put extend sqliteopenhelper? Jun 28 14:33:22 no Jun 28 14:34:01 ia9371: https://developer.android.com/training/basics/data-storage/databases.html Jun 28 14:34:17 p_l: what do you mean by surfaceflinger driver? Jun 28 14:35:02 krnlyng: implement a driver so that Android will talk to X11/DRI/OpenGL stack Jun 28 14:35:07 gdrc how do I access my db Jun 28 14:35:20 and read its contents? Jun 28 14:35:35 ia9371: is my name google? Jun 28 14:35:36 krnlyng: the "software" driver iirc uses linux framebuffer, and various devices have their own drivers implementing details Jun 28 14:37:27 p_l: I think i found my issue. I tried to up the storage space to 4gb like the actual watches. Once i dropped that back to normal it started right up. Thanks for your help. Jun 28 14:39:43 Next question. haha. is hangouts updated to work with wear yet? Jun 28 14:40:32 not yet Jun 28 14:40:34 afaik Jun 28 14:41:12 i have not seen any recent hangouts updates Jun 28 14:42:48 has anyone already success executing binaries in /data as superuser on the Android L developer preview? Jun 28 14:44:51 p_l: Just tested it again and it works. The notification is instant and you can swipe to see the whole conversation. Jun 28 14:45:51 goneeuro: the question is whether it is just the normal notification or special support for wearable notification? Jun 28 14:46:02 I know Maps were updated recently for Wear Jun 28 14:46:23 Looks like special as I can reply from the emulator. Jun 28 14:46:40 Do you know if you can use the computer mic to give it commands? Jun 28 14:48:30 I think so Jun 28 14:48:52 I cant get it to do it. hmm. Im gonna have to dig. Jun 28 15:02:15 Is it hard to add Wear compat. to an existing project? Jun 28 15:35:39 Is there any way i can change this line so on different activities it only references 1? searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())) getComponentName returns different Activity names while i want it to be a specific one Jun 28 15:40:27 Hi all. I need some help with DateFormat. I'm converting a date to a string, and was looking for a way to convert it to the AM / PM system (im in europe) Jun 28 15:40:48 Muchoz: not hard, it seems (unless you're also adding a wear app, not just phone-side compatibility like wear notifications), but you have to be careful because apps with Wear compat can't be uploaded to Play store for now Jun 28 15:40:57 SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm", Locale.US); doesnt do it, it returns it in european format Jun 28 15:41:00 (or if they can, they won't work on majority of devices) Jun 28 15:41:30 p_l, alright. Jun 28 15:41:33 thanks Jun 28 15:43:23 so I guess my question is two-fold: How do I convert a Date's Time to a "locale" friendly format, and how would I test that? Jun 28 15:55:07 i have a ViewPager that has an input field in it, when i swipe to the sides the keyboard minimizes. that takes time (keyboard minimizing), i want the keyboard to be swiped away with the contents of the view. is it possible? Jun 28 16:03:27 Hello! Jun 28 16:04:12 Is C++ fine to start making apps with? Jun 28 16:04:29 I am more used to using languages like C/C++ than Java and I feel it Jun 28 16:04:47 Omit the I feel it lol Jun 28 16:08:04 An activity for API 11+ should extend which class? I was extending ActionBarActivity but realised it's api 7 Jun 28 16:10:30 is there a way to access a test db from shell Jun 28 16:11:42 someHuman: 'native' Android apps are in Java.. you can write apps in C/C++ but it means running outside a lot of the system frameworks - it's meant more for things like games and heavy media applications Jun 28 16:12:10 Leeds: Ah ok Jun 28 16:12:36 Leeds: So ok, I'm the type of person that doesn't do things that'll be useful in the long run. Jun 28 16:12:40 What's good about Java? Jun 28 16:12:42 1) my phablet is able to share mobile data to my laptop using wifi hotspot. 2) my phablet is able to reverses USB tether data from my desktop which in turn recieves data from my router through ethernet cable. 3) But, when I reverse tether data from desktop to my phablet and then share data to my laptop using wifi hotspot, I am not able to get data on my laptop even though I get on my phablet. My aim is to get wireless in Jun 28 16:12:49 with phablet as relay Jun 28 16:12:54 and no wifi dongle Jun 28 16:12:59 b3h3m0th_: is your aim to write an app to do that? Jun 28 16:13:15 I mainly am a C guy, if I am to learn Java I want to know what's good about it. Jun 28 16:13:21 I would write an app if I get to know how Jun 28 16:13:26 someHuman: managed language, millions of existing devs, cross-platform, etc. Jun 28 16:13:38 b3h3m0th_: this is the channel for app dev, not messing with network settings Jun 28 16:13:50 yeah, I know Jun 28 16:14:00 Leeds: So do I learn Java first and at least get good at it then jump into Android app making? Jun 28 16:14:00 necesssity is the mother of inventions Jun 28 16:14:08 yup, probably a good idea Jun 28 16:14:13 I *am* planning to write an app Jun 28 16:14:15 b3h3m0th_: so you're asking your question in the wrong place Jun 28 16:14:46 someHuman: if you know C++, it won't be hard to learn enough Java to get going, even if you don't particularly like it... Jun 28 16:14:57 Ah ok thanks! Jun 28 16:14:59 can you show me the right place > Jun 28 16:15:00 '? Jun 28 16:15:19 b3h3m0th_: #android, probably Jun 28 16:15:35 Wonder if any of the L device images will make it to the N4 before launch Jun 28 16:16:03 I don't know why but when I asked in #android , I had a strong feeling that this had to be asked in android-dev Jun 28 16:16:40 b3h3m0th_: by which you mean "I didn't get an immediate answer, so I thought I'd ask somewhere else" Jun 28 16:16:51 not at all Jun 28 16:16:57 because of the nature of the querry Jun 28 16:17:12 Leeds: So learn Java first right? Jun 28 16:17:29 So at the same time I'm not limited to apps, I can also make apps for PCs Jun 28 16:17:30 someHuman: run through the tutorial, look at a bit of code, then start looking at the Android stuff Jun 28 16:17:45 desktop Java isn't exactly popular nowadays :) Jun 28 16:17:45 I hope it is appropriate to post in stackexchange Jun 28 16:18:25 b3h3m0th_: very simple questions: are you writing code? are you using the SDK? if there isn't at least 1 yes there, you're in the wrong place Jun 28 16:19:46 once I get to know the approach, I'd develop an app. I am a noob at GUI Jun 28 16:20:00 I dont know anything about GUI Jun 28 16:20:08 so, start in #android, then come back here once you're ready to write code Jun 28 16:20:22 fair enough Jun 28 16:26:09 Leeds: This is an ok site to start with right? http://docs.oracle.com/javase/tutorial/java/concepts/index.html Jun 28 16:26:25 yup Jun 28 16:26:29 Thanks! Jun 28 16:27:52 good luck :) Jun 28 16:31:52 do the coordinates at http://developer.android.com/reference/android/hardware/SensorEvent.html change with the device, or do they stay relative to the earth? Jun 28 16:33:01 do you guys think it will be called L+Touchwiz? Jun 28 16:33:11 L+Sense? Jun 28 16:33:35 Material Touch Wiz Jun 28 16:34:43 no Jun 28 16:34:49 just Sense 7 or w/e Jun 28 16:34:55 and touch wiz will be touch wiz -_- Jun 28 16:35:03 heh Jun 28 16:35:43 Intellij 14 EAP is out, for those who like messing with that Jun 28 16:35:55 * jug6ernaut is running it Jun 28 16:35:59 seems to be mostly the same Jun 28 16:36:03 tho i haven't played with it much yet Jun 28 16:36:14 yeah i read the changelog and didn't see much Jun 28 16:40:53 question (probably a bit n00b). why does Textview.setWidth not work? Everywhere I look I see the suggestion of using a new layout paramater, but why wouldn't setWidth work? Jun 28 16:46:32 Is it not possible to launch 2 AVDs at once? Jun 28 16:46:41 have 2 active at the same time I mean Jun 28 16:47:37 Hi guys Jun 28 16:48:34 Can anyone help me with this trouble? http://stackoverflow.com/questions/24467444/change-progressbar-color-in-progressdialog . I want to change my ProgressDialog's progressBar color, just it, I do not want to change its size, shape... but just the color. Any idea? :( Jun 28 16:49:38 I need some help with building the android-ndk, I freshly downloaded it and executed it with /path/to/ndk/ndk-build and I got this output http://pastebin.com/RXQaF2yH Jun 28 16:50:22 is there someone who has compiled all the samples into one app? Jun 28 16:50:56 Is it a good idea for my app to have an About dialog? should my app have an about dialog? Jun 28 16:51:24 smallfoot- what does ur app do Jun 28 16:52:08 edit text Jun 28 16:52:10 does it matter? Jun 28 16:52:29 ofc Jun 28 16:52:36 oh, how so? Jun 28 16:53:17 need for an about dialog Jun 28 16:53:41 i personally would always add one, but if its something super simple maybe not Jun 28 16:53:47 ah, I see Jun 28 16:54:03 my about dialog says "version 1.0", is it good idea to add build date? Jun 28 16:56:54 na Jun 28 16:57:04 unless u want it for your own use Jun 28 16:57:10 oh Jun 28 16:57:54 yeah, i guess not, Chrome doesn't have build date Jun 28 17:01:04 has anyone got the android-ndk to build correctly? I've read the document files in the package and tried to follow the instructions to the best of my abilities but couldn't get ndk-build to work :( says yuv2rgb_vs_len' undeclared and fails to compile Jun 28 17:03:34 hi guys Jun 28 17:03:42 are sync services run on application startup? or are there run manually? Jun 28 17:06:01 uh Jun 28 17:06:05 application sync? Jun 28 17:06:11 you might have to go to settings -> accounts and sync Jun 28 17:06:21 and set each application account to sync automatically or whatever Jun 28 17:06:25 and what data to sync Jun 28 17:07:16 Question about ART: how are framework methods being compiled? do they become part of the same OAT file as the application? or will they sit in a separate shared object? Jun 28 17:07:22 snitch_: so whenever I check the checkbox (in settings > accounts & sync) the service is started automatically when the application starts (& the account is autheticated)? Jun 28 17:09:58 I meant only by adding the syncadpter xml file & registering it to the service the app knows that it has to start this service (I dont have to do it manually in the code)? Jun 28 17:11:19 Hey. Can anyone please help me with this piece of code? http://pastebin.com/0gjZ5C5W Once the search is entered it sends the query to BaseActivity but it doesn't use onSearchRequested and onCreate is executed twice. Anyway i can get the query once? Jun 28 17:14:57 Is there a particular class that needs to be used for a Floating Action Button, or is it just a view with elevation set? Don't remember hearing much about it at I/O and I'm looking to implement it. Jun 28 17:16:47 my app needs an 'undo' and 'redo' icon, what should I do? Jun 28 17:29:04 hey guys i added this into its own xml file in order to create an additional button on the action bar (top) of screen....it seems to show an example of it, although the background is blank obviously as it is not linked to the main activity Jun 28 17:29:15 what can i do in order to display the added button on all future activities Jun 28 17:29:19 and screens I create. Jun 28 17:29:31 this is what my xml file contains http://pastebin.com/9iwfmezy Jun 28 17:33:17 I was thinking i could perhaps put that code within the original xml document after the but that did not work what ended up happening is it added it to the bar Jun 28 17:33:26 but added the additional settings that should be below it to the ... icon Jun 28 17:37:07 I want to show a "helper screen" on button click in my app, so I thought to add a fragment over my main fragment on click. Is this possible? I want to show a black semi-transparent screen with some tips Jun 28 17:38:03 The material design stuff, what are the support libraries for it if they even exist? Jun 28 17:38:37 And does someone know a good article explaining all of the new stuff with examples? Jun 28 17:47:15 guys to add the action button to my bar Jun 28 17:47:17 it says i need to "Add the Actions to the Action Bar Jun 28 17:47:17 To place the menu items into the action bar, implement the onCreateOptionsMenu() callback method in your activity to inflate the menu resource into the given Menu object. For example:" Jun 28 17:47:21 how do i go about doing this? Jun 28 17:47:27 anyone here is using Slidingmenu lib? Jun 28 17:52:10 Hello, i want to compile this app (https://github.com/theknut/XposedGELSettings) from source and tried with eclipse and Android Studio without success. Can anyone help me? Jun 28 17:52:42 dang i cannot figure this bloddy action bar out :P Jun 28 17:52:43 haha Jun 28 17:53:30 anyone managed to create the ripple-effect for an imageButton in L-preview? Jun 28 17:54:48 it says in my activity i need to place this "@Override Jun 28 17:54:48 public boolean onCreateOptionsMenu(Menu menu) { Jun 28 17:54:49 // Inflate the menu items for use in the action bar MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main_activity_actions, menu) return super.onCreateOptionsMenu(menu);}" Jun 28 17:54:53 where is this placed?/ Jun 28 17:55:07 I know my activity but it says inproper syntax so what exact file? Jun 28 17:55:38 try double click on the line that says inproper syntax Jun 28 17:56:10 inflater.inflate(R.menu.main_activity_actions, menu) <-- you need a semicolon here Jun 28 17:58:31 Psil0Cybin do you have a short amount of time to help me out? Jun 28 18:01:11 i will help you the second i get my thing done :P in a few minutes just on a time crunch Jun 28 18:01:52 okay, thanks :) Jun 28 18:05:16 beatbrot, give me a few miuntes going to spawn up at a coffee shop Jun 28 18:05:20 ill help you in tminus 30 mins Jun 28 18:05:30 okay, thank you very much :) Jun 28 18:15:42 good thing most apps aren't like iosched; every time i start it asks me if i want to create a google+ account. fields are pre-populated; presumably all i have to do is hit the wrong button by mistake and wham-o. /that is evil/ Jun 28 18:16:13 couldn't it just ask me once ever and be over with it ? Jun 28 18:19:25 How can I have the same search widget on several activities? Jun 28 18:33:58 so apparently google's been infected with the "localize based on user ip address location" virus Jun 28 18:34:04 google play now talks partly finnish Jun 28 18:34:13 * Zharf sighs Jun 28 18:34:17 there's no hope for human kind Jun 28 18:34:25 weirdly, yes and no Jun 28 18:34:36 Zharf search has always been like that, no ? Jun 28 18:34:55 and Play store is kinda like that for a while too Jun 28 18:35:06 g00s, not the app at least Jun 28 18:35:21 oh, i see. yeah play store web was like that Jun 28 18:35:26 use vpn :D Jun 28 18:35:30 a couple of months ago, I was in the UK for a few days... while I was there, I replaced/updated an expired UK credit card... I still see the UK Play Store now Jun 28 18:36:04 well Id on't know what they're using to decide the language but it's freaking infuriating Jun 28 18:36:12 I want the applications to be the language I understand Jun 28 18:36:43 if I go in incognito, I see the HK store... if I go in with my account, I see the UK store, although I can still pay in HKD using my HK credit card Jun 28 18:37:47 I hope the world learns to stop enforcing language decisions in apps for people and let them choose instead Jun 28 18:37:54 otherwise I might just shoot myself now Jun 28 18:38:16 is there an easy way to use multiple values for APP_PLATFORM or specify differen Application.mk when using ndk-build? Jun 28 18:38:31 hm. windows phone lets you set the locale; there isn't anything like that in Settings ? Jun 28 18:40:02 for google play? no Jun 28 18:41:51 Hey all, I'm trying to follow an android dev tutorial but the sample app FCs when on the MainActivity onCreate method I change setcontentview to a different layout than activity_main Jun 28 18:42:09 you can still manually change the language, if you want Jun 28 18:43:12 Leeds, where from? the google account settings? tried it, didn't work. Jun 28 18:44:03 like with pretty much all Google stuff, add parameter "hl=FOO" to the address to set the language - e.g. https://play.google.com/store?hl=zh changes the *interface language* to Chinese Jun 28 18:44:53 nope, doesn't work Jun 28 18:44:59 it still has finnish in it Jun 28 18:45:05 no matter what language I choose Jun 28 18:45:22 even russian page has some finnish in it Jun 28 18:45:25 so if you put hl=en you still get the interface in finnish? Jun 28 18:45:40 no, just some parts are in finnish, like I've been saying Jun 28 18:46:24 like (I assume) "staff recommendations" text is always in finnish Jun 28 18:46:37 it doesn't change the content, and it doesn't change the store you're looking at, but it should change the interface Jun 28 18:47:16 content doesn't matter to me, some section titles are in finnish and some in english Jun 28 18:47:37 like new movies = uudet elokuvat but right under it, strategy games is in english Jun 28 18:49:22 http://eclipser.xmms2.org/google_play.png it's the same in the android app Jun 28 18:50:02 whoever decided that this is a good idea needs a good spanking Jun 28 18:50:08 or a bad spanking rather Jun 28 19:04:48 anyone know of any good android UI examples for 'managing tags' ? Gmail lets you filter by tags but from what I can tell, it doesn't let you manage them. nothing else comes to mind Jun 28 19:05:55 you could look at the gmail api or try the mobile web version Jun 28 19:05:59 iosched2014 drop down has a read-only list of tags for filtering, but no management interface (understandable) Jun 28 19:07:56 hm, looking at the mobile web gmail Jun 28 19:08:16 don't really see it there either Jun 28 19:08:53 gmail calls it labels - same idea Jun 28 19:16:23 hey guiys i am following the guide on the website for adding actions to the action bar Jun 28 19:16:35 but i am stuck at this step to plass the public boolean onCreate command Jun 28 19:17:09 psil you are back :) Jun 28 19:17:24 yes but i am a little bit confused, i cannot figure this out Jun 28 19:17:34 i have a button but it seems to give all the actions to the three dots ... Jun 28 19:17:35 on the top right Jun 28 19:18:09 hm..i am not that good at coding...but it would be nice if you type my name if you have time to help me :D Jun 28 19:18:27 Psil0Cybin try android:showAsAction="ifRoom" Jun 28 19:18:43 okay trying it now :D Jun 28 19:19:24 i thought that would be default, and you gave to specify whether its "never" to go in overflow though Jun 28 19:20:04 would I do ifroom for the first one, and never for the second option that should be bellow the button if you click it? Jun 28 19:20:53 in my drawerlayout, clicks on the drawer still click "through" to the main content underneath Jun 28 19:21:22 frankdrey yeah i see that too, no idea how to fix it (but i think there is a call) Jun 28 19:21:45 the AS template does suffer from that however Jun 28 19:22:06 :/ Jun 28 19:22:26 g00s, dang it still for some reason displays now the button, so for example now i have A and the Three dots Jun 28 19:22:34 but when i click A nothing happens, but all the selections I have selected for A Jun 28 19:22:38 come down on the three dots ... Jun 28 19:23:23 no idea Jun 28 19:25:18 g00s, i'm gonna try setting clickable on the viewgroup that holds the drawer Jun 28 19:25:18 oh wow, Keep doesn't have the idea of tags at all Jun 28 19:26:01 hm Jun 28 19:26:36 Keep is awsm Jun 28 19:26:37 beatbrot, ill help you now Jun 28 19:26:40 keep <3 Jun 28 19:26:42 at least ill try whats up Jun 28 19:27:00 okay :) can we do some private chat here? I dont want to spam the Room :D Jun 28 19:27:14 that did the trick :) Jun 28 19:27:28 * frankdrey <3 stackoverflow Jun 28 19:27:43 frankdrey was there a SO post about this ? Jun 28 19:28:40 g00s, maybe you can take a look at this quickly (http://pastebin.com/nJ2aA8bn) I am confused if i did it properly, i want the second ID to display under the first one Jun 28 19:29:03 http://stackoverflow.com/questions/18811973/android-how-do-i-keep-drawerlayout-from-passing-touch-events-to-the-underlying\ Jun 28 19:29:07 http://stackoverflow.com/questions/18811973/android-how-do-i-keep-drawerlayout-from-passing-touch-events-to-the-underlying Jun 28 19:30:02 frankdrey excellent, thanks Jun 28 19:32:03 psil0Cybin do you have hangouts? if yes, can you tell me your mail? Jun 28 19:32:39 g00s, i even tried adding android:orderInCategory="100" to the second Jun 28 19:32:45 evening, guys Jun 28 19:32:50 but it still adds it to the first column :( Jun 28 19:33:09 Psil0Cybin not really sure what you are trying to do ... Jun 28 19:33:32 g00s, alright I have three dots on the right that is a button for the listed outputs like Settings, Logout etc.. Jun 28 19:33:37 I want to create a second button right beside it that says Sync Jun 28 19:33:45 and have it as a drop down just like the first button that is a (...) dot Jun 28 19:33:52 but when I click on the Sync Button, it does not display the drop down Jun 28 19:33:56 do you mean overflow menu ? Jun 28 19:33:58 yes! Jun 28 19:33:59 sorry Jun 28 19:34:02 wrong terminology. Jun 28 19:35:01 oh, well if you want something to be a drop down in the action bar i guess it would either be a spinner, or a submenu ( i haven't tried that) Jun 28 19:35:02 so you want another menu to pop out from another button? Jun 28 19:35:25 g00s, "http://pastebin.com/YdkZDqwr" Jun 28 19:35:28 you could create a Menu object and anchor it on the sync button Jun 28 19:35:33 oh so at the moment, i can only Jun 28 19:35:36 just add it as a single button Jun 28 19:35:49 is there a guide on how to create Menu objects i was following this Jun 28 19:35:57 https://developer.android.com/training/basics/actionbar/adding-buttons.html Jun 28 19:36:00 its not as user friendly as i thought Jun 28 19:36:27 i alrady had an OnCreateOptionsMenu Jun 28 19:36:31 so i had to add to it by doing this Jun 28 19:36:31 @Override Jun 28 19:36:31 public boolean onCreateOptionsMenu(Menu menu) { Jun 28 19:36:31 // Inflate the menu; this adds items to the action bar if it is present. Jun 28 19:36:31 getMenuInflater().inflate(R.menu.mainscreen, menu); Jun 28 19:36:33 // Inflate the menu items for use in the action bar Jun 28 19:36:34 you have the button and an onclicklistener ready for the refresh button? Jun 28 19:36:35 MenuInflater inflater = getMenuInflater(); Jun 28 19:36:37 inflater.inflate(R.menu.mainscreen_actions, menu); Jun 28 19:36:37 :\ Jun 28 19:36:39 return super.onCreateOptionsMenu(menu); Jun 28 19:36:41 } Jun 28 19:36:58 but it makes sense Jun 28 19:36:59 see Jun 28 19:37:04 its opening up both to the R.menu Jun 28 19:37:11 wait, i meant PopupMenu Jun 28 19:37:13 but how do i get it on the left button, :P sorry its hard to explain Jun 28 19:37:24 I tried L.menu..etc lol Jun 28 19:38:18 so first of all you need to understand that the buttons in the action bar and in that menu are all one list of items Jun 28 19:38:47 oh so i ended up listing it as if they are their own buttons Jun 28 19:38:49 seperatly? Jun 28 19:39:25 ok, i have no idea what you're trying to do :p Jun 28 19:42:26 https://developer.android.com/guide/topics/ui/menus.html#PopupMenu Jun 28 19:42:28 frankdrey, Jun 28 19:42:31 anyway, you might find that useful ^ Jun 28 19:42:32 im trying to have two buttons Jun 28 19:42:35 mhm Jun 28 19:42:36 Sync / ... Jun 28 19:42:40 i can only click down ... Jun 28 19:42:44 Sync is just a plain button Jun 28 19:42:59 i am listing options under sync Jun 28 19:43:00 though Jun 28 19:43:08 so you want a second menu under sync? Jun 28 19:43:11 yes Jun 28 19:43:12 correct Jun 28 19:43:21 yeah, use PopupMenu Jun 28 19:43:25 okay thanks Jun 28 19:43:27 i will read the guide Jun 28 19:44:17 create that in code and anchor it to your sync button Jun 28 19:45:20 frankdrey, i need to anchor it to my sync button see i was copying how the orignal Jun 28 19:45:22 file was outlined Jun 28 19:46:10 frankdrey, i was trying to copy this Jun 28 19:46:11 http://pastebin.com/5qA5JDwH Jun 28 19:46:53 would that not also be proper? Jun 28 19:46:57 or is that anchored? Jun 28 19:48:50 huh? Jun 28 19:48:58 why do you have it showasaction never? Jun 28 19:49:05 that'll make it never show on the action bar Jun 28 19:49:10 because if i did IfRoom it adds it Jun 28 19:49:12 as its own button Jun 28 19:49:19 it want it as a submenu to Sync! Jun 28 19:49:28 that is what i am confused about Jun 28 19:50:19 like when u click Sync Jun 28 19:50:22 I want it to display the next ID Jun 28 19:50:33 sorry I know i am really new to this, I am just confused Jun 28 19:50:47 so do you want a sync *button* or a sync menu item that also has it's submenu Jun 28 19:54:15 .....sigh i dunno all i want is to click Sync Jun 28 19:54:18 and have a a list Jun 28 19:54:23 just like the default Action Button Jun 28 19:54:31 so i have two action buttons Jun 28 19:54:37 that do the same thing, but show different menus Jun 28 19:54:39 does that make sense? Jun 28 19:55:16 right now i have Jun 28 19:55:17 android:title="@string/action_button1" Jun 28 19:55:17 android:showAsAction="ifRoom" /> Jun 28 19:55:17 Jun 28 19:55:17 android:title="@string/updatep" Jun 28 19:55:21 android:orderInCategory="100" Jun 28 19:55:23 android:showAsAction="never" Jun 28 19:55:25 /> Jun 28 19:55:40 if Room instead of Never Jun 28 19:55:41 adds two buttons! Jun 28 19:56:02 the guide you suggested says Jun 28 19:56:09 to add a inbetween the item Jun 28 19:56:11 but that does not work Jun 28 19:57:09 no Jun 28 19:57:14 make a new menu item Jun 28 19:57:19 with your sync menu items Jun 28 19:57:23 *new menu file Jun 28 19:57:44 someone gonna yell at you for pasting lol Jun 28 19:57:49 okay by new menu item did you mean make a new .xml Jun 28 19:57:52 becasue i did that Jun 28 19:58:01 with its own item, as i copied and pasted Jun 28 19:58:03 yes Jun 28 19:58:12 it already has its own item Jun 28 19:58:18 i just need to get it to list the options under Sync Jun 28 19:58:19 ok... Jun 28 19:58:41 do you have your onOptionsItemSelected set up in the activity Jun 28 19:59:12 perhaps not, sorry this is my first project! i was just trying to follow the guide i see now that a lot , and i mean a lot is mising Jun 28 19:59:13 from android guides Jun 28 19:59:15 and tutorials Jun 28 19:59:36 the sad thing is in the preview page Jun 28 19:59:38 it shows it how i want it Jun 28 19:59:42 but it does not run the program that way lol Jun 28 19:59:50 all my submenus are under the original ... Button Jun 28 19:59:54 is your action bar looking how you want it to? Jun 28 19:59:55 * Psil0Cybin scratches head Jun 28 19:59:58 yes Jun 28 20:00:02 but not the submenus :( bellow sync Jun 28 20:00:06 now Jun 28 20:00:17 override onOptionsItemSelected in your activity Jun 28 20:00:35 \okay Jun 28 20:00:37 I am there slash see it Jun 28 20:01:51 you see how you get a MenuItem as a parameter? Jun 28 20:02:11 if (id == R.id.action_settings) ? Jun 28 20:02:17 yeah Jun 28 20:02:19 okay yea Jun 28 20:02:20 well Jun 28 20:02:21 i see that Jun 28 20:02:29 you'll need to getItemId() Jun 28 20:02:43 hmmm Jun 28 20:02:51 sorry I really must start with a different book maybe lol Jun 28 20:02:54 i am lost after that :( Jun 28 20:02:55 >.> Jun 28 20:03:01 are you following a book? Jun 28 20:03:02 bad idea Jun 28 20:03:05 no the tutorials :( Jun 28 20:03:07 on the internet lol Jun 28 20:03:08 sadly Jun 28 20:03:08 ah Jun 28 20:03:18 d.android.com is probably the only good guide Jun 28 20:03:24 yea but then i get in this boat Jun 28 20:03:27 where some of the information is there Jun 28 20:03:31 i get for example the button i want Jun 28 20:03:38 it suggests to add it following a certain step but it does not work for me Jun 28 20:03:42 or causes unexpected results :( Jun 28 20:03:44 you're not understanding what the menu is Jun 28 20:03:48 probably Jun 28 20:03:52 your 100% right Jun 28 20:04:06 Does invisible components occupy space or not? Jun 28 20:04:31 so that first menu you set up is all the items in the action bar Jun 28 20:04:46 but since they have showAsAction="false" they are pushed into the top right menu Jun 28 20:05:08 oh! Jun 28 20:05:10 and instead of showing as an icon/button, they're a menu item Jun 28 20:05:23 rorgor: invisible components occupy space, gone components do not Jun 28 20:05:42 so frankdrey i would need to change the showAsActions="True" or something Jun 28 20:05:43 ? Jun 28 20:05:58 well look, your sync button is it's own item Jun 28 20:06:12 any options under it have nothing to do with the first action bar menu Jun 28 20:06:32 frankdrey, Jun 28 20:06:33 i also did this Jun 28 20:06:34 you need to create your own new menu, and pop it out yourself Jun 28 20:06:34 http://paste.ubuntu.com/7718008/ Jun 28 20:06:49 yes, that sets up that menu & action bar items Jun 28 20:06:51 hmmmm okay man sorry so i do not bug you how do i find a guide. Jun 28 20:07:00 that teaches me this step by step Jun 28 20:07:05 because i am very lost, like i know i am annoying u Jun 28 20:07:10 nah, it's fine :p Jun 28 20:07:19 like i know im missing something silly Jun 28 20:07:20 ur explaining it Jun 28 20:07:22 but its going over my head :( Jun 28 20:08:47 like i set it as a menu Jun 28 20:08:53 but your saying that everything in my mainscreen-activies is a menu? Jun 28 20:08:58 set what as a menu? Jun 28 20:09:00 and i am not listing the options i want as a submenu Jun 28 20:09:04 let me give a shitty paint drawing :D Jun 28 20:09:05 the sync Jun 28 20:09:09 sorry Jun 28 20:09:17 gimme a minute :D Jun 28 20:10:21 okay okay Jun 28 20:10:23 let me go out for a ciggie. Jun 28 20:10:25 to relax :) Jun 28 20:10:47 I want to achieve this: http://sv.tinypic.com/view.php?pic=s6kpqw&s=8#.U68hFPmSySo // How would you do it? OK if X=Y. Jun 28 20:10:49 Does anyone have a working resource on how to style items within a gridview? Like, when you're in action mode and you're selecting them -- how to mess with the way they look when they're deselected/selected. I've tried to set the background of the list item to a drawable that has a state list in it, but it seems to ignore it. Jun 28 20:11:58 So I've tried both setting the background of each list item within the XML layout for the item, and also defining a style for each item. Do you have to define a style for the parent gridview/listview and it trickles down to the items or something? Jun 28 20:12:37 I'm kind of to the point where I want to print my code out, pour lighter fluid over it, and set it ablaze. Jun 28 20:12:49 highcup you probably want to research ?android:attr/selectableItemBackground Jun 28 20:13:55 Psil0Cybin, http://i.imgur.com/IksEbZC.png Jun 28 20:14:03 brb will explain in a minute Jun 28 20:15:02 Hmm, g00s, does styling just do wonky stuff when it comes to gridviews/listviews? Like, the properties to style things normally are present, yet they're ignored Jun 28 20:15:36 okay thank you so much frankdrey !! Jun 28 20:15:43 YES Jun 28 20:15:44 you got it Jun 28 20:15:46 thank you! Jun 28 20:15:54 that is what i want to achieve Jun 28 20:16:09 ok so see the green dotted items? Jun 28 20:16:19 those are the "options menu" items Jun 28 20:16:30 that you inflate in onCreateOptionsMenu Jun 28 20:16:52 rorgor: margin top and bottom on all Z elements equal to half of Y, padding top and bottom on parent element equal to X minus the margins you set for the children Jun 28 20:17:03 the refresh button has showAsAction set so that it shows in the action bar, rather than the overflow menu Jun 28 20:17:24 the settings/about have it set to never, which puts them in that menu Jun 28 20:17:36 and afaik, that's where your options menu customization ends :p Jun 28 20:18:07 so what you need to do is create a second menu Jun 28 20:18:09 with the red items Jun 28 20:18:34 and then when the refresh button is clicked, you show that menu with a PopupMenu Jun 28 20:19:08 Either way, thanks g00s, it's a step in a direction where at least I see some change with states in the grid view :P Jun 28 20:19:13 Question about autoLink. I have a phone number in 2 formats, one local and one international. I want to show the local phonenumber, but dial the international one. I want to show the local one, but upon clicking dial the international one. Is this possible with the autoLink method? Or do I have to make a custom listener? Jun 28 20:20:49 for URL's you can use a href in the textview, so you can control the appearance of the underlying url. Is there something like this for phone numbers? Jun 28 20:22:27 yes Jun 28 20:22:32 frankdrey, i am back let me catch up Jun 28 20:23:28 frankdrey, okay sorry so would i erase what i did for the previous menu Jun 28 20:23:35 and make its own onoverride? is waht you are saying Jun 28 20:23:51 or i did that part correctly, and what is wrong is how i layed out the popupMenu? Jun 28 20:24:54 frankdrey, so if i want it in the other menu , i would have to create a new menu? and then in that menu create the tooltips? Jun 28 20:24:58 i mean popup menu? Jun 28 20:26:14 :/ Jun 28 20:26:26 your first menu (green) is already set up right? Jun 28 20:26:33 now: Jun 28 20:26:36 oh my god Jun 28 20:26:39 i am so stupid Jun 28 20:26:42 so i would create a new activity? Jun 28 20:26:45 instead of .mainscreen Jun 28 20:26:45 no Jun 28 20:26:46 oh Jun 28 20:26:49 Thorbear: but then I need to know how much space I have. When people say dont use screensize do they just mean dont calculate from screensize. is it ok to caluclate things from a view? Like get the width and height of a view and calculate things? Jun 28 20:26:52 just a new PopupMenu Jun 28 20:26:59 hmmm Jun 28 20:27:01 that is shown when the refresh button is clicked Jun 28 20:27:10 okay okay that is what i cannot figure out Jun 28 20:27:11 lol Jun 28 20:27:23 i am just trying to look at what is already coded by default to try and copy it Jun 28 20:27:31 bad idea :p Jun 28 20:27:39 do you know Java?xD Jun 28 20:28:15 nope i am learning now Jun 28 20:28:16 ahahahah Jun 28 20:28:18 please do not kill me! Jun 28 20:28:35 heh Jun 28 20:28:35 although it is no secret. Jun 28 20:28:53 alright, well in your activity create a method that you can use to show this popup menu Jun 28 20:29:02 call it...showRefreshMenu or something Jun 28 20:29:10 alright :D thank you let me try this Jun 28 20:30:47 so i would do Jun 28 20:30:51 create a new PopupMenu object Jun 28 20:30:54 android:name=".mainscreen" Jun 28 20:31:02 :| Jun 28 20:31:07 ah wait Jun 28 20:31:08 nvm Jun 28 20:31:13 in your activity class Jun 28 20:31:18 sorry let me just think before i say anything else Jun 28 20:31:22 so u do not hit me in the head with a hammer Jun 28 20:31:25 lol Jun 28 20:31:26 i won't Jun 28 20:32:49 frankdrey, so i would make another " android:name=".mainscreen" Jun 28 20:32:50 android:label="@string/app_name" > Jun 28 20:32:50 Jun 28 20:32:50 Jun 28 20:32:50 Jun 28 20:32:52 Jun 28 20:32:54 " Jun 28 20:33:05 pastebin please :| Jun 28 20:33:06 and no Jun 28 20:33:12 do you know what a method is? Jun 28 20:33:32 or hastebin Jun 28 20:33:41 or dpaste ;p Jun 28 20:33:59 collection of statements that are grouped to perform an operation Jun 28 20:35:09 :| Jun 28 20:35:18 I mean, do you know how to create them Jun 28 20:35:34 yeah Jun 28 20:35:37 um Jun 28 20:35:49 i'm gonna have to say you really need to go learn java first :) Jun 28 20:36:03 this won't work :p Jun 28 20:36:13 frankdrey, would i ccreate the method in the mainscreen.jaa? Jun 28 20:36:15 java Jun 28 20:36:18 last question if that is wrong Jun 28 20:36:21 ill do research before asking anything else Jun 28 20:36:32 yes Jun 28 20:36:34 okay Jun 28 20:36:35 so hold on Jun 28 20:36:41 but still ._. Jun 28 20:36:42 i think i understand what you are doing Jun 28 20:36:43 saying* Jun 28 20:36:49 like what i did was list it all under one menu Jun 28 20:36:51 now i notice! Jun 28 20:36:59 but i had an issue with having more then one onCreateoptionMenu Jun 28 20:37:17 so instead of menu Jun 28 20:37:20 i would write popupmenu Jun 28 20:37:21 or something Jun 28 20:38:28 nope Jun 28 20:38:31 alright yea man sorry Jun 28 20:38:34 HI there. I have a 'Service' running that needs to show certain Activities/Fragments based on what it sees coming in though a WAMP client. Currently I am starting the activity intent directly from the service but I am finding that the resulting fragemnts loose activity context (returns null). Would it be better to use messaging? Jun 28 20:39:20 Psil0Cybin, I really want to help you, but you're missing out on a lot of fundamental java concepts :p Jun 28 20:39:41 frankdrey, yes you are correct Jun 28 20:39:46 fine so last questio nadn ill just stop Jun 28 20:39:53 would i create another mainscreen_actions.java Jun 28 20:39:57 for my other menu Jun 28 20:39:59 no Jun 28 20:40:01 okay Jun 28 20:40:08 so it would be somewhere in that current file Jun 28 20:40:13 you need to create just a PopupMenu object :p Jun 28 20:40:14 that i would have to manipulate to get my results Jun 28 20:40:17 alright Jun 28 20:40:19 so let me figure this out :) Jun 28 20:40:23 ill rip out hair but this is how i learn Jun 28 20:40:39 but i am on the right track Jun 28 20:40:40 right Jun 28 20:40:44 i did not completely screw something up Jun 28 20:42:58 frankdrey, in the xml im missing Jun 28 20:42:58 android:onClick="showPopup" Jun 28 20:43:03 is an invisible element not occupying space? so if i want an element to use as space then it should be transparent instead? Jun 28 20:43:04 then i would go back and create the PopMenu popup = Jun 28 20:43:05 correct? Jun 28 20:43:42 Psil0Cybin, onClick is just an easier way to tell android what method to call Jun 28 20:43:49 so you'd need a showPopup method Jun 28 20:44:00 and in there you create PopupMenu Jun 28 20:46:37 I guess no one knows the answer to my question? Jun 28 20:48:11 fwiw, not the answer to your question, but it's usually considered less desirable to suddenly spawn an activity from a (background service) Jun 28 20:48:52 usual idea [if you need to nudge the user about something] is to work via the notification manager. Jun 28 20:49:51 So you should not use screensize. But is it bad o get View size and calculate button sizes from this? Jun 28 20:50:43 I guess you could if you really thought this led to a better experience Jun 28 20:51:04 * kbs would generally advice sticking to grid-ish dimensions, rather than scaling by container size Jun 28 20:51:12 s/advice/advise Jun 28 20:53:20 kbs: The thing is, I am only spawning the activity if the application is in the foreground, and yes, if the app is open and the situation changes, it is a better experience if the user gets sent to the appropriate page immediately Jun 28 20:54:31 Out of curiosity, how are you discovering whether your app is in the foreground? Jun 28 20:54:55 A variable in the ApplicationDelegate Jun 28 20:55:02 which the service has access to Jun 28 20:55:20 what is ApplicationDelegate? Jun 28 20:55:42 I might be mixing up iOS and Android Jun 28 20:55:48 :-) Jun 28 20:56:22 I mean, I subclassed 'Application' and have a variable there Jun 28 20:57:26 ah, okay I see - (a heads-up, that doesn't necessarily mean your app is in the foreground... and I realize this isn't the answer to your original question :-) Jun 28 20:58:11 you'll probably need to update this variable in your activities lifecycle methods I guess. But if you go down that path, it's almost as easy to just register for events from your service Jun 28 20:58:16 kbs: no worries.. The nice thing about the messaging method is it is more elegant because I don't need to track what is in the foreground. Either there is a handler active or there is not. Jun 28 20:58:52 kbs: that is, if I am understanding correctly from what I have read Jun 28 20:59:01 cool :-) What is the "messaging method" you are using as an alternative? Jun 28 21:00:33 kbs: I'm planning on sending a 'Message' from the Service that the application will have a handler for. When the application sees the message, it can open the correct Activity in the main UI thread Jun 28 21:01:15 * kbs blames the activity/frament management model for lots of confusion here :-) Jun 28 21:01:53 Yeah there is a lot of inconsistency in the Android framework, and a lot of cluges. Jun 28 21:02:11 well, also it's related to your current idea too :-) Jun 28 21:02:37 my 0.02 might be to invert the logic a bit. Rather than having the application launch an activity, have the activity register on a global queue or something - register/deregister on onpause/onresume Jun 28 21:02:58 let the service publish a message as you planned - that's a good idea Jun 28 21:03:23 but let the activities themselves have the ability to spawn the appropriate UI as one of them become active Jun 28 21:03:48 and if none become active, you can have a fallback in your global queue that can spawn a notification Jun 28 21:04:04 kbs: ok.. I'm not quite to the point of understanding what the difference is yet but I will keep that in mind. Thank you. Jun 28 21:04:39 the main difference is that the application [by itself] cannot determine if one of its activities in the foreground Jun 28 21:05:26 Ok I hear you. The application might be in the background just minding the Service... Jun 28 21:06:24 kbs: Do you happen to know how I would see messages with Andriod ADT? Jun 28 21:07:16 I guess I will set up a handler and hope for the best Jun 28 21:07:20 :-) Jun 28 21:08:21 fwiw, it's rare for the Application object to do UI work - it's more typicaly used [effectively] a host for "globally accessible objects" - which itself is generally unnecessary Jun 28 21:08:56 i have a ViewPager that has an input field in it, when i swipe to the sides the keyboard minimizes. that takes time (keyboard minimizing), i want the keyboard to be swiped away with the contents of the view. is it possible? Jun 28 21:09:02 [meaning, needing a host for global objects is generally unnecessary, but anyway...] Jun 28 21:09:25 seriously, noone knows? Jun 28 21:09:27 grr Jun 28 21:10:45 I have a weird issue with my Android Studio, it is not showing any text whenever I run the application, ItelliJ works fine however so I am not sure what could be the problem Jun 28 21:11:19 http://imgur.com/DaNN2UX Jun 28 21:12:12 kbs: Right, but my app consists of many Activities that happen in a certain sequence, and a message may occur during any of these activities. Doesn't seem exactly right to implement the same handler in every activity. I'll figure it out. Jun 28 21:12:44 kbs.. actually when I said I would handle it in the application, I actually meant the main acticity Jun 28 21:12:54 activity Jun 28 21:13:25 malibu: oh :-) well, then you're almost certain to want to [at the minimum] manage what happens within onPause() and onResume() Jun 28 21:15:11 Yup probably Jun 28 21:16:05 anyway - don't forget about superclasses to handle common code :) and expect you'll discover any issues soon enough, as long as you test what happens when your service publishes something when another app is in the foreground. Jun 28 21:16:06 if I nest LinearLayouts, does the weight only matter inside the innermost layout then? Jun 28 21:16:45 Can the Linearlayout itself have a weight so I can weight elements inside the innermost layout to achieve horizontal weighting and then achieve vertical weighting with the alyouts? Jun 28 21:18:00 rorgor: sure. Each linearlayout only works with its immediate children [whether or not a child is itself a linearlayout] Jun 28 21:18:36 it doesn't "peek" into its children - it treats them all [essentially] the same way, and looks at the same layout_* parameters they expose Jun 28 21:20:12 but can the LinearLayout itself have a weight so if I have LinearLayouts within LinearLayouts I can have then weigghted against each other? Jun 28 21:20:34 I saw gridlayout comes in API 14 or 10 and I would like to support API 8 (for my dad :) ) Jun 28 21:21:02 does anyone know what langauage android studio is written in? Jun 28 21:22:05 intellij Jun 28 21:22:05 java Jun 28 21:22:11 rorgor: if i understood your question, what I said - a linearlayout can itself be embedded within a top-level linearlyout, and expose a layout_weight parameter Jun 28 21:22:19 i mean, it's based off intellij, which is written in java :p Jun 28 21:22:26 kbs: ok, ty Jun 28 21:24:02 frankdrey: k Jun 28 21:33:04 A player has 4 alternatives(buttons). With what colors would you indicate the following if you were to mark the buttons with a color around them: Which button the play was pressed and whether it was correct or not. Jun 28 21:34:22 this black lines in 9patch Jun 28 21:34:32 should my 9.png contain them? Jun 28 21:35:02 like in this example http://developer.android.com/tools/help/draw9patch.html Jun 28 21:36:23 Personally I would avoid 9-patch, its too boring, too much effort, takes up more app storage space, and probably ends up ugly Jun 28 21:36:37 I'm way too lazy for 9-patch lol Jun 28 21:36:43 and too untalented to make graphics Jun 28 21:37:19 well I need to make an messages view Jun 28 21:37:23 something like this Jun 28 21:37:43 plain old standard vanilla widgets <3 Jun 28 21:37:50 * L8 is looking for example Jun 28 21:38:35 http://www.appsapk.com/wp-content/uploads/2012/08/GOSMS-Pro-Rainy-day-Theme.jpg Jun 28 21:38:54 yeah, im too lazy to make anything like that lol Jun 28 21:38:57 anyway I'm trying to create an view for this messages and all the examples I found is with 9patch Jun 28 21:38:59 )) Jun 28 21:39:06 I would just use standard Android theme with a colored actionbar Jun 28 21:39:49 frankdrey, thanks again! Jun 28 21:39:52 had to come back just to say it Jun 28 21:40:06 NP :) Jun 28 21:40:11 if u can please pm me, links to recommendations Jun 28 21:40:13 of stuff i should read Jun 28 21:40:16 so i learn more Jun 28 21:43:48 L8: the black lines basically express padding Jun 28 21:44:01 if you use the draw9patch tool, it'll create them for you automatically Jun 28 21:44:18 I have a designer that created this 9patch with the black lines Jun 28 21:44:30 and when I've tried to do an example I found (ChatBubbles) Jun 28 21:44:34 it showed me the lines Jun 28 21:44:39 sorry, what is "this 9patch"? is there a link you have? Jun 28 21:45:18 9patch are a widget that consists of 9 images Jun 28 21:45:18 you'll need to create the 9patch with the tool, and compile it properly and so on Jun 28 21:45:24 https://github.com/warting/AndroidChatBubbles/ Jun 28 21:45:29 I've used this example Jun 28 21:46:13 anyway I asked someone why it's ending in 9.png Jun 28 21:46:26 and how the resource "exapands" itself Jun 28 21:46:33 and I've found 9patch Jun 28 21:46:33 * kbs is lost with the context here, sadly :) Jun 28 21:47:12 hmm Jun 28 21:47:35 well the original question is how am I creating messages layout, such as WhatsApp has Jun 28 21:47:47 any tutorial / normal example? Jun 28 21:47:55 this github project contains horrible code Jun 28 21:48:15 I dunno what "9patch" widgets are, but have some passing understanding of https://developer.android.com/tools/help/draw9patch.html and related drawables Jun 28 21:51:40 I don't see any lines in your screenshot at https://github.com/warting/AndroidChatBubbles/blob/master/HelloBubbles/assets/screenshot.png Jun 28 21:51:56 well, related to the textview at least ;-) Jun 28 21:52:30 * kbs is probably way too confused at this point, and gives up :) Jun 28 21:54:06 9patch is just a png with 1px wide left top right bottom that allow for stretching&padding, left&top for stretching, right&bottom for padding Jun 28 21:55:29 1px border, not just wide Jun 28 22:02:12 kbs: well the message solution didn't work. My fragment is still loosing its activity context for some reason Jun 28 22:02:28 :-) Jun 28 22:02:56 I'm not enjoying android development at the moment Jun 28 22:04:03 maybe post some code somewhere - I'm not a big fan/user of fragments personally, but someone might spot the issue Jun 28 22:04:42 kbs: You mean using fragments is still an option?? Jun 28 22:05:57 I just mean that right now, I'm not sure what the code is actually doing :) and if you are using fragments, then there might be some additional issues that others might spot Jun 28 22:07:27 My android code is a pathetic mess. I did a much better job of the iOS app Jun 28 22:19:58 Is there a standard way for a button to change appearance when it is pressed or do I have to rpovide my own design? Jun 28 22:28:55 umm http://arstechnica.com/security/2014/06/serious-android-crypto-key-theft-vulnerability-affects-86-of-devices/ Jun 28 22:34:15 is it really a bad idea to calculate textsize from screensize? Is the functionality to get the screensize in pixels not reliable? why not take the pixel scrrensize, calculate textsize and scale it to sp. Jun 28 22:35:29 g00s, you don't need to worry about it, because you run Android 4.4.4, right? Jun 28 22:35:50 of course you run Android 4.4.4, but your device is a Nexus, right? Jun 28 22:36:02 this vulnerability was fixed in KitKat Jun 28 22:36:17 " The advisory said Google has patched the stack-based buffer overflow only in version 4.4, aka KitKat, of Android. " Jun 28 22:36:27 smallfoot- yes i have 4.4.4 \o/ Jun 28 22:36:33 then its no problem for you :) Jun 28 22:36:49 its only problems for losers who bought samsung/lg/sony/htc/huawei, etc Jun 28 22:36:54 heh Jun 28 22:37:07 for us who belong to the master race and have Nexus devices, we all run 4.4.4 and don't have this problem Jun 28 22:37:13 XD Jun 28 22:39:51 smallfoot- i read the other day that burke said nexus wasn't going anywhere Jun 28 22:39:59 so that was a relief Jun 28 22:40:38 but there was still some wiggle room, i think they were talking about phones Jun 28 22:41:49 i'm having a hell of a time designing the navigation for this app; its weird in that the default view is the 'detail' not the collection Jun 28 22:47:32 g00s, yeah, I read that too! it was a relief! Jun 28 22:48:17 I was worried when I heard they were canceling Nexus, i was like shit! Now I have to be one of those losers with a HTC/LG/Samsung/Sony Jun 28 22:48:47 yeah, to hell with that Jun 28 22:48:52 protip - rumours are rumours, and many sites will originate a rumour just to get pageviews :P Jun 28 22:48:53 ya Jun 28 22:49:00 all android manufacturers suck, only nexus is any good Jun 28 22:49:19 but if I couldn't pick a Nexus, I would probably go with the OnePlus One Jun 28 22:49:34 i'd just get a panda board or something Jun 28 22:49:44 hehe Jun 28 22:50:08 yeah and be looking at Ubuntu Phone, Firefox OS and Tizen Jun 28 22:50:10 i think they should allow devs to but those One reference designs, if they are complete enough Jun 28 22:50:22 One reference designs? whats that? Jun 28 22:50:27 smallfoot- hm Jun 28 22:50:35 they talked about it in the beginning of the keynote Jun 28 22:50:41 Firefox OS has really nice integration with Firefox browser for developers... but the OS still needs some work, I hope 3.0 will be great Jun 28 22:50:48 basically a low end device reference design Jun 28 22:50:49 what is "one" ? Jun 28 22:50:51 < $100 Jun 28 22:50:53 oh Jun 28 22:50:58 what kind of device? Jun 28 22:51:15 they named one instance of it, forgot the name. meant for EMEA Jun 28 22:51:34 actually that phone was for India i think Jun 28 22:51:56 http://arstechnica.com/gadgets/2014/06/google-reveals-android-one-phones-with-no-bloatware-automatic-updates/ Jun 28 22:52:34 4.5-inch screen, nice! its still bigger than iPhone 5S LOL Jun 28 22:53:03 yeah but what dpi and contrast ration ;) Jun 28 22:53:12 ya, 320x320 lol Jun 28 22:53:19 not even 720p maybe lol Jun 28 22:53:59 and will only run apps for Android Wear LOL Jun 28 22:54:23 O.o i missed that Jun 28 22:54:33 nah, I dont know, i just said something lol Jun 28 22:56:21 when I heard about 5.0 I got excited, I was like ART? fuck yeah! 64-bit? fuck yeah! Project Volta? fuck yeah!, then there was Material Design, and I was like nooooooooo!! please, apple come save me, can I have an iphone? Jun 28 22:56:47 hm Jun 28 22:57:08 i haven't used it yet, also probably will change a bit in the months to come Jun 28 22:57:19 it looked terrible Jun 28 22:57:45 i'm less worried about the look, and more about the animations, things seemed to move around too much. it was scary Jun 28 22:57:45 smallfoot-: eh? I found material design to be pretty nifty Jun 28 22:57:54 Anyway, there's a ton of stuff underneath Jun 28 22:58:19 nifty? you mean how they went from semantic pictograpic icons to useless diffuse geometric shapes that convey nothing? Jun 28 22:58:45 oh the stupid back / home / recents - yeah thats dumb, but they can still fix that :) Jun 28 22:58:59 who cares about the icons, people will learn their meaning in 10 seconds Jun 28 22:59:00 yeah, that Jun 28 22:59:05 something abou a 3 digit count of new/updated APIs? Jun 28 22:59:06 it's more important that they're visually distinct Jun 28 22:59:16 trying to have icons represent something is nearly always futile anyway Jun 28 22:59:27 one of those remants of 80s desktop design we need to ditch Jun 28 22:59:36 oh they were visually distinct AND semantic pictographic Jun 28 22:59:38 exhibit 1: the playstation gamepad Jun 28 22:59:44 on every game the buttons mean something different Jun 28 22:59:49 yet somehow ppl are able to figure it out Jun 28 22:59:55 smallfoot-: eh, which icons you mean? the ones at the bottom that at least on several top-end devices don't exist at all? :P Jun 28 23:00:09 p_1, yes those on the bottom Jun 28 23:00:26 you know what is harder? the fact that on samsungs the back key is in opposite place Jun 28 23:00:32 the icons are meaningless Jun 28 23:01:21 and the icons isnt the only thing thats retarded Jun 28 23:01:59 you know buttons? we used to have borders around them so they were visually distinct, so you knew they were buttons... with Material Design, not so anymore! Now they are just bold text, so you won't know what is bold text and what is buttons, you can only guess! Jun 28 23:02:15 hate Samsung phones Jun 28 23:02:20 yeah, samsung sucks Jun 28 23:02:25 smallfoot-, thats what animations are for! Jun 28 23:02:47 animations will kill the battery lol Jun 28 23:02:58 and just cause distractions Jun 28 23:02:58 the animations in the dialer were god awful Jun 28 23:03:18 animations can provide contextual clues Jun 28 23:03:22 there were a few places were they clicked the FAB button (is that what it was called) and its like ink exploded everywhere Jun 28 23:03:26 but with their attention to detail im assuming they'll just be overused Jun 28 23:03:43 g00s, FAB? Jun 28 23:03:59 smallfoot- that singular action thingy, like the round button in vibrant color Jun 28 23:04:04 floating Jun 28 23:04:21 yeah, that action that was supposed to represent the most common thing on that space or whatever Jun 28 23:04:33 thats some new button Jun 28 23:04:33 ? Jun 28 23:04:39 new design Jun 28 23:04:46 oh, I don't know what it is Jun 28 23:04:48 just floating actions Jun 28 23:04:59 but i'll call it the FAG button, the button that wants attention Jun 28 23:06:03 oh and we used to have this great multitasking with a task switcher with thumbnails right... but they killed that too, so now you have them stacked on top of each other, so you can only see one at a time, and don't know whats under in the stack Jun 28 23:06:29 cuz they decided having everything in a 3d stack is way cooler than having thumbnails that would actually be useful Jun 28 23:07:06 there were a few places were things looked too 3D; i get when they are trying to communicate affordance, but showing the stack like a bunch of cards beneath each other seemed a bit much Jun 28 23:07:26 yeah, 3d stacks are useless Jun 28 23:07:40 anyhow, minor things. still lots of time before its out Jun 28 23:07:51 if its easy for me as a dev, i mostly don't care ;) Jun 28 23:08:16 if it becomes a major pita supporting, thats when i get mad Jun 28 23:08:33 anyone off hand know how to set the column span for a view added to a grid layout via java Jun 28 23:08:36 actually lots of things from material are already in metro and i like metro Jun 28 23:09:20 even Metro uses grid cuz 3d stacks were stupid Jun 28 23:13:14 for example, in metro when you press a button there is no highlight - but a subtle animation. in Material its a ripple. in metro its a tilt. yey Jun 28 23:13:34 also, when you go from one screen to another in metro its common the selected element zooms into the new space Jun 28 23:13:52 and this also works going back, so when you press back, the space will collapse back into its listview item position Jun 28 23:14:04 so those transition animations came from metro too Jun 28 23:14:08 heh Jun 28 23:15:12 it could be that, both the Material designers, and the Metro designers, came to the same conclusion for what they wanted Jun 28 23:15:18 and the end result is almost the same Jun 28 23:15:41 of course, google wants similar looks across all their services so thats an additional goal Jun 28 23:15:53 doesn't seem like MS has a great 'design czar' Jun 28 23:16:09 if they even have one, making sure stuff is consistent across products Jun 28 23:16:55 Metro is also just inspired by Swiss/Bauhaus Jun 28 23:17:15 so if you are inspired by that stuff too, end result wont be too different XD Jun 28 23:17:35 g00s: Even recently, MS didn't have a big enough stick to just get people to follow the design guidelines :P Jun 28 23:18:32 MS is killing usability Jun 28 23:18:35 Ribbon toolbar, oh god lol Jun 28 23:18:42 p_l yeah; its fun to read about the differences in culture between these companies. with apple it was jobs / ives and that shaped things; MS … seemed like they had only one team with a vision but nothing spanning the whole company. google got very good in this area recently Jun 28 23:19:03 btw, funnily enough, loaded Android L theme into my kitkat n4... and it appears to act much, much faster :D Jun 28 23:19:19 how you do that? Jun 28 23:19:26 g00s: more like Apple was so pitifully tiny in the global view that they could badger the minuscule amount of devs into following guidelines Jun 28 23:19:42 p_l did you mean MS ? Jun 28 23:20:01 people who cared about design naturally used to gravitate to apple without coercion ;) Jun 28 23:20:03 g00s: no, Apple when they started transition to OSX Jun 28 23:20:27 g00s: the "natural" part of it I heard was more related to AppleScript ;) Jun 28 23:20:42 oh yeah … aren't they going to replace that crap too ? Jun 28 23:20:52 was it going to be replaced with Js ? Jun 28 23:21:16 g00s: AppleScript is also the general API to interact with, you don't have to use the language Jun 28 23:21:28 now Apple is all about their new programming language Swift Jun 28 23:21:58 yeah here we go https://developer.apple.com/library/prerelease/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/uid/TP40014508 Jun 28 23:22:12 new for 10.10 though Jun 28 23:22:26 g00s, oh.. but you heard about Swift? Jun 28 23:22:32 anyway, at least few places suggested that other than inertia and possibly few differences in font display (that wouldn't matter to serious DTP software), Apple kept many a DTP studio close with AppleScript automated workflows and the fact that if your printer didn't support PostScript it didn't work, so they tended to have necessary tools :P Jun 28 23:22:36 g00s, Swift is new in iOS to replace Objective-C Jun 28 23:22:50 I wonder if Google is gonna start pushing Go on Android? Jun 28 23:22:51 * Nilium sits down and waits to see how much misinformation is about to pass through the channel Jun 28 23:23:28 lol Jun 28 23:23:53 Swift doesn't have my favorite feature from obj-c : message passing :( Jun 28 23:24:10 smallfoot-, do they have a go->dalvik byte code or go->jvm bytecode compiler? Jun 28 23:24:12 Go on android will apparently be available for NDK some time soon Jun 28 23:24:16 LiENUS: nope Jun 28 23:24:36 eh if it'll be in the ndk then it wont really be pushed very hard Jun 28 23:24:38 Four a multichoice question, do you think it is enough to show right and wrong answer by making the buttons green and red and give no other explanation? Jun 28 23:24:54 rorgor never use color as the only channel of information Jun 28 23:24:55 Why not explicitly say "right" or "wrong"? Jun 28 23:25:03 Also, what about colorblind people? Jun 28 23:25:49 rorgor: depending on content, use pictograms or text. Colour is not enough Jun 28 23:26:22 Try to prefer text. Jun 28 23:26:26 rorgor: also, even some non-colorblind people will have modified colours at times (for example, red colour shift used on some AMOLED devices for low-power at night) Jun 28 23:26:30 yes, I see. Jun 28 23:26:39 A symbol won't always have obvious meaning. Jun 28 23:26:44 Nilium: might be problematic when the "wrong" answer is text Jun 28 23:26:57 but yes, symbols can be problematic, especially given different cultures Jun 28 23:29:10 for examples, in japan you'd use circle instead of check mark for "correct" Jun 28 23:31:01 a spear through a skull would probably be pretty decent for 'wrong' across cultures Jun 28 23:31:09 right through the eye socket Jun 28 23:31:21 LiENUS, go as a language that compiles to jvm would not be attractive... Jun 28 23:31:35 g00s: wanna bet someone would manage to misinterpret it? Jun 28 23:31:54 as a language, go isn't really that great Jun 28 23:31:58 g00s: are you sure? that could mean right where it should be. especially in a warrior tribe(which obv has android phones these days) Jun 28 23:32:06 Go is nice for small things. Jun 28 23:32:15 I honestly wouldn't want to do anything large in it. Jun 28 23:32:22 rorgor lol, like bullseye ? XD Jun 28 23:33:39 yes Jun 28 23:33:43 go, as an option for ndk, would be pretty nice Jun 28 23:34:09 performance of c in a slightly more modern package Jun 28 23:34:13 rorgor ok well. gotta think of some other symbol then … like a herpes virus Jun 28 23:34:45 would be probably not understood by most :D Jun 28 23:36:18 meh, build tools now allow strings for min and target sdk versions now... Jun 28 23:36:26 that's annoying Jun 28 23:37:02 i wonder if my users will get confused, if I use tabs for the content of my Drawerlayout, and both side panels change depending on which tab is selected for content Jun 28 23:42:54 How can I display a Button inside a textview? Jun 28 23:44:01 and how can I tell a button/view to occupy the rest of the screen downwards? Jun 28 23:51:14 a button is a textview :) Jun 28 23:51:57 time to walk the dog Jun 28 23:54:54 you don't put a button inside a text view... Jun 29 00:35:30 This line: EditText editText = (EditText) findViewById(R.id.edit_message); Jun 29 00:35:56 I know it's getting the view by ID from a text edit that has the name "edit_message" Jun 29 00:35:56 Allen300: R is resource Jun 29 00:36:10 R is an object created automagically by android Jun 29 00:36:15 which holds all your resources Jun 29 00:36:38 ahhh Jun 29 00:36:42 makes sense, thank you Jun 29 00:36:51 so there you will have all your resources Jun 29 00:37:01 also android built-in resources are on android.R Jun 29 00:37:29 so if you create a new EditText named foo, you can access it via R.id.foo Jun 29 01:44:50 https://news.ycombinator.com/item?id=7959660 Jun 29 01:44:58 maybe android M ! Jun 29 01:45:40 actually this seems like a change made to Play, but app opps needs to come back. or maybe i could use XPrivacy Jun 29 02:02:15 also pretty interesting http://www.businessweek.com/articles/2014-06-24/googles-sundar-pichai-king-of-android-master-of-mobile-profile Jun 29 02:03:54 g00s: AppOps would need to have been released in the first place ;) Jun 29 02:05:04 that said, today I was asked over by my mother because an app asked for a permission - after installation. So things might be moving towards optional permissions ;) Jun 29 02:05:11 (iirc it was a google app) Jun 29 02:06:03 p_l do you remember the permission ? Jun 29 02:06:39 no, but I think it involved a ContentProvider of sorts... Jun 29 02:07:15 at this point, it's IMO necessary to introduce such changes slowly Jun 29 02:08:10 "AppOps" was a devtool for testing application behaviour in face of refused permissions that was iirc started as part of multiple user accounts support - now with more profile support announced in L, we might get to see optional permissions Jun 29 02:08:15 but that's all speculation Jun 29 02:08:33 I just have a small xposed module that makes all permissions visible in play store ;P Jun 29 02:08:59 (that said, the old permission list *was* an information overload that >90% of users never read Jun 29 02:09:02 ) Jun 29 02:26:36 hey i am compiling my app what should i set the target and minimum sdk to Jun 29 02:27:20 min sdk 11 or 14+ Jun 29 02:27:51 bankai_au: is there a chart that says the sdk version to android version Jun 29 02:28:22 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Jun 29 02:29:47 bankai_au: which section Jun 29 02:30:08 there's a huge table half way down Jun 29 02:31:35 bankai_au: is there a difference in looks between api 11 and 19 Jun 29 02:32:16 if theres an app called, English Test, and I call mine "Crazy Tree English Test" would it be considered a conflict by google? Jun 29 02:33:08 Is the term "English Test" trademarked? Jun 29 02:33:21 Seems like a pretty generic term to me Jun 29 02:33:32 I dont know. Im not talking about general copyright. I mean Google terms Jun 29 02:33:54 do i need to sign apk before downloading on m own phone Jun 29 02:33:59 Is there a particular clause of the DDA that you're worried about? Jun 29 02:34:18 Nothing specific. Im just wondering Jun 29 02:34:28 read the DDA, see if there's anything that applies :) Jun 29 02:34:37 where can I find the DDA? Jun 29 02:34:58 well, you agreed to it when you created your developer account :) Jun 29 02:35:10 https://play.google.com/about/developer-distribution-agreement.html Jun 29 02:35:33 ok thanks I will look Jun 29 02:36:28 "Windows" is a trademark right.... so does that mean no compay can legally use the word Windows in their name or products? Jun 29 02:36:58 also, https://play.google.com/about/developer-content-policy.html Jun 29 02:37:56 all this copyright stuff makes me paranoid Jun 29 02:38:24 when i install my app that i compiled with app to market i get app not installed error Jun 29 02:42:10 do I need to searh the trademark database for every country? Or just the UK and US is enough Jun 29 02:43:12 because people in almost every country can buy android apps right..... Jun 29 02:44:26 and do I need to search for translations too? eg translate my app into russian, chinese, and every other language and search that too Jun 29 02:44:47 what is the standard thing developers do? Jun 29 02:46:31 hire translators if you care Jun 29 02:46:48 let people contribute if it's open source Jun 29 02:47:05 it isnt open source and I have no money for lawyers or translators Jun 29 02:47:10 or don't give a shit if your app is only for one region Jun 29 02:47:32 personally, I fall into the don't give a shit camp Jun 29 02:48:03 ok.... suppose in theory, someone tried to sue me. Would google ban my developer account? Jun 29 02:48:11 or only take down the app in question Jun 29 02:48:18 why would someone sue you Jun 29 02:48:33 for using a similar name to an app already existing Jun 29 02:48:35 and it's a takedown if you violate policy Jun 29 02:48:48 maybe I am being paranoid Jun 29 02:48:58 do it continually and you will be banned Jun 29 02:49:39 well I always obey all the rules as much as I can Jun 29 02:49:43 so what if the name is similar, if no trademarks are infringed, you're generally ok Jun 29 02:50:03 ok Jun 29 02:51:22 ill jazz up my names a bit just in case Jun 29 02:52:47 you really think you're gonna hit an infringing name? googling is enough to get a general idea if you will Jun 29 02:53:19 and dictionary words generally aren't protected Jun 29 02:53:31 windows and such being terrible exceptions Jun 29 02:54:13 "apple" :) Jun 29 02:54:19 I see. thanks Jun 29 02:54:30 hey guys i am trying to figure this out, I have two different buttons on the action bar, but when I click either or they are two different colors Jun 29 02:54:35 one has a lightish popup menu Jun 29 02:54:38 and the other is a dark one Jun 29 02:55:02 would it be because i have support for both " parent="@style/Theme.AppCompat.Light.DarkActionBar"> Jun 29 02:55:39 parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> Jun 29 02:55:48 JesusFreke, indeed Jun 29 02:57:18 * p_l just found Serial port classes in framework. Hidden, of course... Jun 29 02:58:40 p_l, @hide ftl Jun 29 02:59:38 Can my application address the entire DISK space Jun 29 02:59:41 private or not Jun 29 02:59:50 is it possible **** ENDING LOGGING AT Sun Jun 29 02:59:59 2014