**** BEGIN LOGGING AT Fri Jul 11 02:59:58 2014 Jul 11 03:00:04 Sorry lost connection Jul 11 03:00:36 Did you guys show an example of how to do it via intent Jul 11 03:00:42 like what paramaters I use Jul 11 03:01:23 Hello. I was wondering if anyone knew of some good beginner material. I love codecademy, but they don't have Java. Someday, I would like to develop for Android. Jul 11 03:02:13 ProjectBarks: Did you get the stackoverflow link? Jul 11 03:02:26 greymalkin: this one http://stackoverflow.com/questions/2660201/what-parameters-should-i-use-in-a-google-maps-url-to-go-to-a-lat-lon ? Jul 11 03:02:35 I am saying literly though when I do new Intent Jul 11 03:02:42 and all of that jazz Jul 11 03:02:58 What do I do so that url will give options to share and crap Jul 11 03:03:08 Google can show you how to create an intent to share a URL; it's not long, but it's also not off the top of my head. Jul 11 03:06:11 ProjectBarks see if this helps http://pastebin.com/z0Pj2J9W Jul 11 03:06:25 ProjectBarks along with the link greymalkin gave Jul 11 03:06:29 Yep Jul 11 03:06:39 That helped a huge amotun Jul 11 03:06:51 cool. i had to do this recently at work but didnt have the code in front of me Jul 11 03:07:19 Good to see it hasn't changed since I did it 3 years ago :) Jul 11 03:08:42 greymalkin, just make a fake handle that's always visible Jul 11 03:10:45 pfn: Too much to keep in sync, the little bit that would be visible would have to reflect the state of the fragment that the drawer is hiding. Jul 11 03:11:08 I'm headed into SlidingPaneLayout's source, so I'll end up getting what I want, just not the easy way :) Jul 11 03:14:40 hi Jul 11 03:15:07 I'm running Android Studio and I went to test my app so I hit the run button and the emulator came open and is running Jul 11 03:15:19 But.. I don't see any way to run my app on the emulator Jul 11 03:18:39 It's not like installed on the emulator phone Jul 11 03:39:41 anyone has example of android program to read/write google drive spreadsheet? Jul 11 03:39:49 anyone can point toa tutorial about creating an app for editing google spreadsheet? tried google but the best I can find is from here: http://stackoverflow.com/questions/6174962/using-android-to-submit-to-a-google-spreadsheet-form Jul 11 03:40:34 I make this as my MainActivity.java: http://pastebin.com/w83CdsuX Jul 11 03:40:47 I'm very new to android dev. what is expected in the designer view in order for the code in the above stackoverflow example to work? Jul 11 04:04:33 hm http://www.informit.com/store/app-accomplished-strategies-for-app-development-success-9780133563740 Jul 11 04:18:52 maybe for your birthday, if you're good Jul 11 04:19:12 heh, all the boos i want to read are too damn expensive Jul 11 04:19:15 *books Jul 11 04:19:47 capella what are you up to ? Jul 11 04:19:57 I don't have time for books anymore ... between coding, tech journals, newspaper, online mags .... *whew* Jul 11 04:20:39 Installed cm11 on my GS3 ... runs a lot faster now, but the battery is coincidentally dying .... is two years old for a battery? Jul 11 04:20:47 oh, i dont read news, tech journals, newspapers, or magazines Jul 11 04:20:56 that gives time to read books XD Jul 11 04:20:59 heh - ordering one from newegg Jul 11 04:21:22 capella what tech journals? like acm / ieee ? Jul 11 04:21:40 i let my membership expire on those too Jul 11 04:23:02 I find the books are outdated by the time they're written and I finish them ... I subscribe to SciAm, but for "tech journals" I refer to online like Ars, CW, Wired, Hacker, Streaming Media, etc Jul 11 04:23:18 ah k Jul 11 04:23:40 tech books yeah Jul 11 04:23:43 And for non-tech I subs to WSJ and Fortune for the business side Jul 11 04:24:23 Then for fun I lurk here :D Jul 11 04:24:45 i hope i provide some good entertainment XD Jul 11 04:24:58 sometimes, but it's mostly bitching Jul 11 04:25:01 its like stand up commedy Jul 11 04:26:33 you seem to read a lot of the stuff I do :) Jul 11 04:27:21 hm, i check HN / androidpolice but after that .... Jul 11 04:28:01 Ars? Jul 11 04:28:26 if it shows up on HN :) Jul 11 04:28:45 I like their articles, but the comments are getting a little nutty :D Jul 11 04:29:01 They had fun tearing apart Prenda law Jul 11 04:29:45 a long time ago, HN comments had scores Jul 11 04:30:10 i found it easier to read back then. not any more. Jul 11 04:31:10 HN has some good tech stuff ... reverse engineering, scoping boards, diss-assembling stuff ... nice detail work ... I have to set aside time to not be interrupted Jul 11 04:31:35 When people drag out oscilliscopes my ears perk up :D Jul 11 04:32:14 yeah , not too interested in the startup talk Jul 11 04:33:31 yah, I bookmark and scan past ExtremeTech, APC Tech, BGR Mobile, TechCrunch, etc ... just to keep up Jul 11 04:35:07 . o O ( some co. just raised $1m in seed funding from investors for an app that sends "yo" to people ... say what??? ) Jul 11 04:35:26 my attention span is terrible for reading online. i can read a book OK, but can never get to the end of a long article in the new yorker or something Jul 11 04:35:43 and those just accumulate in my FF tabs Jul 11 04:35:52 and now they are bringing the whole browser down :( Jul 11 04:36:05 Ah, that's why I love Firefox Mobile ... it has reader mode, strips all ads, graphics, clutter off and lets you see the main text Jul 11 04:36:16 Just read the article Jul 11 04:36:16 aww that sounds nice Jul 11 04:36:33 capella yeah, buts its the fact that i'm online, and a distraction is just a new tab away Jul 11 04:36:46 but i have add or something Jul 11 04:37:15 well, I highlight/select stuff, then auto-google or wiki things and wind up reading all sorts of background stuff Jul 11 04:37:28 yeah that fucks me up Jul 11 04:37:38 25 tabs open before I manage to back track to the main train of thought / article :) Jul 11 04:37:49 start on climate ethics, wind up on wikipedia article about batman Jul 11 04:38:04 I got lost in wiki one day for four hours studying two-photon interactions Jul 11 04:38:19 thanks to an Ars article and my wanting to refresh my college physics Jul 11 04:38:59 capella do you remember a plugin for FF, maybe it was Chrome, but it saved a graph (nodes, edges) of all the pages you visited ? Jul 11 04:39:24 damn i lost it, was such a cool idea. lots of time i wind up some place , and how i got there is just as important as where i am Jul 11 04:40:26 Oh, heh ... no ... like a breadcrumb trail? Jul 11 04:40:33 its like that , yeah Jul 11 04:41:05 capella refeshing college physics eh ? Jul 11 04:42:12 this guy is the bomb ! http://profmattstrassler.com/ Jul 11 04:42:25 yeah, its funny when you study something in school -don't see the relevance - and then move on; then years later become interested in that again and realize how important it is Jul 11 04:42:42 hours and hours I spend on there Jul 11 04:42:56 Does anyone know if html 5 has a built in function that identifies wireless devices? I am wondering if I still need to use this: http://sourceforge.net/projects/wurfl/?source=dlp Jul 11 04:43:49 quick question: data sent via google analytics is encrypted, no? Jul 11 04:44:51 barbs i would assume so Jul 11 04:45:25 to anyone that previewed L, does it have the MAC address randomization feature that iOS has ? Jul 11 04:47:21 I haven't seen that mentioned anywhere ... I think it'd been heavily mentioned Jul 11 04:47:49 Wasn't there an app for Android to do this? Jul 11 04:48:33 capella http://www.tomsguide.com/us/ios-8-mac-address-randomization,news-18937.html Jul 11 04:49:21 * capella likes Toms ... reads Jul 11 04:51:23 Not sure this is the one I saw before, but https://play.google.com/store/apps/details?id=com.wireless.macchanger&hl=en Jul 11 04:51:52 I'd be nice if they built it in ... surprised cm doesnt already Jul 11 04:52:24 capella from google, heh Jul 11 04:52:33 oh cm Jul 11 04:52:58 yeah i'm starting to wonder , now that cm is doing their own phone, whether thats the best android experience Jul 11 04:57:56 new battery winging it's way through the usps :) Jul 11 04:58:35 man, battery tech is the most important innovation that needs an update Jul 11 04:58:41 average recharge lifecycle is 500-800 apparantly ... thats just about right considering when I bought mine Jul 11 04:59:14 so for devices where it's hardware embedded you toss the phone I suppose Jul 11 05:00:00 my lumia 521 has a replaceable battery :D man for $69 its been great. i'd replace it Jul 11 05:00:20 capella oh yeah i like gizmag.com Jul 11 05:01:31 Ah, that's a little too theoretical for me still ... I like developed tech Jul 11 05:02:12 I mean, bleeding edge is fun Jul 11 05:02:38 capella its a mix of developed / future Jul 11 05:04:13 I'll see that page, and raise you http://www.streamingmedia.com/ Jul 11 05:09:15 dang, they filled the job I applied for @ mozilla :( Jul 11 05:10:01 Android, Java, London ... >sads< Jul 11 05:13:58 Hi all Jul 11 05:14:15 I have two issues Jul 11 05:14:28 thats all? you're lucky :) Jul 11 05:14:42 its for now g00s :) Jul 11 05:15:03 first: My compass program shows the compass image but is not rotating:( Jul 11 05:15:34 niru you know compass is pretty hard on android right ? Jul 11 05:15:51 but your view, thats another story Jul 11 05:16:41 g00s: I am using an emulator Jul 11 05:16:54 g00s: I tried turning the monitor Jul 11 05:16:59 no change in the direction Jul 11 05:18:13 g00s: and my camera apps shows error http://pastebin.com/yK7DfZyg Jul 11 05:18:45 i don't work with the camera or compass, too much hassle Jul 11 05:21:40 turning the monitor will orient a compass app running in an emu??? Jul 11 05:22:32 * capella lives a sheltered real-device life :) Jul 11 05:23:43 capella: no it cant you are right Jul 11 05:23:53 capella: so how can i test it Jul 11 05:24:05 as I am able to see the image. How can I change the orientation? Jul 11 05:25:03 well, I thought that was wrong, but then was like "hey? maybe he knows something I don't" XD Jul 11 05:25:24 fancy new tech I hadnt read about yet ;) Jul 11 05:25:42 rotatable monitor with a gyro or something Jul 11 05:26:21 niru: https://code.google.com/p/openintents/wiki/SensorSimulator Jul 11 05:26:50 that's the thing ! Jul 11 05:34:32 g00s: now my camera is working :) Jul 11 05:34:52 g00s: though no real image its the chess boxes Jul 11 05:48:20 damn, kindle price same as softcover Jul 11 05:49:17 i wonder if anyone has done a good comparison between ios / android / kindle ebook quality (figures images, navigation, etc) Jul 11 05:56:05 ebook same $ as irl? go for real every time... physical books can't be snatched back Jul 11 05:56:34 yeah but they cost $ to store and own Jul 11 05:58:25 Is it possible to build Android without dalvik but still use libstagefright and hw accelerated rendering? Jul 11 05:59:09 anyone used RetroFit before? Just trying it out now - is there a way you can specify in the service interface a request body to be used for all those requests (i.e. not just as an @Body parameter)? Jul 11 05:59:12 i have Jul 11 05:59:21 jesus you're quick! Jul 11 05:59:54 and no, bodies are per request. why do you want a single one for all endpoint methods? Jul 11 06:00:35 I was basically looking at the paypal API, it looks like you send the same thing in the request body each time to get an OAuth token: https://developer.paypal.com/webapps/developer/docs/integration/direct/make-your-first-call/ Jul 11 06:00:47 see step 2, you set grant_type to client_credentials Jul 11 06:01:26 to do this with Retrofit, do I need to create an object with a grant_type field, and pass in a new instance anytime I call the auth method? Jul 11 06:02:36 yes Jul 11 06:02:55 Retrofit is responsible for mapping the API to a Java interface, not defining application-level constraints like you describe Jul 11 06:03:55 got it, thanks Jul 11 06:20:07 capella http://qz.com/229570/here-are-most-valuable-skills-in-americas-tech-job-market/ Jul 11 06:20:16 kinda strange analysis Jul 11 06:21:02 i used to use Load Runner, that thing was an expensive pita Jul 11 06:24:03 " Though tech skills take up some of this list too, others, especially finance and banking skills, make a strong showing"... Jul 11 06:24:28 so why aren't they calling me? Jul 11 06:24:36 :) Jul 11 06:39:01 g00s: fixed my blockkng problem - some idiot put the heavy loading method call OUTSIDE the Observable.create call -_-# Jul 11 06:42:10 anyone online to help with aosp configging? Jul 11 06:42:44 i'm attempting device-specific builds of l-preview for the oneplus one Jul 11 06:43:36 topic ... Jul 11 06:48:50 kevcube: try #android-root maybe? Jul 11 06:51:13 kevcube: whats the question? Jul 11 06:54:19 the question is: what will i need to kang from the cyan repos in order to have a functioning build environment for something that aosp doesn't support Jul 11 06:56:13 what's that something? Jul 11 06:56:29 the something is the oneplus one Jul 11 06:57:25 so basically you want to build CM for the oneplus one? Jul 11 06:57:34 no i'd like to build aosp for it Jul 11 06:57:38 Ah, ok Jul 11 06:57:43 i'd like to compile the l-preview for it Jul 11 06:57:43 Gotcha now Jul 11 06:57:52 does CM support it though? Jul 11 06:58:03 i don't have a device to test it on, so i'm hoping to publish it to forums and get an invite via that recognition Jul 11 06:58:07 yes it does Jul 11 06:58:44 but cm doesn't have an l-preview branch. I'm sure on release day they will clone, but before then I'd like to see it running aosp Jul 11 06:58:44 Then use the device configs and move them over to AOSP Jul 11 06:59:15 is https://github.com/CyanogenMod/android_device_oneplus_bacon the only repo that i would need to interpret in order to build? Jul 11 06:59:38 also -- do you have the device? I need a copy of the binaries. Jul 11 07:00:58 I dont have the device unfortunately and I dont know much about the OnePlus One hardware wise Jul 11 07:01:20 but yeah, that repo is a good start Jul 11 07:01:58 You might need some additional qcom stuff too, but trial and error will get you a long way I suppose ;) Jul 11 07:02:27 and obviously, the "CM-way" of doing device config makefiles is slightly different than AOSP from what I recall Jul 11 07:03:46 alright well l-preview is syncing now and trial and error is what i've got planned for the night Jul 11 07:04:39 I would recommend getting acquainted with Android porting in general before proceeding, but you probably know that already Jul 11 07:05:12 But good luck to you :) Jul 11 07:14:58 Morning Jul 11 07:15:26 anyone uses lambda expression on android? Jul 11 07:17:20 I have a requirment Jul 11 07:17:47 niru: a requirement? for what exactly.. Jul 11 07:18:00 I want to have fragments. First fragment will show list of some items Jul 11 07:18:29 and clicking on item should show its necessary details in the side frame Jul 11 07:19:03 and those details can be in a tabular form Jul 11 07:19:15 Sure Jul 11 07:19:20 So I have take a blank activity of master/details style Jul 11 07:19:46 Is that ok to go ahead Jul 11 07:19:47 ? Jul 11 07:20:45 niru: yep, thats a good starting point Jul 11 07:20:48 Should the items list be in a listview kind of thing or just textviews are enough in a linearlayout? Jul 11 07:21:05 niru: a listView Jul 11 07:21:13 Zyg0te: ah thanks :) Jul 11 07:21:17 the master/detail template should have that set up already Jul 11 07:21:31 and obviously, you can make a custom layout for your listview rows if you want Jul 11 07:21:46 custom layout? Jul 11 07:21:54 I do recommend reading through the template code and understanding how things fit together before proceeding though Jul 11 07:22:06 Zyg0te: how? Jul 11 07:22:09 niru: yeah, if you want the list rows to have a certain look Jul 11 07:22:13 niru: ? Jul 11 07:22:48 Zyg0te: Ah you mean an image with textview or simply textview etc? Jul 11 07:23:12 Zyg0te: I did one with image and textview beside it Jul 11 07:23:19 without a custom layout for your rows, you wont be able to customize text size, font, color, background colors, layout, etc Jul 11 07:23:37 ok, you know how to do that then, good Jul 11 07:24:03 Zyg0te: yes had a try 2 days back:) Jul 11 07:52:46 Hi Jul 11 07:53:32 What is the despair on this delightful morn? Jul 11 07:58:15 What's delightful about it? D: Jul 11 07:58:58 Nothing Jul 11 07:59:39 But since I've gotten into MMORPGs the dialogue he an affect on me xd Jul 11 08:05:43 Clearly NPCs have never had to go to work. Jul 11 08:06:42 Haha Jul 11 08:07:25 There is a king who constantly says he is busy even though he just stands there and noses Jul 11 08:07:35 Does nothing I meant Jul 11 08:07:46 Hand slip Jul 11 08:28:16 hi, I have GenericActivity, which displays different fragments(A, B…) one by one. What is the best way to tell the activity to display A fragment or B one? Jul 11 08:29:01 i went into build configrations on eclipse and now it has generated BuildConfig.java for every project I have and it says debug=true in there, how do I change this? Jul 11 08:46:20 I have a doubt Jul 11 08:46:48 while creating a project with list and detail activity(fragments) Why 4 class files are getting generated Jul 11 08:47:04 what is the use of remaining three except one MainActivity class Jul 11 08:47:16 also the layout folder has 4 xml layout files Jul 11 08:47:32 how to compile/build android source code on windows? Jul 11 08:48:20 nutrino: and how that will help? Jul 11 08:49:19 just wana know abt how build it... Jul 11 08:51:35 niru: why shouldn't four classes be generated? You have a main activity, the list fragment, the detail fragment and an activity when displaying the detail fragment on a phone Jul 11 08:55:13 Estel: ah ok.. so you mean for handset its not possible to show in the same page. So one activity and one fragment per page and that makes 4 classes Jul 11 08:55:57 nutrino: I think this can help https://source.android.com/source/downloading.html Jul 11 08:56:13 also https://source.android.com/ Jul 11 08:56:21 niru: yeah, something like that Jul 11 08:56:32 Estel: ok... Jul 11 08:57:04 Even if there weren't a handset it would still be good practice to decompose into three classes (two fragments and the activity) Jul 11 09:01:00 Estel: ok... Jul 11 09:01:35 Estel: and why are the layouts file 4 in number Jul 11 09:01:54 It should be one layout for list activity and the other for detail activity Jul 11 09:02:04 No, because each of the fragments has one too? Jul 11 09:02:26 Estel: ah yes yes... Jul 11 09:12:23 <[twisti]> at the unlikely chance that anyone here has used the Dagger CDI: any ideas on how to make sure it uses the compile time injection, and never falls back on runtime stuff ? i cross compile for desktop and android, and dont want to have to test android all the time, where runtime injection will mess up Jul 11 09:44:02 [twisti] I think you may be after JakeWharton he *might* know... Jul 11 09:44:19 ;-) Jul 11 09:44:38 <[twisti]> why ? Jul 11 09:45:49 Well he did write it... Jul 11 09:46:00 minor detail... Jul 11 09:46:17 <[twisti]> ah, then i shall idle here until he wakes up to you helpfully triggering him ;) Jul 11 09:47:40 You don't wake him, you summon! Jul 11 09:47:48 :-P Jul 11 09:49:09 <[twisti]> darn, im out of kids to sacrifice Jul 11 09:49:23 You'll wait a while for a west-coast person Jul 11 09:50:22 It's like 3am isnt it? Jul 11 09:52:02 Estel: could you please look at http://pastebin.com/UAdGEcHY Jul 11 09:53:25 i'm looking for help with f2fs Jul 11 09:53:29 niru: That probably isn't all. Jul 11 09:55:59 niru: include the rest of the error Jul 11 09:56:06 flan3002: yes doing... Jul 11 09:57:05 http://pastebin.com/txPaZeru Jul 11 09:59:00 Well, niru, check your XML ids. :) Jul 11 10:06:27 hi all Jul 11 10:06:44 I'm trying to start a normal service from a Geofence (using a pending intent) Jul 11 10:06:57 the service gets created Jul 11 10:07:02 but onBind is not called Jul 11 10:09:57 even on destroy is not called Jul 11 10:29:35 patrick91: have you bind the service? :_ Jul 11 10:30:11 danijoo: how do I do this? the service is started from a pending intent Jul 11 10:34:05 didnt work much with services but afaik onBind is only called if you actually bind something to it Jul 11 10:34:48 and not automatically when its created Jul 11 10:36:21 mmh, thanks I'll check this Jul 11 10:37:35 hi, it is regarding otto bus. I am getting this error http://pastie.org/9377553 but don’t know why Jul 11 10:39:41 flan3002: Estel now I am really confussed with fragments :( Jul 11 10:40:04 It seems as if I am understanding but again I am loosing it Jul 11 10:40:23 can I get a simple complete example on fragment Jul 11 10:40:45 Have you read the android docs on it? Jul 11 10:40:56 or else if you say I will paste one by one my program in pastebin Jul 11 10:41:05 Estel: yes..:( Jul 11 10:41:31 niru: Look at the API examples. Jul 11 10:41:39 I am trying to build a test Android project using Eclipse but getting this error: The import com.android.example.spinner.SpinnerActivity cannot be resolved Jul 11 10:41:48 How to fix that problem? Jul 11 10:42:00 Why do did you change your nickname... Jul 11 10:42:21 Help me, please. My boss said to me if I don't get in Android over this week I'd be fired. Jul 11 10:42:31 AccessGranted: did u clean and build the project again Jul 11 10:42:39 I've tried that. Jul 11 10:42:40 You must setup Eclipse to include that file. How you get that file is up to you. Jul 11 10:42:46 AccessGranted: you pasted a project in with an import that doesn't apply, probably? Jul 11 10:43:00 AccessGranted: may be the R.java is not generated as required Jul 11 10:43:39 niru: Probably not, as he doesn't talk about resources at all. Jul 11 10:44:10 flan3002: hmm... Jul 11 10:46:08 As its a testproject i guess its just not correctly setup in eclipse Jul 11 10:46:18 AccessGranted: does the path really exists com.android.example.spinner.SpinnerActivity Jul 11 10:46:28 or is it an own project? Jul 11 10:54:27 niru: Of course it exists. It is a sample project Jul 11 11:03:10 AccessGranted: where did you get the sample from and how did you add it to eclipse? Jul 11 11:25:13 Estel: can you look on my programs http://pastebin.com/cAPaC3Mj Jul 11 11:25:20 that will be great help Jul 11 11:25:28 flan3002: http://pastebin.com/cAPaC3Mj Jul 11 11:34:08 i like the idea of a message queue pattern for events i need to farm out, is there something like a fanout message queue already built in, or a library/pattern that is commonly used ? Jul 11 11:34:11 google terms are failing me Jul 11 11:34:48 does the android / google maps sdk allow you to draw a driving route between two points ? Jul 11 12:02:06 hello, is it enough to set APP_ABI=armeabi-v7a-hard to build for hard float? Jul 11 12:02:35 I'm reading the NDK r9d changes but I'm confused by the paragraph that mentions TARGET_CFLAGS and TARGET_LDFLAGS Jul 11 12:28:23 Is it okay to use dialog as a popup window to display a bunch of information? possibly with a scrollview. Jul 11 12:29:37 guardian, armeabi-v7a is implicitly hardfloat Jul 11 12:29:59 you should define whether you want to use NEON for floats or not Jul 11 12:30:08 in fact the changes log is poorly written Jul 11 12:30:18 this sentence in particular Jul 11 12:30:21 "When executing the ndk-build script, add the following options for armeabi-v7a target" Jul 11 12:30:36 the "add the following options" lets the user believe she has to do something Jul 11 12:30:47 *shrug* Jul 11 12:31:02 while in fact, it means changing APP_API to armeabi-v7a-hard will have the following effect on TARGET_CFLAGS and TARGET_LDFLAGS Jul 11 12:31:25 do we understand the same? (I doubled check what ndk-build implementation does) Jul 11 12:32:23 skulltower: did the user ask for the information ? Jul 11 12:32:47 skulltower: can it be presented in a way that doesnt require scrolling ? Jul 11 12:33:11 wmealing, yes it's supposed to appear when the user clicks a lists item, and no, sometimes i might not fit on the screen Jul 11 12:33:36 list's* it* Jul 11 12:35:31 sleep as android at least used to popup changelogs on first run after update and it had a listview, it never bothered me Jul 11 12:36:12 skulltower: tough call to make.. if it was me i'd try to reduce the amount of information so it wasn't required to scroll Jul 11 12:36:14 thats just me though Jul 11 12:36:58 android even scrolls the popup view automatically when making a non-custom dialog with a long content text Jul 11 12:37:54 wmealing, i can't reduce it tho :/ perhaps i should use something other than a dialog? Jul 11 12:38:18 I just want the background to dim and be unselectable until the popup is dismissed Jul 11 12:38:38 do you think it 'works' for your situation Jul 11 12:38:39 is it a fully custom looking thing? or just a long piece of text? Jul 11 12:38:53 Zharf, just text Jul 11 12:39:00 then dialog is fine, imo Jul 11 12:39:20 It'll be scrolling by itself? Jul 11 12:39:27 yes Jul 11 12:39:47 And if i wanted to cram a listview in it would that be horrible? Jul 11 12:40:23 you would have to customize the dialog Jul 11 12:41:07 although you can set the content to the dialog in an array and it'll make a (selectable (not sure if this is disableable)) list out of them Jul 11 12:41:47 http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList Jul 11 12:42:01 Zharf, cool, thanks for the link Jul 11 12:42:31 apparently you can even give it an adapter of your own Jul 11 12:42:35 so that's the way to go Jul 11 12:44:16 Zharf, I hope I can make the list's items long-clickable-only, thanks again, ima go try it out Jul 11 12:52:30 Does anyone know how i can get my android app to work with android L when i try to load android L it not loading in eclipse why is that? Jul 11 12:52:51 Where can I find good Android apps to look at source code for how things should be done? Jul 11 12:53:13 You can look on StackOverFlow, and various tutorial websites, and people show you how to do stuff, but usually they have no idea Jul 11 12:53:15 and their code is shit Jul 11 12:53:25 In what dir of the android project should I place notes text files/README? Jul 11 12:53:45 jesperj: Top level. But it really doesn't matter. Jul 11 12:54:04 Thank you Jul 11 12:54:14 I suppose you could also cread a /docs/ directory Jul 11 12:54:19 create* Jul 11 12:54:25 Of course you could. :) Jul 11 12:54:49 So noone know wht going on with android L and eclipse? Jul 11 12:55:12 perlsyntax: It seems Google putting more focus on Android Studio than Eclipse. Jul 11 12:55:48 i see maybe i go to that then. Jul 11 12:55:49 thanks Jul 11 12:56:28 Yeah, but Android Studio is updated weekly, so it sometimes breaks things and builds Jul 11 12:56:45 but its more exciting and fun Jul 11 12:57:54 cool but do i need java 7 for android L? Jul 11 12:59:10 I don't know, but I use Java 7 with Android Studio and 4.4 KitKat Jul 11 12:59:24 Java 6 is outdated and insecure Jul 11 13:00:38 Java 7 is outdated as well... Jul 11 13:01:30 i see.I use java 6 but i not sure how to install java 7 with android studio on the mac. Jul 11 13:02:21 flan3002: Java 7 is still maintained. Jul 11 13:16:12 So i am still having an issue with ORMLite. When I try to use a second dao to insert into a table I get a SecurityException thrown by android's E/DatabaseUtils Jul 11 13:16:20 but, it has no problem creating the table Jul 11 13:19:44 Now I've seen the security exception before when I was handling my own database and I was trying to insert in 1 thread while reading from another Jul 11 13:20:03 I am not doing that currently though Jul 11 13:28:08 http://pastebin.com/nEAVvTCn The 2 classes I am using ORMLite to store (The UserAnswer one is what is causing issues). Then the ORMLiteOpenHelper extension, then the function that calls create on the userAnswerDao Jul 11 13:29:03 is it drawable-hdpi-land or drawable-land-hdpi, or either? Jul 11 13:30:02 land-hdpi iirc Jul 11 13:35:25 if I add a breakpoint at the sqlHelper.getUserAnswerDao().create(userAnswer); line, the security exception fires before that line Jul 11 13:37:38 File mediaStorageDir = new File(Environment.getExternalStorageDirectory().getPath() + "/camtest1/"); mediaStorageDir.mkdirs(); mkdirs cannot resolve symbol mkdirs any ideas people? Jul 11 13:37:54 nvm Jul 11 13:38:31 If all I need is a WebView, is it better call this.setContentView(mWebView) instead of calling this.setContentView(r.layout.webview) ? Jul 11 13:40:10 i do the former Jul 11 13:41:22 smallfoot-: Yes, it is more efficient and therefore better in most cases. Jul 11 13:41:26 I did the latter, then I saw someone did the former Jul 11 13:41:31 flan3002: I see, thanks Jul 11 13:44:28 no reason to ever do the latter Jul 11 13:44:38 Hmm, that's strage, if I comment out the stuff that actually saves the data out, I still get the exception Jul 11 13:49:54 why haven't you shown the exception yet... Jul 11 13:50:20 right now I am thinking out load Jul 11 13:51:27 setTitle() is only for apps before ActionBar? It does anything on apps with ActionBar? Jul 11 13:51:45 Can i use getItemId() of a list to return my specific id's? Or it will mess something up? I'm using it atm on my lists onChildClick(..., long id) Jul 11 13:52:21 jonc, your thinking out loud is random gibberish to the rest of us Jul 11 13:53:44 good, because that means you understand it about as well as I do Jul 11 13:54:46 at this point I think the project isn't cleaning properly, because commenting out all of the database stuff the exception is still thrown. So either it is a coincidence that anytime I press this button I get an exception (but not thrown by my app, thrown at system level or whatever) Jul 11 13:54:58 or the build isn't cleaning properly Jul 11 13:55:45 http://pastebin.com/zpqjnxKZ Jul 11 13:55:49 that is the exception Jul 11 13:56:45 looks like it has nothing to do with database Jul 11 13:57:05 I've seen it occur before when I was using a single connection across multiple threads Jul 11 13:58:44 Restarting android studio right now to see if that fixes it, because right now I'm not hitting any new code that I've added Jul 11 13:59:43 why would restarting AS effect code running on ur device/emulator Jul 11 13:59:57 not cleaning and rebuilding properly Jul 11 14:00:12 restart computer Jul 11 14:00:17 maybe some got locked Jul 11 14:00:29 ctrl+alt+del! :D Jul 11 14:00:44 <[twisti]> best leave the apartment and walk around the block too Jul 11 14:01:13 [twisti]: i was thinking calling electricity company seeing if they could cycle his electricity, cant be to sure. Jul 11 14:01:28 there have been quite a few times where I've had to clean using the command line because AS wasn't doing it properly Jul 11 14:01:52 eclipse, all the time Jul 11 14:01:58 ive never had that issue with AS/Intellij Jul 11 14:02:10 had to invalidate cache b4, after upgrading. but thats about it. Jul 11 14:03:06 yeah, something weird is happening Jul 11 14:03:51 I have breakpoints on lines 12 and 15, and neither one gets hit: http://pastebin.com/EsPUckez Jul 11 14:04:57 12 and 14* Jul 11 14:05:17 time to restart Jul 11 14:05:20 jonc, the exception is incomplete and unrelated to your code Jul 11 14:05:21 <[twisti]> are you sure the method executes at all ? Jul 11 14:05:32 [twisti], yes Jul 11 14:05:35 hello, I am trying to figgure out how I can construct a fragment and pass an object by reference to it. primative data types can be added to a bundle and passed in, objects can be serialized and added to a bundle, then passed in. but how can I pass by reference? Jul 11 14:05:42 at least what you say you're doing Jul 11 14:06:07 carczar, all objects are references Jul 11 14:06:12 jonc: Jul 11 14:06:17 step through it then Jul 11 14:06:21 see whats happening Jul 11 14:06:55 pfn, but once you serialize it, it is no longer a reference, it is a representation of its state at the time of serializing. correct? Jul 11 14:09:03 that's what serialization does Jul 11 14:09:08 it copies Jul 11 14:10:40 pfn: he means he wants to be able to have a reference to the original object Jul 11 14:11:16 carczar: what is the original object u want to maintain a reference to Jul 11 14:11:38 if u want a reference chances are ur going about something the wrong way Jul 11 14:11:54 Perhaps I can put it a different way: I have a ListFragment which will use an ArrayAdapter to display the contents of the array. But semantically it does not make sense to store the array in the fragment, so I would like to pass a reference so that when the array is updated, I can update the List view to reflect the changes. If I serialize it, I can no longer use my original array in the ListView adapter. (* the array is acctuall Jul 11 14:15:41 jonc, your exception is still too short, and unrelated to the code you're doing there Jul 11 14:15:52 carczar: put the array in yoiur activity with a public getter Jul 11 14:15:54 jonc, stepping through is unrelated because it appears to be occurring on a different thread Jul 11 14:16:00 (the list has some activities that the user performs. In one fragment I would like to list them all, in another I would like to do some analytics/visualization on them, etc. so storing the list the fragment containing the list view does not make senss, as I also need to access it in the data analytics fragment :) ) Jul 11 14:16:06 and do getActivity().getMyArray() from the fragments Jul 11 14:16:25 danijoo: ok, That could work. :) Jul 11 14:16:37 thats the usual way of doing it :) Jul 11 14:17:16 you usually dont have to bother about serialization as long as you dont have to persist it between activities Jul 11 14:17:44 danijoo: Good to know.I'll keep that in mind Jul 11 14:17:45 thanks. Jul 11 14:17:53 yw Jul 11 14:21:06 pfn_, I get that, I have seen it before though when dealing with using 1 connection to a database and trying to select and insert on the same table in 2 different threads Jul 11 14:21:43 but, yes you are right it is unrelated, the data is going into the DB just fine. I saw that and was like "fuck, not again" because it took quite awhile to determine the threading was the issue before Jul 11 14:23:56 ya, race conditions can be a bitch Jul 11 14:24:18 I knew better, I just wasn't locking and unlocking properly Jul 11 14:24:36 the reason I didn't use something like ORMLite for that is because I need to insert and pull out a decent amount of data Jul 11 14:24:46 http://pastebin.com/nkDrq9Qz im using the following code to get the uuid in format 00000000-2305-c399-ffff-ffffa2c1cd84 im wondering why on all the phones i have tested i am getting 0's (zeros) for the firtst section? Jul 11 14:24:48 7500-8k rows inserted per minute Jul 11 14:25:08 and something like upto 50k rows selected and potentially deleted per minute Jul 11 14:26:23 jonc, you likely saw a different exception before, because this exception is still unrelated... unless you're doing something with content providers Jul 11 14:28:12 jaspertheghost, I don't know if this is it or not because of the precedence of casting, but could ((long) tmDevice.hashCode() << 32) be casting the result of tmDevice.hashCode() << 32 to a long, which would be 0? Jul 11 14:28:26 trying ( ((long)tmDevice.hashCode()) << 32) Jul 11 14:28:30 try* Jul 11 14:29:43 can someone point me in the directon of a better peice of code for getting full uuid like i did? Jul 11 14:30:33 UUID.randomUUID(); Jul 11 14:30:50 what jug6 said Jul 11 14:32:20 when reading the webkit url history, is it correct to say that I can get a readout of the number of times an url has been visited, and the first / last time it was visited, but I can't get the timestamp for each visit? Jul 11 14:32:25 or am i doing it wrong? :) Jul 11 14:32:37 and i just pass uuid.fromStromg("something") uuid.randomUUID(); ..? Jul 11 14:33:25 jaspertheghost: what do u need it for Jul 11 14:33:34 i always just used the string representation Jul 11 14:33:43 UUID.randomUUID().toString() Jul 11 14:35:36 jaspertheghost, I was wrong, they are equivalent Jul 11 14:37:28 i have to pass some kind of long value to uuid to initilize it Jul 11 14:38:07 I have a vertical linear layout with a bunch of buttons inside it. The layout width is wrap_content. How can I get every button to be the same width as the widest button? Jul 11 14:38:35 d0de: width = match_parent Jul 11 14:38:38 if I use match_parent, the width of the linearlayout expands to fill the entire screen, which I don't want Jul 11 14:38:42 or relative layout Jul 11 14:39:10 easiest way would be a relative layout Jul 11 14:40:02 d0de: and i meant match_parent on the buttons, not the linear layout Jul 11 14:40:42 jug6-away, no, so did I - if I set wrap_content on the parent and match_parent on the buttons, the buttons fill the layout but the layout itself fills the screen Jul 11 14:41:00 jug6-away, can you give me a quick idea of what settings I'd use with relativeLayout? Jul 11 14:41:01 lol u have other layout problems then Jul 11 14:41:11 d0de: align to Jul 11 14:41:25 d0de: make it's parent wrap content too Jul 11 14:41:34 ^^ Jul 11 14:42:32 ahhh, yes, that was the problem! the parent of the linear layout was on match_parent, not wrap_content Jul 11 14:42:41 jug6-away, shmooz, thanks! Jul 11 14:42:47 :) Jul 11 14:43:24 Hey, after rotation one of my fragments turns white sometimes, but draws correctly once given an excuse to do so (such as I tap a invisible button or slide down the navigation drawer over the view). Any idea why? Jul 11 14:44:19 can Preferences store multiline text in putString() ? Jul 11 14:44:34 a string is a string is a string :) Jul 11 14:44:48 :p Jul 11 14:45:16 is there any limit to data size of string to save in Preferences? Jul 11 14:45:47 im sure there is Jul 11 14:45:48 but its huge Jul 11 14:45:55 but its stored into an xml file Jul 11 14:45:57 when creating a new UUID it wants to long values Jul 11 14:46:01 so if its huge, performance goes down Jul 11 14:46:04 where is a good place to get these long vals from? Jul 11 14:46:10 jaspertheghost: UUID.randomUUID() Jul 11 14:46:59 smallfoot-: as the name suggests, it should be used for preferences(ie small things). if u need to store anything of substantial size best go another route imo Jul 11 14:47:01 randomUUID() not function exists for that Jul 11 14:47:08 i've imported import java.util.UUID; Jul 11 14:47:34 jaspertheghost: it's a static method. Jul 11 14:47:49 killin me smalls Jul 11 14:47:50 http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html#randomUUID() Jul 11 14:47:54 i can call randomUUID on a already created UUID object Jul 11 14:48:11 jaspertheghost: its a static method Jul 11 14:48:15 u can call it where ver Jul 11 14:48:18 when ever Jul 11 14:48:20 how ever Jul 11 14:48:25 if that were the case it would let me... Jul 11 14:48:25 but u shouldnt Jul 11 14:48:35 dude Jul 11 14:48:44 String uuid = UUID.randomUUID().toString(); Jul 11 14:48:45 done Jul 11 14:49:03 cannot reoslve method -> randomUUID Jul 11 14:49:13 Did you do it with exactly that line? Jul 11 14:49:18 yes Jul 11 14:49:21 exactly that line Jul 11 14:49:50 jug4 if I need to store a document of unknown size, perhaps 1-100 kb, what is the prefered way to save that? Jul 11 14:49:50 killin me smalls Jul 11 14:49:53 UUID xUUID = new UUID(100l,100l); xUUID.randomUUID().toString(); that works .... what you typed does not... Jul 11 14:50:05 String uuid = java.util.UUID.randomUUID().toString(); Jul 11 14:50:30 that worked Jul 11 14:50:48 So do you have an object called UUID, or did you import something wrong? Jul 11 14:51:15 i dont .. Jul 11 14:51:36 jaspertheghost: means ur imports are wrong, importing the wrong UUID class Jul 11 14:51:45 import java.util.UUID; Jul 11 14:51:57 prolly need .* Jul 11 14:52:10 ? Jul 11 14:52:14 no Jul 11 14:52:16 well if u have that, then the two statements i posted are equivalent Jul 11 14:52:25 not that i ever manually manage imports -_- Jul 11 14:52:27 what year is it! Jul 11 14:52:35 im using android studio... Jul 11 14:52:41 it does all this for me too Jul 11 14:53:02 ur doing something wrong then lol Jul 11 14:53:23 there has abeen a few times where i have have to fully type out the library like we did here Jul 11 14:53:31 for no apparent reason Jul 11 14:53:33 jaspertheghost: which example are you using ? Jul 11 14:53:38 jug6-away: if I need to store a document of unknown size, perhaps 1-100 kb, what is the prefered way to save that? Jul 11 14:53:56 smallfoot-: write it to the filesystem Jul 11 14:54:05 yup, just write to file. Jul 11 14:54:06 Estel: I see, as I thought. Thanks! Jul 11 14:54:26 In a thread! :) Jul 11 14:54:29 i see the prob your right i did have anther vartiable named UUID Jul 11 14:54:40 lol Jul 11 14:55:15 smallfoot-: 100kB isnt bad, shared prefs could probably work fine for that. but i would test performance to be sure Jul 11 14:55:39 another bug bites the dust! Jul 11 14:55:48 jaspertheghost: fyi, its good practice to have variable names in camel-case Jul 11 14:55:50 "bug" Jul 11 14:55:57 i normally do Jul 11 14:56:11 blame it on the pesky bug Jul 11 14:56:31 shmooz: u mean feature Jul 11 14:56:33 ;) Jul 11 14:57:39 yo, shmooz my man Jul 11 14:57:42 wassup Jul 11 14:58:34 hey Looney! Jul 11 14:58:56 howdy Jul 11 14:59:13 people, I am looking for a template Jul 11 14:59:26 well, its a template of itemised estimate Jul 11 14:59:35 how much minute should the detail be Jul 11 15:00:07 i have no idea what ur talking about Jul 11 15:00:11 Looney: what are you working on ? Jul 11 15:00:27 an android app Jul 11 15:00:45 both backend and front-end Jul 11 15:01:04 what's the easiest way to add a colored border to one edge of a button? Jul 11 15:01:08 you should get a price for saying "an android app" in #android-dev Jul 11 15:02:13 Looney: I'd make it p2p with roaming master servers or something ;) Jul 11 15:03:59 you mean the estimate Jul 11 15:04:15 github.com/jug6ernaut/divide Jul 11 15:05:25 How can I create a drop shadow around a popupwindow? Jul 11 15:05:42 custom popupwindow Jul 11 15:05:45 transparent Jul 11 15:05:50 add shadow Jul 11 15:05:52 then window Jul 11 15:06:19 d0de: do you put these questions in google search ? Jul 11 15:06:43 well, its my first time giving itemised estimate Jul 11 15:06:51 looking for some template Jul 11 15:07:00 to get idea of the details Jul 11 15:13:03 d0de: google drawable, layer-list, shape, gradient, stroke Jul 11 15:15:13 ironhalik, jug6-away, thanks. shmooz, I ask mainly to see if there is easy way to do something. It's hard for a beginner to tell if answers found on google are a good way or a bad way to solve a problem Jul 11 15:16:37 d0de: generally, there usually are like 518 ways of doing something Jul 11 15:17:33 try the one you can understand Jul 11 15:17:43 then try figuring out a better way of doing it Jul 11 15:18:09 read up on the docs, stupid solutions are often pointed out there Jul 11 15:19:08 and by 518 he means infinity Jul 11 15:20:05 ironhalik, thanks. I guess I assumed there might be an easy way because the submenu on my actionbar has a nice drop shadow by default, I'm and just trying to emulate that. That doesn't seem to be right Jul 11 15:23:46 d0de: I think styles, custom layouts, XMLs are the wasy way of doing it :> Jul 11 15:26:16 d0de: you can have a drop shadow around a popupwindow Jul 11 15:26:19 want to know how? Jul 11 15:26:44 Napalm, yes please Jul 11 15:29:09 d0de: new PopupWindow(context, null, android.R.attr.popupMenuStyle); Jul 11 15:29:41 ugh Jul 11 15:29:44 I keep getting Failure [INSTALL_FAILED_OLDER_SDK] Jul 11 15:30:09 get rid of maxSdkVersion from your manifest Jul 11 15:30:09 ngc0202`: change compileSDKVersion from 'L' to 19 Jul 11 15:30:30 or 20 Jul 11 15:30:40 Where is that? Jul 11 15:30:45 build.gradle Jul 11 15:31:11 it says android-L Jul 11 15:31:12 you might want to check your AndroidManifest.xml file also Jul 11 15:31:18 thats wrong Jul 11 15:31:19 should I make it android-19? Jul 11 15:31:25 android-L only on andorid L devices Jul 11 15:31:30 no just put a 19 there Jul 11 15:31:36 without quotation marks Jul 11 15:31:44 danijoo: you can still compile against L Jul 11 15:31:44 maxSdkVersion 19 Jul 11 15:31:47 okay Jul 11 15:32:01 Napalm: yes but you cant run it on any not-L device then Jul 11 15:32:04 Napalm, oh I had no idea. I'm using a custom class that extends PopupWindow Jul 11 15:32:05 it will Jul 11 15:32:16 no Jul 11 15:32:21 d0de: do just extend your constructor Jul 11 15:32:25 its whats in your manifest that counts Jul 11 15:33:21 Napalm: since gradle there is nothing in the manifest Jul 11 15:33:36 because gradle will put it there when compiling Jul 11 15:33:50 Napalm, I don't quite follow you about the relationship between the custom popupwindow class and the manifest. Could explain it to me as if I am very stupid? Jul 11 15:34:06 danijoo: only if you dont specify in the manifest Jul 11 15:34:22 ooh, you were talking to someone else Jul 11 15:34:34 I think build.gradle will override manifest Jul 11 15:34:40 not sure though Jul 11 15:34:58 I put it in the manifest originally and Android Studio told me it didnt matter it'd be overridden anyway Jul 11 15:35:03 anyways if he replaces android-L with a numerical build version it will work Jul 11 15:35:07 yes Jul 11 15:35:13 it will override ngc0202` i think so. Jul 11 15:36:23 danijoo: wait your talking about the defaultConfig {} section? Jul 11 15:36:53 Napalm: Im saying it doesnt matter what you put in your manifest when compiling with gradle Jul 11 15:37:01 because it will be replaced with what you put in gradle Jul 11 15:37:16 yes, i agree.. i'm talking about the original issue Jul 11 15:37:31 compileSdkVersion field can be L but defaultConfig can be targetSdkVersion 20 or 19 Jul 11 15:37:59 dunno. I would just recommend to not put L anywhere if you dont want to test sth on L Jul 11 15:38:17 no errors and easy to understand for ppl that arent too much into that :) Jul 11 15:38:18 agreed Jul 11 15:38:19 Where is the SDK Manager exe stored? Jul 11 15:38:27 in the sdk directory Jul 11 15:38:28 lol Jul 11 15:38:41 ngc0202`: its not an exe though. its a binary :) Jul 11 15:38:50 called andorid-sdk/tools/android Jul 11 15:39:10 oh Jul 11 15:39:18 well I get access denied when I try to install something with it Jul 11 15:39:25 I was gonna give it admin privs Jul 11 15:39:27 run it with admin rights Jul 11 15:39:35 but if it's not an exe.. Jul 11 15:39:35 if u are on windows Jul 11 15:39:39 yes] Jul 11 15:39:45 its a binary Jul 11 15:39:55 you can run it from cmd Jul 11 15:40:20 ngc0202`: are you on windows? Jul 11 15:40:33 i guess so Jul 11 15:40:34 ohh it's android.bat? Jul 11 15:40:37 yes I am Jul 11 15:40:40 because hes looking for exe files :) Jul 11 15:40:54 I got it :) Jul 11 15:40:58 go into your sdk directory you will see SDK Mananger.exe Jul 11 15:41:09 SDK Manager.exe even Jul 11 15:41:35 I found the bat file and ran that administratively Jul 11 15:41:35 is there a doc that shows the android filesystem layout? user_data, boot info location etc? Jul 11 15:41:47 I don't have a SDK Manager.exe Jul 11 15:42:02 perhaps its an old sdk directory? Jul 11 15:42:34 pEYEd: I imagine it isn't guarunteed between devices Jul 11 15:43:20 Instead of L should I use 4.4W? Jul 11 15:43:23 What's the W for? Jul 11 15:43:25 Wear Jul 11 15:43:30 OHH Jul 11 15:43:37 stupid shift key Jul 11 15:43:43 so then I don't want that Jul 11 15:44:37 pEYEd: if you really want to know.. you should ask on the one of the mailing lists http://source.android.com/source/community/index.html Jul 11 15:45:02 It would probably work fine, but definitely easiest to stick with 19 for now Jul 11 15:49:54 Estel I am pretty sure all connect to the bootloader in a similar fashion. I deleted some stuff and trying to figure out what I deleted. Jul 11 15:50:09 Napalm thank you! Jul 11 15:55:28 pEYEd: your welcome Jul 11 15:57:06 pEYEd: bootloaders vary a lot Jul 11 15:57:09 My popupwindow width is set to wrap_content, but I also want to set the equivalent of a max width for the entire popup. How can I do that? I tried adding a margin to the parent layout but it has no effect Jul 11 15:57:57 d0de: you'll need a custom parent layout.. i have one you can use someplace.. one moment Jul 11 15:58:29 Napalm, ty Jul 11 16:02:40 d0de: one moment, just got to modify it slightly Jul 11 16:04:32 anyone play with this yet? https://aws.amazon.com/cognito/ Jul 11 16:07:32 seems like k/v Jul 11 16:14:05 Hello, I am new to Java. I am making a plugin for Corona SDK. I can make blank plugin, but now I need to import an SDK from a partner. It comes in form of Android Library Project Jul 11 16:14:12 I have troubles with that. Jul 11 16:14:36 I am using command line building with ant using a script provided by Corona Jul 11 16:15:51 ant Jul 11 16:15:52 script Jul 11 16:15:54 :x Jul 11 16:16:00 and we just kill ant now? Jul 11 16:16:09 so UUID.randomUUID creates a random UUID everytime the application is run ... i need one that is persitant Jul 11 16:16:27 so persist it Jul 11 16:17:07 #boom Jul 11 16:17:22 how can I prevent stuff getting pushed off the screen in my layout? I've tried a bunch of different layouts but just now I'm using a tableLayout. When stuff in column 1 is too big, column 2 gets pushed off the screen. I'd like for the buttons in column 1 to just wrap so column 2 fits on the screen Jul 11 16:17:51 jug6 any advice for a UUID that is device speicfic and can be reregeratedto be the same thing Jul 11 16:18:03 thats what i was doing before with the code i had except it has that 0000 probloem Jul 11 16:18:49 do any of these permissions have implied features? do I need to add a uses-feature required=false for any of them? http://pastebin.com/4N1kBDCy Jul 11 16:19:04 im having an issue where an RCA tablet on 4.2.2 can't install my app from Play Jul 11 16:20:03 jaspertheghost sounds like you want a one way hash :| Jul 11 16:20:29 any way to filter using logcat when there's a space in the TAG? Jul 11 16:22:04 UUID deviceUuid = new UUID(androidId.hashCode(), ((long) tmDevice.hashCode() << 32) | tmSerial.hashCode()); this works but i think tmDevice.hashCode() << 32 is mkaing it generate 000000's for teh first section Jul 11 16:26:19 Hi. I have a app with a nav. drawer. When the back button is pressed the app goes to the background. My problem is that when the app is restored, the last shown fragment is not shown. The app is blank. Only the app name is shown at the actionbar. Jul 11 16:27:21 can I somehow tell ant that this lib doesn't need to be built? Jul 11 16:36:56 soooo can anyone confirm? Wear doesn't have system BroadcastReceiver intent support? Jul 11 16:37:20 and we have to write a layer in the mobile app to communicate with the internet for the wear app? Jul 11 16:38:07 i havent looked at the wear sdk, but if wear apps have access to the internet....smh Jul 11 16:38:22 Afzal: what? yes it has BroadcastReceiver support Jul 11 16:38:50 jaspertheghost: Jul 11 16:38:52 Afzal: what are you trying to do exactly? Jul 11 16:38:54 dont make your own UUID Jul 11 16:39:15 Napalm, but it doesn't pass intents like PHONE_STATE a broadcast receiver even though the watch gets notified of the phone state Jul 11 16:39:17 i dont follow Jul 11 16:39:27 Or am I completely wrong about this? Jul 11 16:39:54 jaspertheghost: first what do u need the UUID for Jul 11 16:40:09 Afzal: since the Watch is not a phone it wont have PHONE_STATE Jul 11 16:40:26 im rewriting an android app the company used ... the whole thing gets data form the servers based of a unique UUID that doesnt change per device Jul 11 16:40:44 Afzal: if you want your wear watch app to know about the phone state then it should ask your phone for the state and it can respond with it Jul 11 16:40:53 Afzal: but thats kinda useless Jul 11 16:41:16 this is the solution i need, i dont need another solution i need the UUID .. illkeep my current code with00's as is if need be it seems unique Jul 11 16:41:18 Afzal: your Android app side should do all the heavy lifting.. the watch shouldn't need to do much Jul 11 16:41:21 jaspertheghost: there is no 100% way to have device specific ID that will always match up to a device Jul 11 16:42:01 99% will work as the solution i am using currently seems to work Jul 11 16:42:14 the other android app had a solution that did the same but mines a bit shorter Jul 11 16:42:25 well just know that it can and will cause data issues if u assume it to be a UUID Jul 11 16:42:28 bc its not Jul 11 16:43:14 jaspertheghost: you need more data to make that enough to fit a UUID Jul 11 16:43:41 hense: androidId.hashCode(), ((long) tmDevice.hashCode() << 32) | tmSerial.hashCode() Jul 11 16:43:54 thats not unique enough Jul 11 16:44:02 Napalm, hmm I see. Makes sense I guess. I'll just send a message to the watch app when the phone state changes on the phone. :) Jul 11 16:44:03 its unique enough for my purposes Jul 11 16:44:14 jaspertheghost: then dont call it a uuid Jul 11 16:44:24 all that does is cause confusion Jul 11 16:44:37 i call the UUID function... its a damn UUID Jul 11 16:44:40 class* Jul 11 16:44:45 Afzal: why would you want to do that? keep waking up the watch to process a message all the damn time and suck its battery dry? Jul 11 16:45:02 Afzal: have the watch app ask for it, when it loads and displays Jul 11 16:45:05 jaspertheghost: and ur using the class wrong Jul 11 16:45:19 just bc ur using the UUID class doesnt make its result a UUID Jul 11 16:45:22 Napalm, ummm the watch wakes up when there's a call anyway Jul 11 16:45:32 so your not suppose to pass 2 unique long values to UUID to generate a UUID even though the doc says too Jul 11 16:45:35 http://en.wikipedia.org/wiki/Universally_unique_identifier Jul 11 16:45:48 And the message will only be sent when there's a call because PHONE_STATE broadcast works on the phone Jul 11 16:46:20 jaspertheghost: if the data u sent to it was valid sure Jul 11 16:46:34 it is Jul 11 16:46:37 no its not Jul 11 16:46:50 Napalm, it's a service that runs when the phone/watch is ringing and stops when it's not ringing so there's very minimal effect on the battery Jul 11 16:46:51 see how ur type casting? Jul 11 16:46:57 do u know why ur type casting? Jul 11 16:47:00 yes it returns a valid long value Jul 11 16:47:01 Afzal: id' just verify it doesnt change for Mobile Data switch over and so on, i forget Jul 11 16:47:06 i verfified this Jul 11 16:47:06 jaspertheghost: Jul 11 16:47:10 0 is a valid long value Jul 11 16:47:18 6451946730144399360 Jul 11 16:47:21 thats what it returns Jul 11 16:47:27 sigh Jul 11 16:47:30 sigh Jul 11 16:47:53 Log.v("x5",String.valueOf((long) tmDevice.hashCode() << 32)); -> 6451946730144399360 Jul 11 16:48:05 please read what i am typing instead of assuming Jul 11 16:48:25 huh Jul 11 16:48:26 UUID deviceUuid = new UUID(androidId.hashCode(), ((long) tmDevice.hashCode() << 32) | tmSerial.hashCode()); Jul 11 16:48:31 that is what you posted before Jul 11 16:48:34 so we assumed that Jul 11 16:48:47 yes that part returns -> -679444144 Jul 11 16:48:53 omg Jul 11 16:48:59 forget it Jul 11 16:49:30 you're gonna get a ton of collisions Jul 11 16:49:41 hi all Jul 11 16:49:45 because string.hashCode isn't designed to be unique Jul 11 16:50:02 I'm trying to change the dimension of a custom DialogFrament Jul 11 16:50:11 nothing seems to work Jul 11 16:51:26 Napalm, it doesn't, just checked :) Jul 11 16:51:32 patrick91: what are you trying to acheive? Jul 11 16:52:24 Napalm: I would like to change the dialog's height to be 90% of the screen Jul 11 16:53:02 patrick91: im about to post some code that should help you out Jul 11 16:53:35 thanks Jul 11 16:57:54 if you want a unique id per-device, just generate a new UUID on first-run Jul 11 16:57:56 and you're done... Jul 11 16:58:06 if the user uninstalls, then save it somewhere on sdcard Jul 11 16:58:13 if the user wipes the device, it should be considered a new device Jul 11 16:58:27 else make user accounts Jul 11 17:14:27 i keep getting this error: http://pastebin.com/yuweFLcn Jul 11 17:14:34 please help Jul 11 17:15:48 hm Jul 11 17:16:00 Cannot resolve symbol: android:Theme.Material Jul 11 17:16:12 I haven't changed that and it hasn't given me a problem ever before Jul 11 17:16:38 ngc0202`, need android-L Jul 11 17:16:51 uh Jul 11 17:17:13 and if I don't use that? Jul 11 17:17:34 no such method error please help http://pastebin.com/yuweFLcn Jul 11 17:17:59 ngc0202`, then you can't use it... Jul 11 17:18:08 that's the whole point of android-L Jul 11 17:18:11 to introduce material Jul 11 17:18:20 seems pretty obvious Jul 11 17:18:46 Should I just delete that bit then? Jul 11 17:18:58 yes Jul 11 17:19:09 The whole file? Jul 11 17:33:51 i keep getting this error: http://pastebin.com/yuweFLcn Jul 11 17:34:42 afroraydude: not enough information. Jul 11 17:34:55 what else do you need Jul 11 17:35:03 everything Jul 11 17:35:13 like code? Jul 11 17:35:50 is this when you build you apk? Jul 11 17:35:54 code/tutorial your using Jul 11 17:36:07 daijoo yes Jul 11 17:36:17 illegal state when building? Jul 11 17:36:30 afroraydude: are you using gradle? looks like it's related to that Jul 11 17:36:37 yes Jul 11 17:36:45 afroraydude: pastebin your build.gradle Jul 11 17:36:45 android studio Jul 11 17:36:58 wait fixed it Jul 11 17:37:16 I don't know what WebView.setSelected() and WebView.requestFocus() does :( Jul 11 17:37:18 Anyone can clarify? Jul 11 17:37:36 WebView Jul 11 17:37:37 -_- Jul 11 17:37:42 requestFocus should be selfe-explanory.. Jul 11 17:37:54 afroraydude: my guess was a case-sensitivity thing. what was it? Jul 11 17:38:05 cann it to set focus on the view Jul 11 17:38:22 call* Jul 11 17:39:44 i really do not know, i just did setup again, different project and changed the minimum sdk from L to KitKat beacuse it was at L the last time (trying to follow the android tutorials) and it went away. Jul 11 17:40:03 nope it is back again Jul 11 17:40:25 build.gradle right? Jul 11 17:40:59 si Jul 11 17:42:01 ok Jul 11 17:42:26 http://github.com/afroraydude/myfirstapp/gradle.build Jul 11 17:42:56 http://github.com/afroraydude/myfirstapp/build.gradle Jul 11 17:43:18 afroraydude: how did you get that build.gradle? Jul 11 17:43:31 went to the project folder Jul 11 17:43:41 hey gradle file looks just like mine, you stole it from me? i have copyright!! Jul 11 17:44:01 oh nvm. i saw the project gradle and assumed its the modules gradle file Jul 11 17:44:02 :D Jul 11 17:44:34 https://github.com/afroraydude/MyFirstApp/blob/master/app/build.gradle then Jul 11 17:45:02 Hi, sorry if this is the wrong place, but can anyone recommend a resource for someone who is interested in programming a very basic text-based game just to learn how to make very basic apps? My friend and I want to design a very simple game to play amongst ourselves on our devices. I have very little programming experience, I just kinda know the flow and syntax, not anything technical. Jul 11 17:45:27 mannatrar: do you know java? Jul 11 17:46:03 b4 u can write a game u need to have more then very little programmign experience Jul 11 17:46:20 there are a lot of aspects to game dev Jul 11 17:46:28 mannatrar, with a webview, you can code your game in HTML and JavaScript if you know how to do that :p Jul 11 17:46:32 "a very basic text-based game" Jul 11 17:46:43 you can do that with ... yeah what smallfoot- said Jul 11 17:46:46 it'd be rather trivial Jul 11 17:46:53 smallfoot-: shhh thats blasphemic! Jul 11 17:46:56 :p Jul 11 17:47:16 i build hybrid web apps for a living Jul 11 17:47:20 cordova represent Jul 11 17:47:32 so https://github.com/afroraydude/MyFirstApp/blob/master/app/build.gradle is my build.gradle Jul 11 17:47:36 although i wouldn't be saying that out loud a year ago Jul 11 17:47:40 its come a looooong way Jul 11 17:47:48 smallfoot-: dont give him bad ideas -_- Jul 11 17:48:12 i just packaged my own webkit version into my app, and am about to build some cool shit with polymer Jul 11 17:48:30 so how do i fix it Jul 11 17:48:52 cant see an error afroraydude Jul 11 17:48:54 drej: im curious, how big did that make your apk? Jul 11 17:49:05 but your ide should show you something more then these two lines.. Jul 11 17:49:08 Napalm added an extra 35 megs Jul 11 17:49:08 some kind of "hint" Jul 11 17:49:15 fuck me Jul 11 17:49:19 lol Jul 11 17:49:25 danijoo: No, my experience is mainly in C++. I took an "Intro to Programming" course when I was a teenager (10+ years ago), and it used C++. If I look at code, sometimes I can get the gist of it. But no, I do not know Java. Jul 11 17:49:27 Napalm which isnt ideal, but cordova just implemented crosswalk into nightly, and they plan on shaving another 18 megs off that Jul 11 17:49:35 it was ~50 megs a couple weeks ago Jul 11 17:49:49 :| Jul 11 17:49:50 drej: Google need to have the WebView engine hosted inside Google Play Services Jul 11 17:49:52 drej: still to much if its up to me Jul 11 17:49:53 i build a very specialized app though, its not for the public, and the license to use it starts at $10k/year Jul 11 17:49:54 I must say I much prefer android’s interface system and builder vs ios’s Jul 11 17:50:00 http://pastebin.com/SLpJd1wE Jul 11 17:50:05 so the app size is not that important Jul 11 17:50:07 details Jul 11 17:50:11 if it was a public app, i wouldnt do it Jul 11 17:50:50 mannatrar: for android you should at least have java skills. and for games programming in general you need to know about threading, assets managment, (opengl).. Jul 11 17:50:51 if anyone's curious about it: https://crosswalk-project.org Jul 11 17:50:56 thats really a lot Jul 11 17:51:46 i still dont know how to fix it Jul 11 17:52:03 danijoo: What do I need minimum for a text-based game? Java skills? Jul 11 17:52:16 hey guys Jul 11 17:52:25 mannatrar: if you want to run it on android, yes Jul 11 17:52:38 is getView called with a null convertView on type change? Jul 11 17:52:42 if we assign more than one type Jul 11 17:52:49 depends. Jul 11 17:53:01 danijoo: So theoretically I can start from there? Just learn java for text based and if I wanna get more complicated I learn about threading, assets management, opengl, etc? Jul 11 17:53:02 this is the full error http://pastebin.com/SLpJd1wE Jul 11 17:53:03 does it? Jul 11 17:53:11 depends on what? Jul 11 17:53:12 please help Jul 11 17:53:14 jvrodrigues, the only guarantee you really have you'll not get a wrong view in convertVIew Jul 11 17:53:36 but for everything else there's no guarantees and you should not take anything for granted Jul 11 17:53:37 jvrodrigues: the adapter should take care what view you get. so if its not null, you can be sure its the correct type Jul 11 17:53:43 but you can never be sure its not null Jul 11 17:53:55 the question isn't if it's not null Jul 11 17:54:01 is if it is null if the type changes Jul 11 17:54:08 lets assume i have two types Jul 11 17:54:16 position 1 type 1 position 2 type 2 Jul 11 17:54:18 jvrodrigues, you're asking the wrong question Jul 11 17:54:22 jvrodrigues, you SHOULD NOT CARE Jul 11 17:54:28 if you do, you're doing it wrong. Jul 11 17:54:34 jvrodrigues: it will try to recycle type 1 and type 2 independently Jul 11 17:54:38 caps text -_- Jul 11 17:54:44 NoSuchMethodError: Failed to set up Android modules in project 'MyFirstApp': com.android.builder.model.Dependencies.getJavaLibraries()Ljava/util/Collection; Jul 11 17:54:51 jug6-away, well, I can't use a hammer :P Jul 11 17:54:53 i'm just looking at some code Jul 11 17:55:02 and they just straight out assume convertview is null ontype change Jul 11 17:55:02 afroraydude, that looks like something is wrong with your Gradle file Jul 11 17:55:17 what gradle file though Jul 11 17:55:30 Thanks for your time. I'll go take a look at some Java tutorials and intros and whatnot. Jul 11 17:55:36 jvrodrigues, yes, it's gonna be either null or you'll get a view of your type... if there is none to recycle then you'll get null always Jul 11 17:55:37 jvrodrigues: it will give you either null or the correct type. You cant assume anything else Jul 11 17:55:53 ah yes, that was my question Jul 11 17:56:00 if it is null on type change :) Jul 11 17:56:05 also how do i show where gradle home is in Android Studio/IDEA Jul 11 17:56:17 or if it would pass the view from the old type Jul 11 17:56:19 the type change still does not matter Jul 11 17:56:43 jvrodrigues, no, that's never going to happen, you'll never get a convertView of the other type Jul 11 17:56:51 ya, that's good information Jul 11 17:56:54 saves me a few lines of code Jul 11 17:56:58 thank you! Jul 11 17:57:14 and i think i should actually care about that, no? Jul 11 17:57:22 it would make the whole type thing pointless if it wouldnt act like it does now Jul 11 17:57:27 is it gradle.build that is broken or what Jul 11 17:57:42 danijoo, now that i think about it you're right Jul 11 17:57:48 :) Jul 11 17:57:51 meh, already the end of the week day Jul 11 17:58:18 because i am confused Jul 11 17:58:47 sorry, I don't use Gradle so can't help you there :/ Jul 11 18:00:04 jvrodrigues: "meh"? Jul 11 18:00:06 why meh? Jul 11 18:00:23 because i'm tired, long week, can't really enjoy what i do onfridays Jul 11 18:00:31 worst day of the week for me, at wor Jul 11 18:00:33 work* Jul 11 18:00:55 ah Jul 11 18:01:10 anyone use eclipse juno mobile ? after updating sdk it won't automatically update adt plugin for eclipse and even when I hard code the install location it says dependency conflict and stops installing Jul 11 18:03:27 so how do i fix my rhing Jul 11 18:03:32 *thing Jul 11 18:04:04 no1 should willingly be using eclipse these days imo Jul 11 18:04:17 step away from eclipse Jul 11 18:04:21 do not make direct eye contact Jul 11 18:04:26 do not download, and do not run Jul 11 18:04:50 step away? Jul 11 18:04:55 pssh Jul 11 18:04:59 i burn it and strut away Jul 11 18:05:41 I liked it, it worked fine Jul 11 18:05:47 till now Jul 11 18:05:56 I have a service which does subscribing to message server, and each time it gets update it just passes it Jul 11 18:06:10 the problem is that sometimes the service stop receiving updates Jul 11 18:06:32 it happens somewhere 5-10 minutes after I turn off the screen, sometime little bit more Jul 11 18:06:58 any ideas why it happens, or maybe I haven't implemented the service right Jul 11 18:07:11 your CPU gets turned off Jul 11 18:07:27 and Android stops running to conserve battery Jul 11 18:07:46 something is wrong with Android support Jul 11 18:08:05 afroraydude: why? Jul 11 18:08:07 there is android support? Jul 11 18:08:40 it keeps erroring during setup Jul 11 18:09:16 I think there is something wrong with your setup Jul 11 18:09:31 Mavrik, so how do I keep alive the service Jul 11 18:09:39 pinging somehow the system so it won't shutdown Jul 11 18:09:42 what do you mean Jul 11 18:09:51 wakelock Jul 11 18:09:55 tho Jul 11 18:09:56 anyone use android studio Jul 11 18:09:58 that is a bad idea Jul 11 18:10:02 what Jul 11 18:10:08 unless 100% necessary Jul 11 18:10:11 L8, note, before you continue, you're probably doing something very wrong if you need polling like that Jul 11 18:10:20 hmm Jul 11 18:10:24 jug6-awayL what? Jul 11 18:10:26 L8, and the way to keep processor (or radios if you need that) running is by using WakeLocks Jul 11 18:10:34 well take for example Telegram or Whatsapp Jul 11 18:10:35 afroraydude: wasnt directed at you, was for L8 Jul 11 18:10:38 L8, note that keeping ARM core online WILL kill users battery in matter of hours. Jul 11 18:10:41 oh Jul 11 18:10:48 L8: I think what you are looking for is push notification Jul 11 18:10:54 with broadcast receivers. Jul 11 18:11:00 danijoo what would be wrong with my setup Jul 11 18:11:03 I'm generating the notification from the service Jul 11 18:11:08 L8: they have long running http connections, which dont necessarily need the cpu awake to work. Jul 11 18:11:22 afroraydude: dont know Jul 11 18:11:34 L8: what are u doing Jul 11 18:11:43 simple p2p chat Jul 11 18:11:45 I just chose blank activity and sdk KitKat Jul 11 18:11:58 using pubnub as the messaging service Jul 11 18:12:28 L8, all those apps use push service to skip the requirement of keeping a wakelock on. Jul 11 18:12:50 L8, that or they're polling their servers on long interval (which burns battery too tho) Jul 11 18:13:28 hmm Jul 11 18:13:32 danijoo Jul 11 18:13:33 Mavrik: all require polling Jul 11 18:13:38 even push Jul 11 18:13:46 L8: look into xmpp Jul 11 18:13:55 i forget what facebook uses Jul 11 18:14:00 L8 it could also be that, based on the carrier, they ended your TCP connection Jul 11 18:14:02 if u look at there service it will say it in the name Jul 11 18:14:16 if i recall, carriers end idle tcp connections at different times Jul 11 18:14:25 g00s: yeah Jul 11 18:14:40 u have have to have a specific heart beat to keep them alive Jul 11 18:14:51 but, i thought if the device was asleep, incoming data on 3g would wake it up. you would need to immediately get a wakelock though. Jul 11 18:15:03 i'd really like to read an in-depth paper about how GCM works Jul 11 18:15:09 g00s: correct. Jul 11 18:15:13 Exception in Android Support, http://pastebin.com/P3XzGNZj Jul 11 18:15:30 jug6-away, push uses TCP idle connection Jul 11 18:15:33 it doesn't do polling. Jul 11 18:16:00 Mavrik: it uses polling to keep the connection alive Jul 11 18:16:09 look at my last post please help Jul 11 18:16:10 else the server would not know if/when clients disconnect Jul 11 18:16:13 that's... a different matter from what we're discussing. Jul 11 18:16:18 afroraydude: still this seems to be a problem with your project setup (gradle). Jul 11 18:16:20 no its not Jul 11 18:16:26 I saw in some example that I need to use AlarmManager Jul 11 18:16:32 g00s, basically GCM keeps a TCP connection to Google servers open with long timeout Jul 11 18:16:37 well i dont know why Jul 11 18:16:37 but I'm not sure it is a good thing Jul 11 18:16:44 neither do I Jul 11 18:16:56 do you use android studio Jul 11 18:17:02 g00s, this makes sure that telco routers are tracking the connection even though the underlying radio and EDGE/3G/LTE session goes dormant and radio turns off Jul 11 18:17:17 nope Jul 11 18:17:25 oh Jul 11 18:17:31 that is what i am using Jul 11 18:17:40 of course, if you have a crappy provider they'll drop your TCP connection often and your phone will have to reconnect alot... but most operators have reconfigured their routers to allow long timeout TCPs Jul 11 18:17:54 but im using intellij (what basically is android studio with extras) Jul 11 18:17:57 Mavrik yeah thats what i thought Jul 11 18:18:00 and if you get an incoming packet, the data session will get established and interrupt from baseband will wake main ARM core Jul 11 18:18:19 i dont think its a problem of AS though. Its an error in one of your configuration files Jul 11 18:18:32 Google does some fancy stuff over that tho (batching of pushes, keeping the connection up at all times, etc.) Jul 11 18:18:37 but that's the base of it Jul 11 18:18:49 Mavrik is there anything magical going on with GCM, that could not be written by a normal dev from scratch; like firmware looking for certain byte sequences in the tcp stream do do power optimized things ? Jul 11 18:18:50 afaik the protocol itself is proprietary and not really open... even though it's XMPP based Jul 11 18:18:56 my config files are on http://github.com/afroraydude/MyFirstApp Jul 11 18:19:05 L8: look into xmpp and mqtt Jul 11 18:19:10 g00s, I don't think so... GCM is part of Play services anyway Jul 11 18:19:17 it's not really in the core OS Jul 11 18:19:18 regarding this article, http://developer.android.com/training/improving-layouts/smooth-scrolling.html, do they mean loading images from the internet or from the machine? Jul 11 18:19:26 jug6-away, saw it Jul 11 18:19:30 thanks Mavrik for the info Jul 11 18:19:39 g00s, it just abuses the way mobile networks work since the mobile network needs to have a way to make your phone listen to it when required :) Jul 11 18:19:51 but as far as I understood it means I need to set up my own infrastructure for this Jul 11 18:19:52 and my config files look good Jul 11 18:19:55 g00s, any ideas? Jul 11 18:19:59 afroraydude: no mavencentral in yout repositorys? Jul 11 18:20:00 and its not what I want Jul 11 18:20:09 i think what jug6-away may be referring to, is the tcp connection may technically be established, but it doesn't recover performance wise Jul 11 18:20:15 L8, why not use two-way GCM? Jul 11 18:20:15 what is mavencentral Jul 11 18:20:26 i dont remember using maven Jul 11 18:20:29 from a keep-alive perspective Jul 11 18:20:36 Mavrik, not sure I know what you're meaning Jul 11 18:20:44 mhm, that can happen, especially if you're behind a router which has timeouts on TCP set Jul 11 18:20:44 googling Jul 11 18:20:52 L8, GCM is Google's push messaging service Jul 11 18:21:01 two-way Jul 11 18:21:05 yep Jul 11 18:21:13 what do you mean by two-way Jul 11 18:21:14 you'll need a server somewhere still to route the messages tho Jul 11 18:21:18 I mean... two way. Jul 11 18:21:21 hmm Jul 11 18:21:23 sending and receiving ;_ Jul 11 18:21:43 its a good practice? Jul 11 18:21:53 I know gcm takes sometimes even 2 min for the notification to get Jul 11 18:22:13 it's pretty much the only practice for those use-cases Jul 11 18:22:26 and yes, delivery is not guaranteed... but it isn't for anything else either Jul 11 18:22:32 on average it's matter of milliseconds Jul 11 18:23:06 I'll probably just check the source of Telegram Jul 11 18:23:10 afroraydude: did you edit anything on this gradle files and where did you get them from? Autogenerated by android-studio? Jul 11 18:23:16 to see maybe how they've been implemented this Jul 11 18:23:28 danijoo auto-generated Jul 11 18:23:30 its hard to believe for me that whatsapp or telegram uses GCM for each messages Jul 11 18:23:36 sounds kind of wrong Jul 11 18:23:38 maybe I wrong Jul 11 18:24:07 afroraydude: did you download android sdk version 19 and 20 with sdk manager? Jul 11 18:24:25 yes Jul 11 18:25:09 dont know then. sorry Jul 11 18:25:22 never seen this erro Jul 11 18:25:24 r Jul 11 18:27:02 it is with as, i setup again, same exact thing but with IDEA, no errors present Jul 11 18:27:57 why bother about AS anyways. Its just a stripped IDEA Jul 11 18:28:44 maybe you missed some configuration in AS? wrong ANDROID_HOME or whatever. Jul 11 18:28:45 idk Jul 11 18:28:57 nope same thing Jul 11 18:29:38 how do i add android plugins into idea Jul 11 18:29:48 like android support Jul 11 18:30:10 you add them to the gradle file Jul 11 18:30:17 under dependencies Jul 11 18:30:41 (same as in android studio) Jul 11 18:34:17 i do not know what you are talking about Jul 11 18:34:43 then you should google it and follow the android developer docs Jul 11 18:38:19 Hi guys, can you please try to help? I am using NDK. I have my Engine (that uses few libs), complied in a EngineLib. Then i create an application and use my EngineLib. Problem is, application crashes as it cant find the 5 main functions that are as 'extern' in my Engine. Jul 11 18:38:32 here an image of the structure I have Jul 11 18:38:50 http://goo.gl/Gq42ZC Jul 11 18:39:35 those extern functions are in my App.cpp, and that's why application fails to run. Did anyone encounter such a problem ? Jul 11 18:40:47 rebelCoder, you need to call System.loadLibrary in java for each of your dependent libs Jul 11 18:40:55 loader will not follow the dependency chain Jul 11 18:41:10 I think I did, let me check again Jul 11 18:41:18 https://github.com/pfn/android-sdk-plugin#new-features-in-13x Jul 11 18:41:20 so much new hotness Jul 11 18:41:30 yeah, I did. Jul 11 18:42:01 It loads and finds SDL libs, but as my Engine has those extern functions that are then used in the app, there is a problem :( Jul 11 18:44:07 Hey guys I'm seeing a method that WifiManager has ( isDualBandSupported() ), but i'm not able to access it through an instance of WifiManager. Why is that? Is it forbidden for puny mortals? Jul 11 18:44:45 see yall Jul 11 18:45:35 skulltower, if it's not in d.android.com, it doesn't exist Jul 11 18:45:42 all @hide apis are disallowed by default Jul 11 18:46:21 Is there any way to override that @hide for my users? Jul 11 18:46:27 im starting with android L testing next week Jul 11 18:46:29 that should be fun Jul 11 18:46:37 skulltower, reflection perhaps? Jul 11 18:46:59 drej, what do you mean by testing? development or just putting it on your phone and reporting bugs? Jul 11 18:46:59 Mmm lemme google on that :D Jul 11 18:47:06 referenc Jul 11 18:47:16 ack. Jul 11 18:49:10 Afzal testing my app on it Jul 11 18:53:46 what ways are there to communicate with other nearby phones (in an ad-hoc network manner)? bluetooth, NFC, what else? Jul 11 18:54:08 there is wifi direct Jul 11 18:54:08 wifi direct Jul 11 18:54:36 Boscop, WiFi Direct Jul 11 18:55:06 unless u missed the last 3 messages, wifi direct Jul 11 18:55:08 :P Jul 11 18:55:33 also, they have that wifi direct thing Jul 11 18:55:34 which one is the easiest to link up for end users? Jul 11 18:55:42 to pair phones Jul 11 18:55:47 Boscop but really, the best way to do it, is to roll your own Jul 11 18:55:47 bluetooth, probably Jul 11 18:55:56 Boscop, depends on what kind of communication you need Jul 11 18:55:57 use morsecode flashing full screen on one phone and camera app on the other Jul 11 18:55:59 to transfer data Jul 11 18:56:00 NFC isn't really for communication, as such Jul 11 18:56:01 which of those allows detecting what the closest device is? Jul 11 18:56:04 physically Jul 11 18:56:06 woah i wonder if that would work Jul 11 18:56:07 none Jul 11 18:56:21 you can't really accurately predict short-range distances with radio Jul 11 18:56:36 Mavrik you could theoretically if you had more than 2 devices Jul 11 18:56:48 at least you can in CSI Jul 11 18:57:03 drej, the issue is those signal strength measurments are very unreliable Jul 11 18:57:18 and you get bunch of wierd radio behaviour inside which makes that method very unreliable Jul 11 18:57:27 especially if there are additional things in doors Jul 11 18:57:32 like other wifi routers and whatnot Jul 11 18:57:34 well... NFC could count potentially... since it only works with a device that's touching your device :P Jul 11 18:57:37 NFC is for establishing other connections &&|| small data transfers Jul 11 18:57:46 ok so back to my idea Jul 11 18:57:57 camera app + fullscreen flashing on the other devices Jul 11 18:58:03 and use augmented reality to measure distance Jul 11 18:58:05 problem solved Jul 11 18:58:11 where's the line up to pick up my nobel prize? Jul 11 18:58:13 drej: i think thats called math Jul 11 18:58:19 not augmented reality ;) Jul 11 18:59:15 oh man im excited to test our rugged devices next week when they get in Jul 11 18:59:25 we just ordered some (supposedly) bomb proof android devices Jul 11 18:59:26 bluetooth is what you want to use for shortish-range, lowish-bandwidth stuff Jul 11 18:59:40 drej which ones ? Jul 11 18:59:53 motorola tc55 are the entry-level ones; and then uhmmm Jul 11 18:59:55 issue with bluetooth is that it's a pain to pair up Jul 11 18:59:57 one sec let me look it up Jul 11 19:00:09 and most people don't know how to use it... that's why most new devices rather use wifi direct Jul 11 19:00:13 like Chromecast and stuff Jul 11 19:00:19 Mavrik: pair via nfc Jul 11 19:00:30 these guys http://www.airacom.com/innovation-android-atex-smartphone g00s Jul 11 19:00:45 jug6-away, people dunno how to use NFC... mostly due to dumb antenna placement Jul 11 19:01:00 :\ Jul 11 19:01:00 there's just so many times you go searching for that sweet spot on two devices where NFC work Jul 11 19:02:06 drej interesting, do you know what other ones were evaluated ? Jul 11 19:02:09 could do some kind of pairing using qr codes and the cameras, then over internet Jul 11 19:02:29 g00s not off hand, im just the dev lead, we have a guy that manages the devices Jul 11 19:03:04 g00s the tc55 from motorola is the most used in our client base right now Jul 11 19:03:07 from the rugged devices Jul 11 19:03:16 but im guessing its because of their relatively low price point ~$1200 Jul 11 19:03:36 i think these atex ones were like $2500+ Jul 11 19:04:02 :O Jul 11 19:04:27 panasonic has been making ruggedized stuff for a while, including tablets - i wonder if they have any android devices Jul 11 19:04:38 i'm guessing not, panasonic like sony is hurting badly Jul 11 19:04:56 sony is hurting? Jul 11 19:04:58 from what Jul 11 19:05:00 a lot of the japanese consumer electronic companies are paring back Jul 11 19:05:20 jug6-away in a large way, apple Jul 11 19:05:32 for example, with sony the vaio Jul 11 19:05:36 apple killed that Jul 11 19:05:49 i guess Jul 11 19:06:18 tho if sony didnt see the writing on the wall about computers then they deserve to be hurting Jul 11 19:06:54 Anyone know how to get the dagger visualizer to run Jul 11 19:06:58 meh Jul 11 19:07:06 fujitsu is making lettuce now :) Jul 11 19:07:06 jug6-away, Sony killed Vaios themselves Jul 11 19:07:22 lol Jul 11 19:07:25 they're just a moronic corpo that loves to annoy users with arbitrary crap Jul 11 19:07:44 g00s: growing* lol Jul 11 19:07:56 note that it was impossible to buy a Vaio in EU in another country or get them built to order Jul 11 19:08:19 and most countries didn't have dedicated stores... so they went out of their way to prevent you from buying their machines :P Jul 11 19:08:30 i hope sony keeps making cameras though :) Jul 11 19:08:35 jug6-away http://www.economist.com/news/business/21606845-electronics-companies-japan-are-starting-turn-themselves-around-they-are-shadow Jul 11 19:10:43 g00s: ill read later, to long for now lol Jul 11 19:11:51 I'm trying to go through Google's application development tutorial but for the section on the action bar I'm getting errors about fields created in the xml being unresolvable (R.layout.activity_main cannot be resolved or is not a field). Can someone tell me what the problem is or how I should go about debugging this? Jul 11 19:13:27 quidnunc: a) clean - whenever you have any errors to do with resources, clean your project... b) do you *have* a layout called activity_main? Jul 11 19:13:45 jug6-away is pretty short :) in summary, those guys are all struggling against apple / samsung. now samsung's latest earnings were interesting, taking a big hit after announcing their flagship device. sammy is getting smooshed from apple and xaoimi Jul 11 19:14:30 isnt sammy 25% down year to date Jul 11 19:14:35 Leeds: Tried cleaning already, no luck. Yes I have activity_main.xml Jul 11 19:14:43 Leeds: It's not the only error. Jul 11 19:14:57 there were talking about it on the phandroid podcast; they make way too many devices Jul 11 19:15:04 R.id.messages, R.menu.activity_actions, R.id.action_search, ... Jul 11 19:15:55 g00s: yes, but i think a lot of it comes from the sgs5 being a really pathetic upgrade from the s4 Jul 11 19:16:02 if users have no reason to upgrade, they wont. Jul 11 19:16:41 especially when u have other OEM's that are actually making changes, not just adding a heart rate sensor lol Jul 11 19:16:51 tho i hate samsung fwiw Jul 11 19:17:47 jug6-away i think they also have too many tablets Jul 11 19:18:11 Hello - when the user is prompted to select an app with “Complete action using” popup, how can I detect that he DIDN’T select an app? In other words, if he selects app1 or app2, it works fine but if he clicks on the black spot then I need to change state in my app. How can that be done? Jul 11 19:18:12 how many do they have? Jul 11 19:18:16 i thougth they had like 3 Jul 11 19:18:21 (lines) Jul 11 19:18:22 at least Jul 11 19:18:34 and different sizes, announced at seemingly random times Jul 11 19:18:35 Leeds: I heard that I may get that type of problem if I have an error in my xml. Is that true? Jul 11 19:18:42 too much for anyone to keep track of Jul 11 19:19:06 that is true Jul 11 19:19:36 jug6-away: Is that indicated somewhere in an error log? Jul 11 19:20:00 I am getting "unable to load font AndroidEmoji.ttf" Jul 11 19:20:00 but huh Jul 11 19:20:00 quidnunc: er, I'd expect to get an XML error in that case, but I'd guess you're using an IDE which is hiding useful error messages Jul 11 19:20:10 jug6-away i know more about apple's line up than samsung, and i'm an android dev :| Jul 11 19:20:21 lol Jul 11 19:20:27 yea...me2 Jul 11 19:20:49 Leeds: I'm in eclipse, would be happy to ditch it if there was something better. Jul 11 19:20:51 im thinking of selling my n7 2013 for an ipad mini Jul 11 19:21:01 Hello there Jul 11 19:21:03 tho only bc the ipad mini has some awesome keyboard cases Jul 11 19:21:18 quidnunc: Android Studios or Intellij Jul 11 19:22:06 I have a little problem i cant solve.. Jul 11 19:22:14 i am starting using FragmentPreferences Jul 11 19:22:29 PreferenceFragment, sorry Jul 11 19:24:29 g00s: from the article u linked Jul 11 19:24:30 http://cdn.static-economist.com/sites/default/files/imagecache/original-size/images/print-edition/20140712_WBC303.png Jul 11 19:24:39 doesnt seem that big of a change really for sony to me :P Jul 11 19:24:45 they have almost always made nothing lol Jul 11 19:27:26 i remember when i was a kid, everyone wanted a walkman Jul 11 19:27:45 * jug6-away had one Jul 11 19:27:46 :P Jul 11 19:28:01 cd players were the big thing when i was a kid tho Jul 11 19:28:32 it was a while ago, but those guys installed some crap on your computer Jul 11 19:28:52 after that i wouldn't buy sony bubbglegum Jul 11 19:29:28 i cant navagiate with the fragmentmanager.. Jul 11 19:29:52 it says that PreferenceFragment is not a fragment :S Jul 11 19:30:48 http://i.imgur.com/EMrBmu5.png - when user does not select an app (by clicking black background) then how can I detect that? Jul 11 19:30:55 tksko: take note if u are using fragments from the support lib or not Jul 11 19:31:18 yes, i am using fragments from the support lib Jul 11 19:31:35 android.support.v4.app.Fragment Jul 11 19:31:49 tksko: are u using a FragmentActivity? Jul 11 19:32:04 u need to use the getSupportFragmentManager Jul 11 19:32:28 my main activity is a ActionBarActivity Jul 11 19:32:37 i am using the other support lib, v7 for actionbar Jul 11 19:33:11 and yes, i am using getSupportFragmentManager Jul 11 19:33:25 but it says that i need a fragment not a myBlablaPreference Jul 11 19:33:43 well check the class hierarchy, see why its saying that Jul 11 19:35:17 it seems that the PreferenceFragment, is a normal Fragment :( Jul 11 19:35:24 not a Support V4 fragment Jul 11 19:44:40 hi, a got error while trying to start app from AndrStud on my xiaomy mi3 in linux mint, got sintaxis error Jul 11 19:44:45 what have to do? Jul 11 20:03:11 Hey, I have a quick iconography question. Jul 11 20:03:36 What icon should I use to indicate that the user can "subscribe" to a new service Jul 11 20:05:09 for the actionbar* Jul 11 20:07:00 how do i make a ant build Jul 11 20:07:07 Retrofit gurus! Does simply returning void and having a Callback make the function async? Jul 11 20:07:17 explodes: yes Jul 11 20:07:20 legit; Jul 11 20:07:26 async in its own thread pool? Jul 11 20:08:10 yes Jul 11 20:08:41 one last question: @GET("/weather?units=metric") Observable fetchCurrentWeather(@Query("lon") double longitude, @Query("lat") double latitude); Jul 11 20:08:59 that will automatically GSONIFY the response into an Observable? Jul 11 20:09:13 Seems like I'm missing a point in the code that facilitates that magic. Jul 11 20:09:21 GSON and observable aren't related there Jul 11 20:09:35 Observable is an RxJava thing Jul 11 20:09:38 right Jul 11 20:09:51 so I dont understand how the observable is created Jul 11 20:10:08 I don't user it with RxJava. can't help you there Jul 11 20:10:09 Retrofit creates it after Gson creates the CurrentWeatherDataEnvelope Jul 11 20:10:27 (kind of) Jul 11 20:10:34 it's more nuance than that, but that's basically what happens Jul 11 20:10:51 so, retrofit already knows about RxJava? Jul 11 20:10:54 yep Jul 11 20:11:12 ...awesome. Jul 11 20:11:50 Thanks dudes. Jul 11 20:11:52 how do i make an ant build Jul 11 20:12:54 also Error:org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation 'C:\Users\Rashaad\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'.: Could not execute build using Gradle installation 'C:\Users\Rashaad\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'. Jul 11 20:13:28 i've got a button adjacent a textview, i want the button to be as high as the textview. the problem is the button is bigger than the textview, and fill_parent apparently only enlarges things. how can i make it smaller? Jul 11 20:14:46 Hi. I am interested in using Android on my PC. Would that work, to have it as a real OS? 1. Can you run it on X86? 2. Software like chrome etc, are there android versions for download? 3. would it even be possible to develop android apps on android? Jul 11 20:14:53 sqrrl: if you're in a RelativeLayout, you can use alignTop="@+id/my_text_view" Jul 11 20:15:18 sqrrl: or alignBottom, whatever "as high as" means Jul 11 20:15:34 does android require touchscreen? Jul 11 20:15:48 explodes: uh.. means same size? ok thanks i'll google it Jul 11 20:15:48 pcdroid: http://www.android-x86.org/ Jul 11 20:20:27 explodes: ty, found that too. But does Android require touchscreen? Jul 11 20:20:35 i dont think so Jul 11 20:20:36 no, not by design. Jul 11 20:21:44 thanks for the help Jul 11 20:21:53 have a nice day Jul 11 20:24:03 explodes: also, i can't use RelativeLayout since it takes all the screen Jul 11 20:26:40 anyone in here mess with the android source code itself before? Jul 11 20:27:04 if so, do you know if it's any different from Android Apps when using native code? Jul 11 20:27:16 Would I use the NDK when editing the Android source itself? Jul 11 20:27:25 or is that made only for android apps? Jul 11 20:27:55 if I have the id for a button, does it matter where I call " Button myButton = (Button) findViewByID(id); " from? When I try myButton.setText() with that code, it works fine in some places but gives a null pointer exception in other places, and I can't work out why Jul 11 20:29:02 if your activity doesn't contain a Button with id "id" then it will NPE. Jul 11 20:30:18 frankdoyle, but it does. Before, I was passing around the button object itself, and when it reached the final method I could call setText on it no problem. Then I switched to passing the id for the button and casting the button in the final method, and now it doesn't work Jul 11 20:30:33 but the ID is being passed correctly, I can see in the logs Jul 11 20:32:32 ADB command comes in through command line but android command does not Jul 11 20:32:40 please help Jul 11 20:32:52 android command? Jul 11 20:33:08 im confused Jul 11 20:33:42 adb runs on your computer (not inside android it self) Jul 11 20:34:03 in command line you would just type android or android list targets or something Jul 11 20:34:11 ¯\_(ツ)_/¯ Jul 11 20:34:35 thats news to me ... sounds like a shortcut/symlink to an adb command Jul 11 20:34:46 Sounds like... adb devices Jul 11 20:34:59 ^^ Jul 11 20:35:37 why you'd alias that to 'android' I dont know. But that sounds like what youre after Jul 11 20:36:44 http://developer.android.com/training/basics/firstapp/creating-project.html\ Jul 11 20:36:47 is this article regarding network loading, or also loading from other areas, like the disk? http://developer.android.com/training/improving-layouts/smooth-scrolling.html Jul 11 20:37:44 my last post would show examples of use with the android command Jul 11 20:38:19 and i used to be able to use the android command Jul 11 20:38:40 Hi all; I'm getting exception: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@529a6138 is not valid; is your activity running? when i reopen activity and within, open a dialog. I didn't had this problem, when I was running to code from withing the activity class itself. now, when I moved the "openDialog" to Util class, all hell broke lose. Here is the code snippet: http://pastebin.com/QvJfp Jul 11 20:38:49 android.bat is the .bat file Jul 11 20:39:19 i'm paying 5eur paypal to whoever will help me fix this error. Jul 11 20:41:39 let me add, i've googled and checked stackoverflow, but the thing to use !context.isFinishing() worked; but i cannot open the dialog after that either -.- Jul 11 20:42:47 g00s, any ideas? Jul 11 20:44:12 I need to capture references to some buttons in a PopupWindow. What point in the lifecycle can I capture this references? It's onCreateView for fragments, is it the same for popupwindow? Jul 11 20:47:28 how do i make an ant build? Jul 11 20:48:17 anyone could help me out with problem above? Jul 11 20:48:27 like an ant build.xml? Jul 11 20:49:52 because i keep getting BUILD FAILED Jul 11 20:49:52 C:\Users\Rashaad\Documents\DEV\MyFirstApp\build.xml:287: Duplicate target 'compile.module.m Jul 11 20:49:52 yfirstapp' Jul 11 20:52:31 is the integer ID of a resource gaurenteed to always be the same, even across sessions and power cycles? Jul 11 20:55:26 d0de: as soon as u inflate ur layout that popupwindow u can findview on the popup Jul 11 20:55:48 d0de: yes but never ever ever hard code resource id's Jul 11 20:55:57 whatitis, thank you but I realized that wouldn't actually solve my problem Jul 11 20:56:38 http://www.amazon.com/Samsung-UN110S9V-Frameless-110-Inch-Ultra/dp/B00L403O94/ Who wants a $149,999 TV? Jul 11 20:56:56 explodes, I'm not planning to hard code it per se. My app has a popupwindow that has buttons in it that have different names based on what the user has entered. I want those names to be persistent between sessions. My plan is to store them mapped against the resource ID of the button they're for. Sound OK? Jul 11 20:58:45 d0de: yea, but to be more robust i'd store "button 1's text" and "button 2's text" not "button ID 0x2384928's text" if that makes sense Jul 11 20:59:16 then i would know button 1 is 0x2384928 and put that text on the button Jul 11 20:59:53 more correctly even, I would store "button 1's text" as something more meaningful, like "Favorite Dog Breed 1" or whatever you have Jul 11 21:00:11 then, mapping fav-dog-1 to button-x when its time to populate it; Jul 11 21:00:15 do you follow? Jul 11 21:00:32 so, whoever said putting singleton definition in onCreate method of activity like this: if (sInstance == null) sInstance = this; ---this is wrong. :| Jul 11 21:00:48 in onCreate, should always be sInstance = this; without if Jul 11 21:01:52 explodes, but I don't know how to uniquely identify "button 1" without using either its text or its id? Jul 11 21:02:41 d0de oh, use its ID definitely Jul 11 21:02:50 but use R.id.button_1 not 0x234898f Jul 11 21:03:10 explodes, so say I store "button 1's text: Apples, button 2's text: Bananas" in some kind of map without the IDs - when I'm creating the popupwindow and I want to populate the buttons with text, what identifier do I use? Jul 11 21:03:14 sorry I might be being stupid and thinking that is what you were doing, incorrectly Jul 11 21:03:39 How do I remove the compatibility support library from a project? Jul 11 21:03:40 oh ok - but how I do I extract "R.id.button_1" programatically? it's just an integer, right? Jul 11 21:03:57 yea use something to the effect of ((Button) findViewById(R.id.button_1)).setText("Apples") Jul 11 21:04:03 I get a view from the click handler, how do I get R.id.button_x from the view? Jul 11 21:04:21 d0de are you familiar with R? Jul 11 21:04:32 explodes, no Jul 11 21:04:44 ok let me type up a paste for you Jul 11 21:05:32 hey, thanks! Jul 11 21:05:57 in Android, what is the closest navigation control to the iOS UINavigationController? I am more of an iOS developer... trying to duplicate an iPhone app in ANDROID STUDIO Jul 11 21:08:07 d0de: http://pastie.org/9379142 here ya. if/when you have questions, just ask Jul 11 21:08:38 can anyone tell me what is wrong with this: https://github.com/afroraydude/MyFirstApp/blob/master/build.xml Jul 11 21:09:28 IrishGringo: look into "public boolean onCreateOptionsMenu(Menu menu)" if you override this, you will get an ActionBar which is the NavBar thing in IOS Jul 11 21:09:29 because i get this error BUILD FAILED Jul 11 21:09:29 C:\Users\Rashaad\Documents\DEV\MyFirstApp\build.xml:287: Duplicate target 'compile.module.m Jul 11 21:09:29 yfirstapp' Jul 11 21:10:42 explodes: thanks... is this a simple solution or is there a better navigation concept in ANDROID I should be looking at... I would like to just get backbuttons automatically Jul 11 21:10:56 IrishGringo: its the complete solution. Jul 11 21:11:06 explodes, I still don't quite follow. The problem is this: users rename a button by clicking on it, then entering some new text. The click gets passed to a click handler that takes the view and extracts the string for the new name. So I have the view and the string to store. But the only way I know to get the ID from the view is to use view.getId(), which returns an integer. So I'd be storing the integer for button_1, not "R.id.butt Jul 11 21:11:36 explodes: thanks Jul 11 21:11:51 IrishGringo: HOWEVER if you're targeting older versions of android, (<16?) you'll want to use AppCompat to make sure it works on older devices. Jul 11 21:12:11 no... 3.0 and above Jul 11 21:12:30 3.0 and above is old as hell Jul 11 21:12:31 now i get this error Error: Could not access the Package Manager. Is the system running? Jul 11 21:12:54 IrishGringo: look at "ActionBar support library" that will show you what you need to know. Jul 11 21:12:56 ok... what should I be targeting? Jul 11 21:13:02 14+ Jul 11 21:13:10 ok... 14+ Jul 11 21:13:14 thanks Jul 11 21:13:20 screw the old Jul 11 21:13:30 Youll hit 75-80% of the market and have to deal with a lot less problems Jul 11 21:13:40 Plus you'll support the FUTURE instead of the PAST Jul 11 21:13:47 d0de: uhh Jul 11 21:14:07 d0de: are you wanting to actually save that view's id to disk? Jul 11 21:14:48 d0de: This is where common design patterns come in to play, you'll want a data layer that represents what your Views physically display. Jul 11 21:14:55 s/physically/actually Jul 11 21:14:57 Please help me Jul 11 21:15:22 afroraydude: This won't help you, but you really should be using gradle. Jul 11 21:15:25 I also have a lot of Static images, but I hate putting them all in the same directory. Is there no way I can setup a Dir for Buttons, Logos, ...? Jul 11 21:15:36 Hey guys. Jul 11 21:15:45 IrishGringo: unfortunately no, super lame. Jul 11 21:16:15 really...???? no way??? ahhh shit... this is going to be painful Jul 11 21:16:22 explodes, I just want something really simple that works :( Jul 11 21:16:27 So Scala is fun. Jul 11 21:16:41 Hello Guys did some of you work with the Android Wear Data Api ? Jul 11 21:16:46 d0de: truth be told if you do it "right" it is simple, Jul 11 21:16:57 gradle does not work either Jul 11 21:16:58 d0de: if you want quick and dirty, then you can save the id of the button... Jul 11 21:17:08 d0de: it will work, unless you change your templates, ever. Jul 11 21:17:28 any of your templates being changed can/probably-will break your app Jul 11 21:17:41 afroraydude: shit, son Jul 11 21:18:12 afroraydude: i don't know what build.xml is i would assume that's an ANT thing, i don't know anything about it Jul 11 21:18:34 Yeah, build.xml is ant. Jul 11 21:18:53 it is ant Jul 11 21:22:48 my emulator is just a black screen Jul 11 21:24:34 been like this for 6 minutes Jul 11 21:24:38 period? or when you run your app? Jul 11 21:24:45 emulators start up extremely slowly Jul 11 21:25:02 if you're using the x86 emulator, intel has a package you can download to speed it up Jul 11 21:25:15 https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Jul 11 21:26:16 i think i chose arm Jul 11 21:27:13 anyone with the note 3 and android 4.4.2 want to try an apk and tell me if it launches? I've been getting reports from that device, and I think I've fixed it, but no way to test it out. Jul 11 21:27:28 Can someone explain to me why you would use an emulator as opposed to just hardware? Jul 11 21:27:39 cus you don't have the hardware? Jul 11 21:27:58 yes Jul 11 21:27:59 Oh. Jul 11 21:28:18 i am getting a new model soon but no hardware Jul 11 21:28:51 auxchar: you can create an emulator with a bunch of different options, different android versions, etc, etc. Jul 11 21:29:25 Ah, that makes sense. Jul 11 21:31:06 I can't wait for Android-underwear to come out Jul 11 21:31:40 Put it on vibrate? Jul 11 21:32:25 haha Jul 11 21:33:40 If I called you would I just hear the sound of your junk? Jul 11 21:34:05 is there a way to create an Assets folder with a text file that I can read into a TextView... It's a long text of about 2000 words, so I dont want to put it in the strings.xml file. Jul 11 21:34:06 tbh that's what you'd hear with regular phones Jul 11 21:34:12 or perhaps I should put it there. Jul 11 21:34:23 IrishGringo: yes you can Jul 11 21:34:53 IrishGringo: open up a file at the url: file:///android_assets/my_text_blocks/text.txt Jul 11 21:35:22 there is probably a better way to open files let me double check Jul 11 21:35:45 so I should create a dir in my project and ref with a url? Jul 11 21:35:51 reader = new BufferedReader( new InputStreamReader(getAssets().open("filename.txt"))); Jul 11 21:35:57 http://stackoverflow.com/questions/9544737/read-file-from-assets Jul 11 21:36:25 cool... thanks... Jul 11 21:37:08 Does adb need Developer Mode enabled on the phone, to push .apk? Jul 11 21:37:31 smallfoot-: no idea, try it ;) Jul 11 21:38:20 I can install APK if I put it on a web server and point the browser there Jul 11 21:47:46 Does anyone have a great idea for this problem: I want to start a new activity when I rotate my phone from portrait to landscape. However, I want the first activty to stay portrait. The problem I am running into is that if I setRequestedOrientation or set the orientation in the manifest, onConfigurationChanged is not getting called properly Jul 11 21:47:56 my ide cant find the devices.xml Jul 11 21:49:05 could I put a settings fragment inside of a dialog fragment to make a settings that overlays on the screen like a dialog fragment does? Jul 11 21:55:13 how do i get a new devices.xml Jul 11 22:05:46 If I'm semi-new to programming (not totally) is it possible for me to use Android Studio and begin work on a Material Design application? Or is the documentation/SDK not in-depth enough on these new methods for me to get myself up-to-speed? Jul 11 22:08:25 if you're new to programming, it's not enough to just jump into the IDE Jul 11 22:08:44 the IDE doesn't make a non-programmer a programmer Jul 11 22:09:35 That's not what I mean - I'm familiar with programming and am taking a Java course. I'm more worried that Android Studio and the Material Design/updated documentation may not be up-to-snuff for someone relatively new. Jul 11 22:10:06 I'm certainly willing to put in the legwork and understand the difference between coding and an IDE - I've done coding in text editors and also made an iPhone application (a simple one, admittedly). Jul 11 22:10:17 only way to really find that out is to try and use it, and if you get stuck then that might be the case Jul 11 22:10:56 new stuff that isnt easy to look up solutions to (because its new) is going to be harder no matter what Jul 11 22:11:41 ShadowXOR, doesn't sound familiar with programming to me Jul 11 22:11:56 but no, the IDE is not enough if you're starting out Jul 11 22:12:05 read d.android.com, all the paths and then come back Jul 11 22:12:37 I do automated tests in Python for work, PowerShell scripts, an iPhone app, C# app, and more...this was a question about documentation. Jul 11 22:12:42 And how far along the beta IDE is. Jul 11 22:13:02 the IDE is unrelated to documentation Jul 11 22:13:26 If it has terrible code completion, that will make it much harder for me, and a lot of the tips IDEs provide is very useful and I consider similar in function. Jul 11 22:14:00 the IDE is 100% production ready Jul 11 22:14:04 if that's what you're asking Jul 11 22:14:12 but it is not a replacement for production Jul 11 22:14:15 Alot of what ifs Jul 11 22:14:37 Sounds good enough for me then. Jul 11 22:19:43 Hi I was able to partly solve my issue. Jul 11 22:20:36 Hello! Anyone had any problems today/yesterday with android developer tools update 23.0.0? Jul 11 22:20:56 Now I need to know is it possible to move res/ folder of a library to assets/ folder and make some hack to the library so it can load them from assets/ ? Jul 11 22:24:33 Lerg. Your approach seems off Jul 11 22:25:38 whatitis: I am limited by my sdk - Corona SDK Jul 11 22:25:47 does adding google play services to your app really help it much? (in terms of people seeing the game in the appstore/downloading it/wanting it) Jul 11 22:25:51 I can make a native plugin Jul 11 22:26:03 how to make image stay proportional, but scale depending on parent width? Jul 11 22:26:03 it seems like such a hassle to do Jul 11 22:26:35 ASneakyFox: leaderboards are great Jul 11 22:27:12 and this plugin is only allowed to be a JAR file with nothing in res/ dir Jul 11 22:27:36 well im still planning to have acheivements and leaderboards.. but does specifically using google play services help it? i feel like itd be much less of a hassle to just implement achievements my own way than dealing with all the google play services stuff Jul 11 22:27:52 I am integrating the Giftiz SDK for promotion Jul 11 22:27:59 my thought of trying ot use google play services is it might help its ranking or it might show up in more places/more search results Jul 11 22:28:30 rule of thumb - use gps Jul 11 22:29:10 but yeah, it's not mandatory, you can have Facebook leaderboard instead Jul 11 22:32:37 Implementing with Google Play will encourage a greater sense of community than making your own because they can compare with friends. Jul 11 22:33:26 Just a thought. Jul 11 22:37:06 so is it possible to substitute res/ with say assets/res/ ? Jul 11 22:39:30 ShadowXOR: thats my thoguht too. though i personally dont do anything involving google play or know anyone who does. people might just end up thinking it annoying cause you have to log in to the game Jul 11 22:40:16 Yeah, I can't speak to that because I'm fully immersed in the Google eco-system from top to bottom, though to be fair I don't play games on my Android but if I did I'd want easy access to competing with friends. Jul 11 22:40:22 I'm a big gamer...just not on phones. Jul 11 22:41:23 The beauty of it is though if they're already on Android they shouldn't really need to login, it should be automatic or one tap. Jul 11 22:42:30 I think most users do login Jul 11 22:43:04 Hell I'm so immersed in the Google ecosystem I use Google+...so you know I'm crazy... Jul 11 22:43:27 i thought it brings up like a faux web browser thing where you type in your email and password. ive only ever seen apps with facebook integration heh, and thats how they do it. i guess i should actually find an app that uses goole play services first so i know what im trying to do Jul 11 22:43:33 how to get ImagesViews to bleed althe way to parent WIndow? Jul 11 22:44:00 ASneakyFox: I believe it automatically logs you in, and at worst will just pop a popup with their built in system account just allowing them to tap user@gmail.com and they're in Jul 11 22:44:09 Like you said I'd try it yourself with another app. Jul 11 22:44:32 yup, automatic login Jul 11 22:45:02 check my game 2048 Hex from spiral code studio, I have gps there and two leaderboards. Jul 11 22:46:08 I don't understand why these 2048 things are exploding. I r confused Jul 11 22:46:31 Nice app though Lerg Jul 11 22:46:39 thanks Jul 11 22:47:30 exploding, because a simple clone is very easy to make, just like flappy bird. Jul 11 22:47:56 I guess I'm just not big into high-score type games. Jul 11 22:48:49 So what in-app purchases do you offer? Jul 11 22:48:57 remove ads Jul 11 22:49:07 I find it a bummer paying for apps is basically dead and IAP is the only viable option. Jul 11 22:49:28 I'd say ads pays better Jul 11 22:49:44 That's what I was thinking, I know some popular apps that don't offer a paid version, only free with ads because they make more money. Jul 11 22:50:26 You have any other projects you're working on other than the three there? And do you do this for a living or as a side to your daily job? Jul 11 22:51:25 I have another game Laser Puzzle and I do mobile dev for clients for living. Jul 11 22:51:55 So you're a consultant/freelancer? Jul 11 22:52:02 freelancer Jul 11 22:52:11 and consultant, right Jul 11 22:52:27 Interesting. Right now I'm in QA working to be a developer, I think I'd be into something more stable...working with clients is a nightmare. At least from my experience. Jul 11 22:52:56 I've found a few really good clients Jul 11 22:53:29 and working with Corona SDK is a breeze. Jul 11 22:54:02 Does it just make Android programming easier, making your apps cross-platform, or both? Jul 11 22:55:08 i have a table view cell which is causing a lot of ANRs on people's phones in its inflate method. however in my test on my fast phone, it isn't that much slower than the other tables. what might be the issue? i can't repro this anr but it's clearly a big issue Jul 11 22:55:09 easier and cross platfrom Jul 11 22:57:11 Does anyone know where I could find data on the speed of Binder / AIDL relative to other IPC methods? Jul 11 22:58:49 tl;dr - I have an app that provides access to a network, and it has a client API on a localhost network port. I have Intents set up to enable client apps to start it, and some mechanics to ensure that the API port is open and listening, but I think that using a local-only method would be better. Jul 11 22:59:46 lerg very nice, yeh just tapping sign in isnt such a big burden on the user... btw are the extra permissions customizable? (eg it wants to know whose in my circle or something) Jul 11 22:59:51 or is that needed for leaderboards? Jul 11 23:00:06 I am looking at AIDL/Messenger, LocalSocket/LocalServerSocket, maybe Unix pipes... Jul 11 23:00:32 ASneakyFox: the only permission is internet I guess Jul 11 23:01:00 It has to handle bidirectional 100KBps or more, per-client Jul 11 23:02:51 I like the idea of using Messenger (or direct AIDL if Messenger is too slow) for the service registering and handling that Android provides. But I don't know if it will be fast enough. Jul 11 23:05:40 Is an activity a window? Jul 11 23:06:45 I need somelayout advice... I have graphics and buttons that I want to stack on each other.. but I am running out of realestate. Is there a scrolling tableview I should be considering? Jul 11 23:07:13 IrishGringo: ListView? Jul 11 23:08:39 jjbrunton: hhm... these are buttons and images I want to stack. Jul 11 23:09:09 Ok? Why is that a problem? You can either use a ScrollView or a ListView Jul 11 23:10:57 I was asking for recommendations... prob is that I do iPHONE stuff normally... trying out android Jul 11 23:13:58 IrishGringo: ScrollView enables almost any view to be scrolled. Jul 11 23:14:32 You can lay out your elements in a LinearLayout or RelativeLayout, then wrap that in a ScrollView Jul 11 23:15:09 str4d: I will try that Jul 11 23:17:31 str4d: thanks... thats getting much closer... Jul 11 23:18:00 The nested element (LinearLayout or RelativeLayout) needs to have its height set to "wrap_content" so that ScrollView can handle scrolling Jul 11 23:19:54 Any NDK devs? Please help! Wasted 2 days now :( Jul 11 23:21:11 I have my lib that has ew functions defined as "extern void AppUpdate()", "extern void AppClose()"... in the lib. And in .cpp file that I use this lib on has the definition void AppUpdate() { ... } and stuff Jul 11 23:21:18 but I app crashesh with this : Jul 11 23:21:27 http://pastebin.com/AfdXNue0 Jul 11 23:21:38 for some reason, It can't link those two ? Jul 11 23:21:53 str4d: thanks... perfect suggestion.. Jul 11 23:22:15 next quedstion... I want the images to bleed to the edge of the screen... how to do that? Jul 11 23:22:22 Basically Lib has few functions declared as externs (); and .cpp file that includes this library has the definition void function () {} Jul 11 23:32:40 I am creating a background image for a relativelayout... what should the dimension be to handle all sizes? Jul 11 23:43:31 Hey. I have an IntentService whose object is being constructed/deconstructed every time it receives an intent. Am I doing it wrong, or should I be using something like SharedPreferences to persist state between intents? Jul 11 23:44:52 I think the latter is the correct approach and will go with it. Somebody ping me if I'm approaching this wrong :) Jul 11 23:48:46 WearableListView classdefnotfound :/ wut Jul 12 00:01:46 Hello. Does anyone know how to disable avatars inthe default messaging? Like, is there anything the equivalent of like a Windows registry, where I can just change a value or something? Jul 12 00:09:08 IrishGringo: it depends on the screen ratios. Jul 12 00:09:42 str4d: I made a Background for the largest size, and it seems to work for the smaller images as well... Jul 12 00:09:44 If you are creating a background that is mostly the same, look into ninepatches (commonly used to style buttons) Jul 12 00:09:44 not sure. Jul 12 00:10:49 (provides image parts for the sides, corners and middle, they get replicated across the element independent of its size) Jul 12 00:20:16 yes u did Jul 12 00:20:47 haha finally I got here Jul 12 00:21:05 Does anyone know how to set up the Android Source code with Eclipse Jul 12 00:22:20 has anyone used the Navgation editor in Android Studio... I just noticed it Jul 12 00:24:59 ok, I have this Java class that returns resources http://pastebin.com/6thnaLw8 Jul 12 00:25:22 How to convert it so it uses .getAssets() instead? Jul 12 00:25:38 so I simply can copy res/ directory into assets/ Jul 12 00:37:53 hello on most adnroid device’s when you use a webview with load_default and load a page up and then go into airplane mode and then call JS: window.location.reload(); it will load from the cache (this is not the case on Galaxy Note 3) … is there an obvious reason … to reload should i really be calling back via window.JSINTERFACE-> webview.loadUrl and reload the page that way? Jul 12 00:48:10 Hey, I'm trying use Google Game Services Api Client (for Android) and when I build the client using the GoogleApiClient.Builder and the connect with client.connect(), the onConnected callback listener is never called, so the client is never connecting... there is also no error/message in logcat or anything to help me debug Jul 12 00:48:12 Any advice? Jul 12 00:53:55 Say, how important is zooming for apps with text, photos and videos? Do you zoom often? Jul 12 00:54:36 Should I create a C++ or JAVA project for Android Source Jul 12 00:54:40 i wish my copy & paste auto zoomed, it's hard to get real accurate especially on a non monotype font Jul 12 00:54:42 frank_o: Jul 12 00:59:58 cool Jul 12 01:02:45 frank_o: YOU'RE cool. Jul 12 01:15:06 Man, there are some really ugly things Scala lets you do. Jul 12 01:17:37 mannatrar: thank you :) Jul 12 01:17:53 talk about a boost to the ol' ego Jul 12 01:20:12 frank_o: YOU'RE a boost Jul 12 01:23:19 wow Jul 12 01:23:24 quite the flirter we got here ;) Jul 12 01:23:48 too bad im a dude otherwise you'd probably get lucky Jul 12 01:32:24 Hey, I'm having an issue with the GoogleClientApi on android for leaderboards... when I create the client using the builder, and then use the client.connect() function, the onConnect callback never actually fires but there is no error in the console/logcat... any ideas? Jul 12 01:42:32 auxchar, really ugly? quit abusing operators Jul 12 01:44:09 I dont really need the top bar on most of my screens... how do I get rid of it? Jul 12 01:44:46 And is there no way to break a project up into sub projects... this app is going to get huge if I can not do sub dirs Jul 12 01:46:55 who says you can't have sub dirs Jul 12 01:47:15 for images, and separate projects... Jul 12 01:47:42 I cold not get it working for images, drawable-logos for example Jul 12 01:48:21 so wrong Jul 12 01:49:46 oooooo well then... I will try to get it working... Jul 12 01:50:32 drawable-logos is invalid... Jul 12 01:50:50 why do you even need multiple, how many images do you plan on having... Jul 12 01:51:07 you should consider using assets... Jul 12 02:26:36 pfn I have about 30 images Jul 12 02:26:45 perhaps more Jul 12 02:26:51 actually def more... Jul 12 02:26:52 wow, that's so many Jul 12 02:27:01 how can you manage them all Jul 12 02:27:07 * pfn boggles Jul 12 02:27:56 I did it in iOS... which is my normal gig... Jul 12 02:28:07 I am trying to clone this project in android Jul 12 02:28:17 but I can have sub dirs in xCode Jul 12 02:28:22 unless you have thousands, it is no big deal to manage Jul 12 02:29:03 ok... so I am getting my panties all messed up for nothing? Jul 12 02:29:36 could you recommend a way to organize them? Jul 12 02:30:26 name prefixes are commonly used Jul 12 02:30:35 eg. "ic_*" for icons Jul 12 02:31:23 yea... I am already doing that... or trying... problem is that I am getting images feeds from another source, and they are not that accomidating when renaming. Jul 12 02:32:09 I have asked to them to co-operate but they don't even speak english very well. Jul 12 02:33:24 there we go hi everyone. Jul 12 02:33:55 I need help setting up libgdx. I've got the setup.jar file on my computer and I downloaded the libgdx package. the next step is clicking build/launch? Do I then import into eclipse or is there something else I need to do after that? Jul 12 02:34:32 * RedEyedGirl is really itching to get started making games in libgdx even the simplest sprite bounce demo will do and knows how to program just needs the api to work for her. Jul 12 02:40:49 IrishGringo if you are getting images from another source, like they are rasterized from svg, come from another project, you could keep those separate and just have another res/ tree in your project (using gradle) Jul 12 02:41:13 they are png's Jul 12 02:41:22 thats fine Jul 12 02:42:15 g00s: this would help as I could probably just use the same fiels as my iPHONE project? Jul 12 02:42:36 is there something I can goolge to figure out how to do that? Jul 12 02:43:07 http://tools.android.com/tech-docs/new-build-system/user-guide Jul 12 02:43:18 see the section "Configuring the Structure" Jul 12 02:43:19 thanks Jul 12 02:43:29 main.resources.srcDirs = ['src/resources'], etc Jul 12 02:44:02 hm, i'm risty at this, when you use = it assigns new stuff, there is a way to append Jul 12 02:44:31 you obviously want to keep the default res/ tree, and append the res-generated/ tree Jul 12 02:45:01 oh yeah, it says right there Jul 12 02:45:15 >>> Note: srcDir will actually add the given folder to the existing list of source folders .... Jul 12 02:46:07 yeah i keep my generated stuff separate from pngs from the holo template, for example Jul 12 02:49:33 actualy... I have a more pressing issue... I want to set all the images to 300dp... not touch the height, but not change the aspect ratio Jul 12 02:50:14 whats the trick? Jul 12 02:52:50 on the google play developer console page. where you link an app. it says you can link a maximum of 20 applications in total. does that mean just for that game? or does it mean for all your games togethor? Jul 12 02:56:05 IrishGringo imagemagick preprocess in build ? Jul 12 02:56:23 sounds kinda clunky :) Jul 12 02:57:13 I want a teacher to teach me programming on android through the APIS. anyone willing to volunteer? prefrably just help me set stuff up and do sessions with me once a week/day or something so I can learn.. Jul 12 02:57:19 I have no idea about how to get libgdx up and running. Jul 12 02:59:02 g00s: there has got to be a better way.... there is nothing that keeps aspect ratio? Jul 12 02:59:36 imagemagic probably can **** ENDING LOGGING AT Sat Jul 12 02:59:58 2014