**** BEGIN LOGGING AT Fri May 31 02:59:58 2013 May 31 03:03:23 hi, can anyone help me with understanding how to retrieve data from an activity I called through an intent? I called a camera intent with startActivityForResult(). How do I get the picture it took? May 31 03:25:43 canadiancow are you around ? May 31 03:26:18 yea May 31 03:26:22 on a bus May 31 03:26:27 but yeah :P May 31 03:26:37 currently have my laptop out, plugged into my phone and tablet :P May 31 03:26:47 :) May 31 03:27:07 hey, do you know what this "android support repository" thing is in the sdk updater now ? May 31 03:27:27 its right above "android support library" May 31 03:28:39 oh weird, its a maven repository for gradle O.o May 31 03:29:40 "you dawg, we put a repository in your repository so you can gradle while you gradle" May 31 03:30:26 yeah May 31 03:30:28 read g+ :P May 31 03:30:37 i did ... May 31 03:31:26 "Additionally we have released 2 new SDK components: Android Support Repository, and Google Repository. These components are Maven repositories and the Gradle plugin automatically add them to your list of repositories. " May 31 03:31:40 ok, so this sounds like a local repository for maven May 31 03:32:10 whats weird is, why doesn't gradle just hit android maven repo directly May 31 03:33:06 it has something to do with signing or something May 31 03:33:12 one of the g+ posts explains it May 31 03:34:02 ok, thx May 31 03:37:07 hey guys. For some reason, my Android Studio doesn't seem to be using breakpoints anymore May 31 03:37:12 I seem to recall doing it just fine May 31 03:37:36 installed virtualvm...think that might be related? I see "Connected to the target VM: address: 'localhost:8600', transport: 'socket'" May 31 03:37:45 even though it brought up the app on my connected device May 31 03:37:46 (not a vm) May 31 03:40:37 ProgramMax dunno, make sure you have the latest AS (0.1.2) or something May 31 03:41:10 when I click the "Connect debugger to Android Process" button it sees my device, running my app...I select it and press OK, May 31 03:41:32 Error running Android Debugger (8601): Unable to open debugger port: java.io.IOException "handshake failed - connection prematurely closed" May 31 03:50:42 no luck googling :( May 31 03:55:49 omg...sorry....feeling like an idiot May 31 03:55:53 I was putting breakpoints in the wrong file May 31 04:42:50 I'm trying to change current Fragment with another in Viewpager Tab May 31 04:43:34 but nothing happens it removes the current fragment but the new one is not appears May 31 05:00:37 anyone in here use command line instead of eclipse? May 31 05:06:46 s3b`, yes May 31 05:07:33 Ologn: how's the workflow? any major set-backs? May 31 05:08:05 i think the only real thing that crosses my mind is not being able to see the layout right after editing the xml May 31 05:09:20 Most of the time I'm not doing new XML layout May 31 05:10:40 My workflow is fine...but I've been using Unix for 25 years so I'm used to it May 31 05:12:54 cat /web/sites/website/logs/access.log|egrep -e '14/May|15/May|16/May|17/May|18/May'|grep cgi|grep -v nagios|awk '{print $1,$7}'| sed 's/\/cgi-bin\/my.cgi?l=en\&q=//'|sed 's/+/ /g' |grep -v ^1.2.3|sort|uniq|sed -r 's/(\b[0-9]{1,3}\.){3}[0-9]{1,3}\b'//|cut -c 2-|sort|uniq -c|sort -nr|less May 31 05:13:05 Writing stuff like that is second nature to me May 31 05:13:27 hahaha ;p May 31 05:13:50 I just don't like eclipse, and I've been doing a lot of scala lately which is easier to compile through terminal May 31 05:13:59 Admittedly that last sed I had to go on the web to remember how to do May 31 05:14:13 what is that, regex? May 31 05:14:18 yes May 31 05:14:33 i can never get it right the first 5 times May 31 05:14:44 s3b`, well Android and everyone hates Eclipse...so they began pushing Android Studio in the past few weeks May 31 05:15:44 I guess Eclipse was good when I was just learning Android...but it is more of a hindrance now...I haven't opened Eclipse in weeks May 31 05:15:58 And I deal with over a dozen different apps May 31 05:16:54 The regex isn't even that good...if i knew it better I could scrunch that 14/May...18/May thing together I'm sure May 31 05:17:03 But it's just faster for me to do it the long way May 31 05:18:56 I would like to do more functional programming...I was working through SICP earlier this year...I'd like to learn Scheme decently, then maybe do some scripts and/or web stuff with it...I don't have the time though May 31 05:20:45 My scripts are currently mostly Perl...if I do a website in the near future it will probably be a mixture of Perl and PHP... May 31 05:21:25 hi people May 31 05:25:04 I am beginning to have the same reaction to Javascript on a web page as I used to to a blink tag or animated gif May 31 05:49:36 Need help importing a library project into Android Studio May 31 06:03:01 basilisk: is it a .jar? May 31 06:03:21 Jc_Dev: an android library project May 31 06:03:43 try this? http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio May 31 06:04:13 looks like its: File -> Project Structure -> Modules May 31 06:04:33 tried that. says there's no UI support for gradle projects May 31 06:05:07 have you tried adding it to your gradle file manually? May 31 06:05:46 shouldn't the library project be a gradle project for that? May 31 06:06:48 I want to integrate this project, https://github.com/playgameservices/android-samples/tree/master/BaseGameUtils May 31 06:07:38 ok let me try it - i've only done .jar files and .so files so far, haven't tried a module May 31 06:07:57 if I select "import project", it creates a new module and opens it in a new window. it should be imported into the same module May 31 06:08:36 how about "import module" May 31 06:09:08 did not try that May 31 06:10:03 it needs .iml / pom.xml / .gradle files at root May 31 06:11:12 ok May 31 06:11:26 i made a new project i'm just grabbing source now May 31 06:12:07 Jc_Dev: this seems to be the way to go http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup May 31 06:13:30 ok cool that's exactly what i was going to try, i'll see if it works - i was going to pull it down inside the existing project and then add that compile line to dependencies manually May 31 06:15:21 basilisk: btw looks like you'll need to also grab BaseGameUtils according to readme May 31 06:15:58 thats the one I am trying to add May 31 06:16:03 oh ok lol May 31 06:16:27 did you mean the google play services library project? May 31 06:16:50 no i just didn't realize that was the one you wanted, i had navigated upwards and lost track May 31 06:17:04 ok git clone is done, let's try updating gradle.build... May 31 06:17:12 awesome May 31 06:19:19 can real-time multiplayer only do 4 players? May 31 06:19:58 canadiancow: there was no such mention in the talk May 31 06:20:22 i must have a "4" hardcoded somewhere from the sample app then May 31 06:21:55 i thought it was written in the blog that so far maximum was 4 May 31 06:22:00 and that itll be expanding later? May 31 06:23:10 hmm i dont see a reference to that maximum May 31 06:23:16 http://googledevelopers.blogspot.com.au/2013/05/introducing-google-play-game-services.html May 31 06:23:22 last bullet point May 31 06:23:37 argh May 31 06:23:44 i finally finished getting my game working May 31 06:23:44 you are right. I must have missed it May 31 06:23:51 or at least the first part of it that makes it useful May 31 06:23:56 but my game requires at least 5 people ~_~ May 31 06:24:28 sorry to burt your bubble :) May 31 06:27:16 canadiancow: what game is that ? May 31 06:27:31 it's a replacement app for the board and cards of a board game May 31 06:27:42 so instead of needing the physical game, i can use one tablet and 5+ devices May 31 06:27:49 oh shit that means i need at least 6 players May 31 06:27:49 ~_~ May 31 06:28:03 its not a game i plan to release or anything May 31 06:28:12 but a efw of us play it at work a lot May 31 06:28:52 ask google to change it :) May 31 06:29:02 oh believe me May 31 06:29:03 i will May 31 06:29:04 :P May 31 06:29:22 it looks like it's part of the google play services apk that's blocking it May 31 06:29:33 the fact that you are a canadian cow will definitely motivate them to work harder May 31 06:29:56 um May 31 06:31:00 i think the newest sdk updater should change installed icon from red checkmark to green. red implies error or action required. May 31 06:31:05 they used to be green May 31 06:31:11 once they find out that his game might make the workers work less and play more :) i don't tink they would approve of it hehe May 31 06:31:30 basilisk: i'm getting close, hang tight :) May 31 06:31:36 Solupus lol May 31 06:31:45 Jc_Dev: I appreciate it May 31 06:32:20 wait g00s red? May 31 06:32:21 where May 31 06:32:54 the command line sdk updater. when i start it, all my installed stuff has red checkmarks May 31 06:33:00 oh wow May 31 06:33:01 thats new May 31 06:33:05 (i just updated) May 31 06:33:27 if its out of date it should be red or yellow or something. installed stuff should be green checkmarks maybe May 31 06:34:18 should be yellow, red implies error. but ive never seen errors occur in sdk manager. May 31 06:34:23 well nvmd May 31 06:36:16 * g00s checks if iosched 2013 code was dropped .. nope :/ May 31 06:39:29 interesting that Tim Cook mentioned on all things D they would open up more APIs on the iPhone May 31 06:41:19 he also seemed open to porting stuff to Android May 31 06:41:34 much different tone than Jobs May 31 06:48:32 g00s: it was that or face a slide down into oblivion, I guess :) May 31 06:49:02 they are doing fine May 31 06:51:50 for now, yes May 31 06:52:04 the iPhone 5 already evoked quite a bit of whining about a lack of progress May 31 06:52:09 iOS 7 better be good :) May 31 06:52:56 it's always been the same crap May 31 06:52:57 yeh, yeah. every time a new iOS release come out, most of the talk is about new features added to built-in-app-x; hard to find stuff that changes at the system level May 31 06:53:39 i like what google is doing, they seem to be separating their updates into OS / Services / Apps May 31 06:53:58 but they need to be able to update OS better … still … not hopeful May 31 06:54:56 I wish they would stop updating May 31 06:55:22 too many updates May 31 06:55:36 they need updates for security May 31 06:55:48 i hope the play services updates get rolled into asop May 31 06:56:14 here is some irony http://www.h-online.com/security/news/item/Google-cuts-grace-period-for-vendors-of-vulnerable-software-1873878.html May 31 06:56:27 lets see if any android oem can patch their shit in 7 days XD May 31 06:56:32 i'd like anything i write that uses GPS/geofences or push notifications to work on devices without play May 31 06:56:54 basilisk: ok got it May 31 06:57:01 awesome May 31 06:57:05 how do I do it May 31 06:57:35 ok, so that lib requires the google play services, have you installed that via SDK manager? May 31 06:57:46 alex_PP wasn't geofencing outside play services ? May 31 06:57:49 yes May 31 06:57:53 did something change there ? May 31 06:58:03 there's proximity alerts May 31 06:58:11 but they aren't well regarded May 31 06:58:24 basilisk: ok, i'm not sure if there's a better way to reference it, but i just copied the jar into my project's libs folder, go ahead and do that, and then right-click on it in android studio -> add as library May 31 06:58:30 all the new location stuff is nice May 31 06:58:44 and i'd like to use it wothout having to write eveything twice May 31 06:58:54 i wonder if any of that gets sent back to google May 31 06:59:05 should I copy the play services jar into my main project? May 31 06:59:36 basilisk: i put mine under MyProject\BaseGameUtils\libs May 31 06:59:46 alright May 31 07:00:20 if you need it elsewhere, probably more efficient to put it higher up, then you'd just have to modify how you reference in the build.gradle - just do it this way for now so it matches my config May 31 07:00:56 done May 31 07:01:14 ok, next is to add the two dependencies to the build.gradle that the BaseGameUtils needs May 31 07:01:34 Android Studio will automatically add a build.gradle under BaseGameUtils, open this up and let me know when you're there May 31 07:02:21 hang on, I have not yet imported the code from BaseGameUtils into my project May 31 07:02:26 in my case, i imported BaseGameUtils using Import -> existing android source code May 31 07:02:36 and i put it under MyProject\libraries May 31 07:03:23 hackkitten one thing for sure, Windows RT seems DOA May 31 07:03:37 actually that might not be the menu option i used, let me think, i might have just copied the folder in there manually actually May 31 07:03:50 HTC aborted their plans for a full size RT tablet May 31 07:04:20 probably doesn't matter, bay trail looks like it should be very nice May 31 07:04:22 MS will never stop competing though May 31 07:04:31 i think the next samsung galaxy tab is using it May 31 07:04:34 basilisk: yeah i think i just copied the BaseGameUtils folder under my project here: MyProject\libraries\BaseGameUtils May 31 07:05:15 Jc_Dev: copying it now May 31 07:05:27 MS will wait for Android or iPhone to win and then buy them out heh ;) May 31 07:06:10 basilisk: do you also have your actual application under your project kind of like this: MyProject\MyApplication ? May 31 07:06:19 yes May 31 07:06:26 shmooz i think that it is good that MS is still competing. did you see https://bugs.launchpad.net/ubuntu/+bug/1/comments/1834 May 31 07:06:28 k May 31 07:06:59 "the Microsoft IAAS team are both technically excellent and very focused on having ALL OS's including Linux guests like Ubuntu run extremely well on Azure," , i thought that was an interesting quote May 31 07:07:09 basilisk: once you see the project in the Project window of Android Studio, the first time you expand into it you should get the build.gradle under BaseGameUtils generated for you, let me know when you're there May 31 07:07:10 g00s: Windows RT was really poorly executed May 31 07:07:21 it did not generate a build.gradle for me May 31 07:07:33 basilisk: click around in the project, like expand libs May 31 07:07:34 should I just create my own? May 31 07:07:37 Microsoft isn't the type to give up, though :) May 31 07:07:45 and they're less ADD-afflicted than Google May 31 07:07:56 basilisk: see if you can get it to auto-create, there's a couple files it makes May 31 07:08:12 let me delete it and copy it again May 31 07:08:19 basilisk: oh i know May 31 07:08:24 don't worry about deleting it May 31 07:08:28 ok May 31 07:08:30 i'm amazed at how much energy MS has put into things and hasn't gotten very far. i think the satisfaction levels for Windows 8 was around Vista ? May 31 07:08:32 we need to add it to settings.gradle first May 31 07:08:38 ah alright May 31 07:08:59 make it look something like this: include ':MyApplication', ':libraries:BaseGameUtils' May 31 07:09:24 do I rebuild the project? May 31 07:09:42 basilisk: you can try yeah, play with it and see if you can get it to auto-generate the build.gradle May 31 07:09:51 g00s: when MS embraces other stuff, its usually to swallow them May 31 07:09:52 basilisk: i remember clicknig into it and it just suddenely added it May 31 07:10:09 worst case we can add it manually May 31 07:10:55 not building May 31 07:11:07 no it won't yet May 31 07:11:10 this is in my settings.gradle, include ':GradleStart', ':libraries:BaseGameUtils' May 31 07:11:25 looks good May 31 07:11:28 let's add the next part May 31 07:11:36 in GradleStart\build.gradle May 31 07:11:50 there is a dependencies section, add this: compile project(':libraries:BaseGameUtils') May 31 07:12:13 done May 31 07:12:36 expand BaseGameUtils libs folder, did it autogenerate build.gradle under there yet? May 31 07:12:47 maybe try another Make May 31 07:12:54 (it won't succeed yet though) May 31 07:12:56 I'm trying to change current Fragment with another in Viewpager Tab but nothing happens it removes the current fragment but the new one is not appears May 31 07:13:07 didn't May 31 07:13:14 basilisk: ah ok, just make it then May 31 07:13:14 can any one advice me in this regard May 31 07:13:34 basilisk: also add in the google-play-services.jar under BaseGameUtils\libs May 31 07:13:46 its there May 31 07:13:58 and right-click -> Add as Library? May 31 07:14:00 actually Gradle build failed May 31 07:14:15 yeah it won't pass yet, we need one more piece May 31 07:14:27 it says, "Configuration with name 'default' not found" May 31 07:15:02 yeah it's ok i got that too May 31 07:15:13 it's because we don't have a build.gradle for BaseGameUtils May 31 07:15:27 so I just create a build.gradle in BaseGameUtils? May 31 07:15:50 make one and paste in this: http://pastebin.com/e4mku0h2 May 31 07:16:29 in theory it will compile now May 31 07:16:39 oh one more thing May 31 07:16:58 i think you need a third item in your settings.gradle: ':google-play-services_lib' May 31 07:17:04 not 100% sure though if it's really needed May 31 07:17:12 yeah I changed it to lib May 31 07:17:19 compiled successfully! May 31 07:17:28 yay May 31 07:17:50 I did not find an option to add as library though? May 31 07:18:19 right-click on the jar? yeah it only showed up the first time for me, not 100% sure if it was necessary but i clicked it anyways May 31 07:18:41 ah got it. May 31 07:19:14 I still can't import GameHelper class in my project, does it need something else? May 31 07:19:31 Cafzalone: make sure you are creating your fragments and returning them in getItem, don't try and cache them or anything May 31 07:19:40 basilisk: what's GameHelper May 31 07:19:51 its a class in BaseGameUtils May 31 07:19:58 ah May 31 07:20:19 in your app you added a dependency to BaseGameUtils in build.gradle? May 31 07:20:28 yes May 31 07:20:38 yea i do, what i need is Ive list inside a fragment when I click on any list Item, the whole fragment should be replaced by new one May 31 07:20:41 compile project(':libraries:BaseGameUtils') May 31 07:20:54 basilisk: ok good, let me see if it references correctly in mine May 31 07:21:33 i guess i'm going to have to figure out gradle for real :/ now i'm messing with cmake, all these damn build systems ! May 31 07:22:06 the talk on gradle was quite impressive May 31 07:22:09 hehe, yeah, gradle is apparently what google wants us to use May 31 07:23:05 Jc_Dev: shouldn't we use apply plugin: 'android-library' for BaseGameUtils? May 31 07:23:09 Cafzalone: are you talking about a master/detail scenario? you click an item and you show details? you should probably display the detail fragment in a new activity wrapper instead of trying to replace the list May 31 07:24:01 basilisk: maybe... Android Studio build that one for me, i'm not actually familiar with how to do project references and such, i'm looking it up May 31 07:24:04 Jc_Dev> thank you, That is how I am doing now, is that impossible to change same fragment dynamically May 31 07:25:04 Cafzalone: no i think it should be possible, i haven't tried it - in theory the list item click would communicate via a Callback to the hosting activity which would then do the work of replacing the view content May 31 07:25:05 it broke the project when I changed it May 31 07:25:37 Jc_Dev> can I have a sample code if possible. May 31 07:26:55 Cafzalone: keep in mind, you can support tablets better if you don't replace it - you would make a tablet layout that would show the master and detail side-by-side, in fact, if you use eclipse and target 11 or higher, there's a master/detail template it will build for you, that's how i did it May 31 07:27:50 k May 31 07:28:11 it also contains an example of the Callback mechanism i referred to, it's a good pattern to follow, then it looks nice on both phones and tablets May 31 07:28:35 alright taking a look at project reference now May 31 07:28:36 Jc_Dev> i will stick on that, thanks alot : May 31 07:28:38 :) May 31 07:28:42 Cafzalone: you bet :) May 31 07:30:07 Cafzalone: this is the wizard to look for in the UI: http://tuts-authors.s3.amazonaws.com/mobile.tutsplus.com/Shane%20Conder%20and%20Lauren%20Darcey/2012/09/25/Android-Creating-Hello-Worlds_pick-activity-type-master-detail-flow.png May 31 07:30:24 is there some guide to migrate project from ant to gradle? May 31 07:31:24 Pitel_IPEX: so far i really just saw specific questions about it on stackoverflow and whatnot, your best bet is probably to get familiar with gradle by making a new project in Android Studio before you attempt a conversion May 31 07:36:20 Jc_Dev: are you able to reference the library project classes in your main project? May 31 07:36:37 no, i'm looking into what is missing May 31 07:36:48 probably something basic May 31 07:37:06 seems likely May 31 07:39:19 Jc_Dev: what does your outer build.gradle looks like? mine's empty May 31 07:39:31 same May 31 07:40:36 hmmm how the heck do you tell a project you're referencing another one... May 31 07:43:25 ok i think the missing piece is BaseGameUtils needs to be a module May 31 07:43:49 maybe... trying something May 31 07:43:59 right click -> make module? May 31 07:44:29 i think that's like "build" May 31 07:45:01 ah alright May 31 07:50:46 Jc_Dev: the IDE shows the classes in my main project as class files (the icon art with the name in the project structure), whereas it shows them as java files in the library project May 31 07:52:06 yeah i'm thinking our way of copying the BaseGameUtils directly into the projcet is what is giving us trouble May 31 07:52:19 i think we should have somehow added it as a module May 31 07:52:29 Working on a visual diagraming tool to help kids write android apps. The diagrams populate a data structure that I compile to java. Thoughts? https://vimeo.com/67369137 May 31 07:58:39 basilisk: GOT IT May 31 07:58:58 how do we do it May 31 07:59:25 ok so move the BaseGameUtils out of the project directory, move it to like a temp dir somewhere, also delete the libraries folder May 31 08:00:16 done May 31 08:00:17 next: right-click your root node in Project and go New -> Module and name it BaseGameUtils May 31 08:00:47 should I remove the relevant parts from the settings.gradle file? May 31 08:00:55 no May 31 08:01:03 because it created an empty BaseGameUtils on its own May 31 08:01:09 it's ok May 31 08:01:10 with just he BaseGameUtils.iml file May 31 08:01:11 alright May 31 08:01:24 next: copy the contents of the BaseGameUtils that is in temp (not the directory BaseGameUtils, just the insides) and paste it into the folder that Android Studio made May 31 08:01:30 go ahead and let it overwrite anything May 31 08:02:36 now modify settings.gradle to include ':BaseGameUtils' instead of ':libraries:BaseGameUtils' May 31 08:02:45 seems like I'll have to remove it from the settings file, it says "module BaseGameUtils already exists" May 31 08:03:16 what action where you performing when it said it already exists? May 31 08:03:46 go ahead if it makes it happy though May 31 08:03:53 new module May 31 08:05:06 the idea is to add a new blank module and then go to the file system and paste in the contents May 31 08:05:19 then there's just a couple tweaks left, let me know when you're there May 31 08:06:14 done May 31 08:06:28 I see the files are displayed as class files now May 31 08:06:31 1. make sure settings.gradle references ':BaseGameUtils', and same with MyApplication\build.gradle May 31 08:06:38 excellent May 31 08:06:49 and now the important part - this is how you make a project reference another one: May 31 08:07:01 done May 31 08:07:07 File -> Project Structure -> Modules May 31 08:07:27 click on the name of your application (e.g. MyApplication) and then select the Dependencies tab May 31 08:07:39 then click the green plus at far right, select Module, pick BaseGameUtils May 31 08:07:42 that's it! May 31 08:07:51 but it won't show me the project structures dialog May 31 08:08:03 click OK and it should pop up May 31 08:08:16 nope May 31 08:08:22 what OS are you? May 31 08:08:40 mac May 31 08:08:41 <[A3G1S]> hey guys, Is it possible to record a video with overlay in android ? May 31 08:09:01 oh ok, well we'll have to manually edit the root iml file then - you see it? May 31 08:09:08 yes May 31 08:09:35 <[A3G1S]> https://play.google.com/store/apps/details?id=com.androidillusion.videocamillusion&hl=en <-- I can see this app is doing it May 31 08:09:47 [A3G1S]: probably, i've seen overlays put on top of QR code scanners, check out some of the example usages of the ZBar library May 31 08:09:47 <[A3G1S]> i just have no idea how can i do it May 31 08:10:18 <[A3G1S]> well i can put overlays, i wanna record video with transparent overlay May 31 08:10:52 basilisk: see if you can figure out what you need to change based on mine: http://pastebin.com/5AQAKU4h May 31 08:11:30 [A3G1S]: your best bet is to find an open source project that does it and see how they do it - i don't know myself May 31 08:11:55 <[A3G1S]> Jc_Dev i am trying to do this from 2 days now... May 31 08:11:59 <[A3G1S]> found nothing on it May 31 08:12:19 [A3G1S]: so you can put on an overlay, and you can record video, but the recorded video doesn't show the overlay? May 31 08:12:26 <[A3G1S]> yes May 31 08:13:18 [A3G1S]: have you seen this? http://stackoverflow.com/questions/15471086/android-add-color-overlay-effects-on-video-during-capture-of-video May 31 08:15:23 basilisk: you know, i'm not convinced that file has that configuration in it, one sec let me look for another one May 31 08:15:54 it does have the needed settings for BaseGameUtils project May 31 08:16:01 hi all :). Can I Monitor Significant Changes in Battery Level declaring a receiver into AndroidManifest.xml and setup a receiver broadcast into code, without register the receiver in my activity? May 31 08:16:02 Manual says yes, but I can't implement it with success May 31 08:20:12 basilisk: i think you can just freely add the code, the UI won't be aware of it, but gradle is and so it will compile May 31 08:20:27 basilisk: apparently google is adding that dialog in the next build of AS May 31 08:20:47 I have cleared the directory, starting from scratch May 31 08:21:29 basilisk: ok - the reason i'm able to use the UI to add that dependancy is because i'm running 0.1.0, i haven't let it update me to 0.1.1 where they've removed it because it was confusing ppl because it wasn't automatically updating the build.gradle files May 31 08:22:01 so we have the build.gradle stuff working fine, it's just the IDE that doesn't realize the dependancy and so intellisense isn't working for that lib, but you can still code against it i'm pretty sure May 31 08:22:07 well they did promise weekly releases, so I might just wait for a while May 31 08:22:45 fair enough - good luck, i'm calling it a night May 31 08:23:13 thanks a lot Jc_Dev May 31 08:23:19 can I buy you a beer? May 31 08:23:36 hehe you bet, next time you're in canada :) May 31 08:23:59 definitely May 31 08:24:13 (might be a while though) May 31 08:25:01 :) May 31 09:19:40 What in default "onCreate" does ? May 31 09:19:48 I mean why we need to Super.onCreate(withMyBundle); May 31 09:19:58 Does anyone has succeeded to run test in Android Studio ? (using Gradle) May 31 09:20:29 bluesm: It manages Loaders, Fragments, etc. May 31 09:20:42 hello, anyone can lend a hand regarding how to detect USB and WIFI tethering state of the phone? Seems like people generally uses reflection to manipulate the settings prior to ICS. Are there any equivalent ways to do the same in 4.0+ devices? any help is appreciated May 31 09:46:53 Hi all, is it normal that default android app template in eclipse does not build? The R.java is not generating... I have not touched anithyng so xml files should be fine. Also I have not imported any new resources so names should not be the problem May 31 09:48:45 jaan: did you clean ? May 31 09:51:14 shmooz: Yes, it makes no difference.. I am using lastest android SDK and eclipse 3.8.1 on ubuntu 13.04 May 31 09:51:52 jaan, no, its not normal. Usually the console says why R generation failed :) May 31 09:52:56 Mavrik: the console tells me nothing at all.. I get a pop up error "Your code contains errors. Please fix them before running your application". I have been on this for hours.. May 31 09:53:49 jaan: is not showing any red indicators where the errors are ? May 31 09:54:02 that happens often, its very lame May 31 09:54:18 or you may get "there is an error in a xml file" May 31 09:54:28 yes, these two lines. setContentView(R.layout.activity_main); and getMenuInflater().inflate(R.menu.main, menu); May 31 09:54:57 make sure you are importing the correct R May 31 09:55:03 not android.R May 31 09:55:06 jaan: when you hover your mouse over the line with errors it should pop up more info May 31 09:57:01 hovering the mouse over the error icon tells me "R cannot be resolved as a variable". I am not importing android.R. I can't find any imports related to R at all May 31 10:00:40 well I bet you got a typo somewhere May 31 10:01:27 thing is.. I didn't touch anithyng. It is the default android app project, generated using this guide http://developer.android.com/training/basics/firstapp/creating-project.html May 31 10:05:16 jaan: in eclipse goto Project -> Properties -> Android and make sure at least one of those android Build Target is selected May 31 10:06:14 shmooz: yes, Android 4.2.2 is selected s a target May 31 10:12:10 Why when onCreate is triggerd first time, and in onCreate is myEditText.setText("my stupid message") . and to myEditText is assigned TextWatcher. methods of TextWatcher will be triggered by rotating screen, but not by the first run of the app, (first onCreate call) May 31 10:12:55 TextWatcher is not triggered by the run of the app, but is triggered by rotating. May 31 10:14:57 hello May 31 10:15:08 i have a big problem regarding a dialog view May 31 10:15:12 ho can help me? May 31 10:15:28 actually an alert dialog May 31 10:16:50 i have an alertdialog with an dynamic listview May 31 10:17:14 hi, I want to change the theme of my app to holo May 31 10:17:39 in styles.xml, I have set AppBaseTheme parent to be android:Theme.Holo May 31 10:17:41 the problem is that the alertdialog is resizeing itself when list view adds or remove elements and i want to avoid this. how i can di that? May 31 10:17:49 is there anything else I need to do? May 31 10:17:51 I still get a white theme May 31 10:17:55 instead of the dark holo theme May 31 10:18:31 hi. May 31 10:19:01 some of me text boxes are not in center of screen in some activity. how can i solve this? May 31 10:19:03 help May 31 10:19:27 IS A ANDROID DEV GURU ON HERE OR NOT? May 31 10:19:48 ?? May 31 10:21:28 moctavianrowho: AN android dev.. also your caps lock got stuck May 31 10:22:47 no, they didn't May 31 10:23:19 can anybody help me in order to make an alert dialog with dynamic content unresizeble? May 31 10:23:40 eruditehermit, you need to set the theme to your theme in AndroidManifest.xml May 31 10:23:52 eruditehermit, either in application tag (for whole app) or on per-activity basis May 31 10:24:10 Mavrik, in my manifest it points to styles.xml I think? May 31 10:24:37 Mavrik, android:theme="@style/AppTheme" > is in the Manifest May 31 10:25:57 then it should work May 31 10:26:06 some of me text boxes are not in center of screen in some activity. how can i solve this? May 31 10:26:10 is your build target >14 and are you testing on an Android 15+ device? May 31 10:26:27 also hate to bumb but, does the default app project in eclipse usually build? Is there something wrong with my version of eclipse? could you at last point me in the right direction.. what should I look into? May 31 10:26:57 WTF about lost ratings and +1 in the dev console. Anyone noticed that ? May 31 10:27:01 jaan, yes, probably yes… try killing the whole workspace, updating SDK with SDK manager and recreating the project May 31 10:27:29 Mavrik, ok so it worked when I set AppTheme to android:Holo.Theme May 31 10:27:42 Mavrik, previously it was set to parent from AppThemeBase May 31 10:27:49 which was set to android:Holo.Theme May 31 10:27:58 so it didn't inherit properly? May 31 10:28:16 AlertDialog with fixed height? knows anybody? May 31 10:28:41 eruditehermit, remember, default configuration is configured so inheritance only works on 14+ May 31 10:29:05 Mavrik, I am using 17 May 31 10:29:09 also, the compiler sometimes tends to be too "smart" according to your build target, thatćs documented in tools doc May 31 10:31:00 Mavrik, is there a good tool to design layouts? May 31 10:31:09 the one who resolve my problem will have a beer! May 31 10:32:43 Mavrik: I have just recreated the project and it works.. it appears the project was created before the last sdk update.. thanks! :) May 31 10:33:23 Not possible to unlock device with wifi locations in 4.2? May 31 10:36:23 Thanks Mavrik btw May 31 10:39:49 Hi, if I have an arrayList of treemaps, and I want to find a count of a certain value in the treemap, whats the easiest way to do so May 31 10:46:21 can key.store in ant.properties be relative? May 31 10:48:49 apparently yes May 31 11:00:59 i have a class/method to check for network connectivity and alert the user if not connected. i wanna how can i make my alert look like the facebook or google+ app alert and not a dialougbox or toast? May 31 11:03:51 is android guru around here or i m loosing my time? May 31 11:04:37 some of me text boxes are not in center of screen in some activity with relative layou. how can i solve this? May 31 11:07:08 Jc_Dev: Android Studio 0.1.2 is available, and it allows opening the project structure dialog again :D May 31 11:16:01 i have a class/method to check for network connectivity and alert the user if not connected. i wanna how can i make my alert look like the facebook or google+ app alert and not a dialougbox or toast? May 31 11:34:33 I just read the most ridiculous article ever and thought I would share May 31 11:34:36 http://blogs.computerworld.com/malware-and-vulnerabilities/22259/music-playing-55-feet-away-could-covertly-activate-android-mobile-malware May 31 11:37:36 android apps are capable of a lot... so if you install a malware app, then you have installed malware that is capable of a lot... why can't they just leave it at that instead of trying so hard to obviously scare old people? May 31 11:37:54 it May 31 11:38:03 's like they want people to think theyw ill get a virus from sound May 31 11:38:20 May 31 11:38:53 its not actually wrong May 31 11:39:01 just very misleading May 31 11:39:39 right May 31 11:39:44 you can activate it from a kilometer with a wifi router, or ten meters magnetically, or ... May 31 11:40:01 yeah, the guys she is quoting are innovative. it's a good proof of concept. May 31 11:40:18 I'm using picasso to load pictures in a listview, but they're getting weird, like loading out of place... May 31 11:40:27 but it's sensationalist reporting May 31 11:40:31 Does it have something to do with the context? May 31 11:40:34 of course, the fun part arises when you realise that there is no code review of even popular apps May 31 11:41:01 well, the app would need permission to use your microphone May 31 11:41:07 sure May 31 11:41:19 so the people at risk are ones installing stupid push to talk type apps May 31 11:41:21 so you make a nice, free audio recorder app May 31 11:41:24 yeah that too May 31 11:41:30 or a voice changer May 31 11:41:45 or a time lapse photo recorder May 31 11:41:55 or a guitar tuner May 31 11:41:58 ... May 31 11:43:10 hmm, I wonder if any of the android security apps notify/log microphone use May 31 11:44:27 I guess if it is only going to do the attack once worldwide, it would be too late ;) May 31 11:44:53 btw, what is the best way to instrument and analyze an android app you don't have the sources for? I'm interested in the servers contacted, SD card access, etc May 31 11:45:00 consider if the author of es file manager went rogue May 31 11:46:11 OK, but I'd just like to point out that there are way more people installing windows malware, and that none of our financial institutions are running on android, and yet no one is blowing the windows trumpet every 5 seconds May 31 11:46:14 because it's an old story May 31 11:46:27 they are just rehashing the same obvious stuff because its a new platform May 31 11:48:02 There is no other way to get time from chronometer other that convert value to string ? timeWaitingChronometer.getText().toString(); May 31 11:49:54 root66: true May 31 11:50:28 I'm having a really weird issue trying to utilize android.hardware.Camera. I have this fragment-class: http://pastebin.com/4PGVSycY and call Pause and ResumeCamera on the Actitivy's onPause and onResume respectively May 31 11:51:04 Haikarainen: first make sure your code in onPause and onResume is fully firing. throw some logs in there May 31 11:51:08 I've run into a really strange problem. If I have my app click a button (using Button.PerformClick) it causes my TextEdit to become single-line instead of multiline. But, if I click that same button manually, everything's fine. May 31 11:51:10 Thing is, first time I open the camera, no problem .Then when it pauses, it's like mIsCameraOpen is still false, so it doesnt try to pause it. Then it tries to reopene it but its already locked. and I get a heap of issues. May 31 11:51:12 beyond that I probably can't help you May 31 11:51:39 but I have run into that a lot on accident May 31 11:51:44 root66, But I cant see what would stop it from firing everything ? May 31 11:52:09 unless uncaught exceptions and manual return statements, but I dont get that May 31 11:52:13 if you don't do everything by the book, the camera will give you trouble May 31 11:52:18 hi. i have editText2 in my xml. but (R.id.editText2) in .java gives error! help please May 31 11:52:19 thats why almost every 5 star camera app still crashes May 31 11:52:33 Huh, interesting notes. Might it be that I skip the parameter checks? May 31 11:52:47 Guess this is a threading issue May 31 11:54:44 help May 31 11:57:35 if I have an arrayList of treemaps, and I want to find a count of a certain value in the treemap, whats the easiest way to do so May 31 12:01:57 Hi, I have a dialogfragment with an editText in it. How can I change the text of the editText in the activity where I start the dialog? http://pastebin.com/DNNy9L1t May 31 12:03:32 root66, I added loads of logs, https://gist.github.com/haikarainen/5edbb4a34e01e40a00f5 I highly doubt some android sdk-related issue would cause this behaviour, it's like my booleans go haywire somewhere in the process! Although at the same time my camera doesnt send pictures to my SurfaceView after its first opened so I have no idea. May 31 12:03:34 Please help May 31 12:05:52 hi. i have editText2 in my xml. but (R.id.editText2) in .java gives error! help please May 31 12:06:42 pastebin xml May 31 12:08:47 Abhijit: clean and rebuild the project May 31 12:09:15 Haikarainen: do you really want/need to close and reopen the camera when you tilt it? May 31 12:09:18 I've randomly just got 5 cancelled orders from Google Wallet, is there any way to find out whats going on? May 31 12:09:27 I honestly dont know if that is standard protocol May 31 12:09:29 then it asks to import R and other stuff Ankhwatcher May 31 12:09:31 I'm really concerned about this May 31 12:10:18 Abhijit: import? it should rebuild R with the R.id.editText2 listed, you might try closing and re-opening the project, or eclipse May 31 12:10:27 ok May 31 12:10:35 if it could be avoided, I would avoid it just for the sake of responsiveness May 31 12:10:52 root66, no but when Activity calls onPause and onResume, which seems to happen when I tilt it May 31 12:11:02 yeah but you can override that behavior May 31 12:11:13 How? May 31 12:11:16 brb May 31 12:11:20 "why does my app restart when I tilt my phone?" is the first question everyone usually asks May 31 12:11:24 Could it be the same person by mistake? May 31 12:11:26 look on google May 31 12:11:54 I notice all the emails are within a 5 minute window? May 31 12:12:10 cool May 31 12:12:10 youa lso need to handle hardware keyboards sliding out (it will cause the same behavior) May 31 12:12:47 Haikarainen: http://stackoverflow.com/questions/10499998/prevent-app-from-restarting-during-orientation-change May 31 12:13:20 ah ok yes May 31 12:13:26 they are all the same person lol May 31 12:13:39 Haikarainen: then if you need to handle things on orientation change, override onConfigurationChanged May 31 12:13:41 thanks root66 May 31 12:14:36 I wasnt talking to you, but glad it worked :) May 31 12:14:50 lol it gave me the idea to check the checkout :) May 31 12:19:54 using TabActivity is still acceptable even when using an app across 2.2 through 4.2, right? May 31 12:20:06 rewriting the app using fragments is a bit too much work :) May 31 12:21:13 I'm loading images in my array adapter for my listview, but I keep running into weird bugs May 31 12:21:35 Like images loading in the wrong row, and also I get some outofmemory erros, anyone can tell me about best practice? May 31 12:28:23 Abhijit: if you're still around, you might want to check if there is a line import android.R; at the top of the code May 31 12:28:51 no there is not May 31 12:29:02 There is no other way to get time from chronometer other that convert value to string ? timeWaitingChronometer.getText().toString(); May 31 12:32:36 thanks root, ill check that out, although that isnt really my primary issue May 31 12:33:31 hi May 31 12:34:25 is it possible to change the layout of all items in a listview? What I want is the User selects an Option in the Actionbar Menu. After that I want to change the layout of all existing items in the listview. May 31 12:34:39 I use a customized cursor adapter for my listview May 31 12:39:18 saedelaere: well you could put a variable to store how the list should be displayed and then call notifyDataSetChanged after resetting the value. May 31 12:39:46 saedelaere: then you just have your getItem check to see the value of that variable when it is building the items. May 31 12:43:07 What is the proper way to completely clear an arrayadapter? just .clear() ? May 31 12:46:26 hallas, yep, that should work. May 31 12:52:21 whats the usual approach to arranging fragments in portrait mode. like in landscape i show 2 side by side but in portrait i kind of have good room only for 1. May 31 12:52:56 surely i shouldnt change operation mode to start an activity for the other fragment as it would on a small screen May 31 12:54:13 Ankhwatcher: Didi not know about notifyDataSetChanged May 31 12:54:26 very usefull, thanks!! May 31 12:54:46 saedelaere: no problem, glad to help May 31 13:04:17 boy it's a real shame I can't extend Marker May 31 13:04:34 when eclipse generates the main activity it also creates the package com.something.something. is it necessary for the package name in the src folder to have the same name as the apk's "package name" May 31 13:04:51 why are those two things called the same >_> confusing May 31 13:05:58 balls2thewall: I'm going to go with 'yes' on the basis of 'java'. May 31 13:06:29 i already know they dont have to be the same. but i dont know the magic behind this May 31 13:07:27 the android "package name" refers to a file name in the data directory, but i cant see why the package name in the src folder would affect anything May 31 13:16:53 balls2thewall: the directory structure is a convention used by various tools May 31 13:17:25 just a convetion and nothing else? i.e. i can call/order it whatever way i want? May 31 13:18:17 pretty much; it might (or might not) mess with some tools' defaults, though May 31 13:18:38 "might (or might not)" :/ May 31 13:19:29 it depends on the tools May 31 13:19:54 I want to ship a single, read-only contact that appears after the app is installed and is removed if the app is uninstalled. The contact will never change, so a sync provider is a lot of overhead. Any suggestions? May 31 13:21:52 balls2thewall: you probably don't want to break the convention without a good reason, though May 31 13:22:08 even if just for other developers; POLA, and all that May 31 13:23:46 meh. is there one single battery tracker app that estimates current drawn and actual capacity without uploading your data to the cloud or participating in ad networks? May 31 13:25:17 hi, General but important question: If I force to get GPS locations after every second (form the satelite ofcourse) for 365 days a year. (all the time I mean). Are there chances that the satelite would block my gps device? May 31 13:30:39 Hai :3 May 31 13:30:42 hey guys, i need ur help, how can i safely load images in an arrayadapter? May 31 13:31:00 it seems that the image view reference is fucked up because of getView being called all the time May 31 13:32:54 Pass array of filenames to your custom array adapter May 31 13:33:26 Make getview load img and put it there May 31 13:33:57 Ive made similiar thing and i didnt get any problems May 31 13:34:34 Quest it does not work like that, gps satellites only send data May 31 13:34:48 they don't care who's listening May 31 13:35:13 is the IcsListPopupWindow supposed to dismiss when you touch outside of it's bounds? May 31 13:35:37 hallas: did you read the displaying bitmaps efficiently training docs at d.android.com ? http://developer.android.com/training/displaying-bitmaps/index.html May 31 13:35:49 hallas: doesn't handle your specific case but might give you some ideas May 31 13:36:11 xorgate, can you elaborate? can I get as many locations cordinates in any time as i want? May 31 13:36:32 appel1 i'm using Picasso to load the images, it just seems that the imageView reference passed to picasso is outdated before long May 31 13:36:49 appel1 could it have something to do with me resizing the images? May 31 13:36:55 quest it's like listening to radio, you (the device) are only listening to waves, you don't talk to it May 31 13:37:32 Quest the satellites just keep broadcasting their location, unaware of who's listening. gps does not care about yuo May 31 13:38:42 it's unaware of you May 31 13:39:15 if you call up a datepicker dialog box, then hit the back button, it calls the ondatesetlistener. If you click the done button, it calls the ondatesetlistener also... May 31 13:39:25 hallas: never used Picasso May 31 13:39:42 if you click the done button right after caling up the date dialog, it seems to call the ondateSetListener 2 times... May 31 13:40:27 xorgate, i see. what is the usual time difference in which the gps device gets a new time (for location cordinate)? I mean how often does it updates it self if the gps device is moving on earth? May 31 13:41:32 This is what i have, http://www.fpaste.org/15772/07680137/ May 31 13:42:13 line 18 prints out 2 times if you call the dialog and clic kthe done button. that don't seem quite right.... May 31 13:42:14 Quest, depends on how you set boundaries May 31 13:42:21 usually several seconds may pass… or even minutes May 31 13:42:30 Do we have access to a BiMap or something which works similarly in Android? May 31 13:42:31 Quest not sure what you mean. there are 24+ satellites constantly broadcasting, you're always seeing 5+ (i think). May 31 13:43:10 xorgate, Mavrik thanks a lot!!! runing gps 24*7*12=365 days ONN will drain normal android battery in __ hours? May 31 13:43:23 uh May 31 13:43:26 yes you should probably not do that May 31 13:43:30 rough i dea :) May 31 13:43:33 on most phones GPS kills the battery in 2-4 hours May 31 13:43:49 xorgate, my app depends on it..... its about statistics of location of mobile May 31 13:43:53 especially if theyre driving screen and CPU all that time as well May 31 13:44:03 of course, you can use the lowpower network location May 31 13:44:19 Mavrik, ok. i would have an interval of 10 minuts then. for each update May 31 13:44:32 http://upload.wikimedia.org/wikipedia/commons/9/9c/ConstellationGPS.gif cool as shit, gps May 31 13:44:32 Mavrik, no. network location is not accurate May 31 13:45:39 Quest, yeah at least that, youre still going to be draining a huge amount of battery May 31 13:45:47 hm May 31 13:45:59 Quest: did you watch that video I linked you to yesterday? May 31 13:46:12 Mavrik, i noticed that an icon appears on the top about GPS lock or something.. can I hide that? May 31 13:46:29 Mavrik, i want to do all that in stealth mode (in case the phone is stolen) May 31 13:46:40 uh May 31 13:46:44 Ankhwatcher, love to but youtube is blocked in my country May 31 13:47:06 no, you can't hide that… because its there to PREVENT apps from running the GPS chip in stealth mode May 31 13:47:17 as I said, use network location primarly May 31 13:47:27 and enable GPS only if network is above certain treshold May 31 13:47:35 Quest: if you app is for when the phone is stolen then maybe you should try network first and then switch to GPS if you can't get a decent location. May 31 13:47:35 new Google location APIs should be able to do that for you May 31 13:47:44 Quest what country is that? May 31 13:48:19 AndrewMac, xorgate Mavrik if i do it by NETWORK location. the location wont be accurate for the police or owner to find the thief/phone May 31 13:48:22 i need gps May 31 13:48:30 Quest: http://www.proxfree.com/youtube-proxy.php May 31 13:48:31 1 - 20 ft accuracy May 31 13:48:34 what makes you think it won't be accurate? May 31 13:48:56 in cities the network location is within 20m of accuracy May 31 13:49:00 Mavrik, new google location api? whats that do? May 31 13:49:04 which is as much as you get with GPS inhouse May 31 13:49:12 Quest: if the device is in a location which has had it's wifi ssid's geolocated wifi location will be more accurate than GPS May 31 13:49:18 this is especially true in doors May 31 13:49:56 Mavrik, this makes me think http://i.stack.imgur.com/BFtnE.png May 31 13:50:23 Ankhwatcher, ^ May 31 13:50:25 that's not always true. May 31 13:50:37 mostly... cant take changes :) May 31 13:50:40 Quest: I saw it when you posted it at me yesterday, it's still bs May 31 13:50:48 getting a GPS fix AT ALL indoors is a huge stroke of luck May 31 13:50:49 bias? May 31 13:51:03 making an app that stops working when someone carries the phone inside an apartment building is kinda pointless ;) May 31 13:51:10 I suggest you test it youself. May 31 13:51:14 Quest: http://www.urbandictionary.com/define.php?term=BS May 31 13:51:20 and you'll see just how (un)relieable those devices can be May 31 13:51:26 Mavrik, ofcourse it will switch from gps to network etc when gps is not reachable May 31 13:52:03 Ankhwatcher, so network location accuracy can and usually is better than gps? May 31 13:52:30 Quest: if the phone is in a building wifi is your only hope, May 31 13:52:31 inside yes May 31 13:52:37 outside it depends on your location May 31 13:52:47 okie dokie... May 31 13:52:49 Mavrik is completely right May 31 13:52:49 inside large cities it's commonly as or more accurate than GPS May 31 13:53:00 since GPS reception is rather bad when you're standing between high buildings May 31 13:53:13 and NETWORK locator can use sorrounding wifis to do accurate triangulation May 31 13:53:16 Ankhwatcher, Mavrik i hope the "getBestLocation()" will sort the indoor thing? also the outdoor doo? May 31 13:53:17 has anyone ran into a problem were the ViewPager wont swipe correctly.. like you try to move to the left/right and it moves a bit and snaps back May 31 13:53:18 too* May 31 13:54:06 Ankhwatcher, Mavrik thanks guys! thanks alot! oh yes. what about the lock icon on the top . for gps? can i hide that icon? May 31 13:54:32 Quest: nope. May 31 13:54:39 Ankhwatcher, NO ways? May 31 13:55:29 Quest: it's there to protect the users, it extemely unlikely that you can access the gps without it appearing. May 31 13:57:41 hm May 31 13:58:23 okie dokie. I would make a phone security password to unlock the gps app May 31 13:58:24 thanks May 31 13:58:53 new Google location APIs should be able to do that for you < ------- what apis and what functions? May 31 13:59:55 http://developer.android.com/google/play-services/location.html May 31 14:00:09 thanks! May 31 14:02:28 So is there any sort of map or list I can user which will allow me to determine the key from the value without iterating through the whole thing? May 31 14:03:26 make your own? double insert May 31 14:03:59 Ankhwatcher, afaik not in javaitself May 31 14:04:13 it seems there's a BiMap implementation in google collections according to SO May 31 14:05:52 yep, how do Access that? do I download it from somewhere? May 31 14:06:26 oh I get it May 31 14:06:36 Guava is a google created package like GSON May 31 14:06:56 here is the main activity, http://www.fpaste.org/15783/70009119/ it has the call back for the dialog box. Here is the clas for the dialog box, http://www.fpaste.org/15784/70009178/ How do I tell the dialog box clas sthat the call back function lives in the main class? May 31 14:07:33 Ankhwatcher, HashMap May 31 14:07:50 Ankhwatcher, iam not sure though May 31 14:08:44 Quest: I'm afraid not, HashMap won't work. But I'm adding the Guava package and that will give me BiMap, which will work. May 31 14:08:55 k May 31 14:10:47 Quest: if you're interested in Guava - https://code.google.com/p/guava-libraries/ May 31 14:14:31 k May 31 14:15:24 Grrr May 31 14:15:26 this fragment is being unruly May 31 14:16:55 Please someone help me in a AlertDialog problem May 31 14:17:52 HELP!!!!!! May 31 14:19:24 moctavianwho, Are you dying? This is IRC, it may or may not take a while for someone experienced to respond to your questions May 31 14:21:29 i almost am May 31 14:21:43 i m waiting for hours already May 31 14:22:01 moctavianwho: What seems to be the problem? May 31 14:22:03 I've been waiting for years @_@ May 31 14:22:17 well the problem is wuite interesting: May 31 14:22:28 i have this AlertDialog with a dynamic content: May 31 14:22:53 a dynamic listView(kinf of file manager) May 31 14:23:39 the problem is when i remove items from list(or add) the entire dialog is resizing along with the list view May 31 14:24:18 i want my AlertDialog to keep it size(fixed height) no matter what content is displaying May 31 14:24:53 so, whta it would be the solutin? May 31 14:25:31 The callback gets called twice when you click the done button in a datepicker dialog box. This isn't the correct behavior is it? May 31 14:26:37 moctavianwho: Do you have an ID to get access to said list view with? May 31 14:27:56 yay! it works May 31 14:29:02 I joined this channel and asked my question before any of you were born! Which kind of explains why I haven't had an answer. May 31 14:29:13 yes May 31 14:31:20 my FragmentActivity onSaveInstanceState isn't being called May 31 14:33:37 If you have a class that extends another one, if you call getActivity(), do you get the extended class , or the first class? May 31 14:33:43 moctavianwho: Well, a good place to start is to log the layoutparams such as height/width/weight whatever of that view during several steps in your app May 31 14:33:50 e.g. measure before and after list changes etc. May 31 14:33:56 see if there are any obvious differences May 31 14:33:58 for example, if you have class a extends b. would getActivity() give you b or a? May 31 14:36:33 it gives you b. how can you get a in this scenario? May 31 14:37:16 i set height to match parent May 31 14:37:25 but is not working May 31 14:37:35 there are BIG differences May 31 14:38:37 moctavianwho: Well, if the parent is set to wrapContent, think of what that means for matchParent. May 31 14:39:01 my List view is the parent.... May 31 14:39:15 i inflate in dialog.setView.... May 31 14:39:50 But May 31 14:39:53 The dialog window May 31 14:39:56 isnt that the true parent of list view? May 31 14:40:04 like, list view has a parent somewhere I believe May 31 14:40:05 .... May 31 14:40:08 yes it is May 31 14:40:57 i tried to getWindow().getAttributes() and teh set height but is not what i ve expected May 31 14:42:28 i have to go talk to u later thx May 31 15:01:09 If I have specified android:layout_span="2" in talbleLayout, do i have to specify android:layout_weight="1" to fill entire space ? May 31 15:03:50 Eclipse: Auto-complete works but Auto-import(Ctrl+Shift+O) doesnt work for some reason.. Can anybody help? May 31 15:10:42 hmm May 31 15:11:01 using rfid as a way of tracking people inndoor suddenly doesnt sound like the greatest idea in the world May 31 15:11:14 if these are the sensors i need to set up every 20 feet or so http://buyrfid.com/catalog/product_info.php/cPath/22/products_id/199?osCsid=e487dade5c012cd1084633ad7ac2740f May 31 15:20:04 Arent there any cheap low range RDID sensors available? May 31 15:20:19 Their range shouldnt have to be more than 30 feet May 31 15:24:09 that means active tags May 31 15:24:29 you can't read passive tags at that range May 31 15:29:18 Are all services in my app in the same thread by default? May 31 15:29:56 yes May 31 15:29:57 Come on guys, you know this! May 31 15:30:05 i know ;) May 31 15:30:07 Ah okay. Can I change this? May 31 15:30:15 sure May 31 15:31:18 In the manifest? May 31 15:31:55 no in your code May 31 15:32:07 I'm not starting the service, though. May 31 15:35:50 These are services that get started by the system. May 31 15:39:07 if it's not part of your program and you're binding to a service that exists before your launch, then it's not in your thread May 31 15:39:17 are you supposed to always use getString() for getting resource strings? i see that in my case simply refering to R.strings.mystring works May 31 15:39:38 *R.string.mystring May 31 15:40:15 diminish_: depends if the function you're calling expects a string or an integer reference to a resource. May 31 15:40:43 if it expects a String you'll have to do getString. May 31 15:42:09 dragorn: AlertDialog.Builder builder = new AlertDialog.Builder(c); builder.setTitle(R.string.TitleShapePicker); May 31 15:42:14 and it works like that May 31 15:43:24 i'm asking because of this http://stackoverflow.com/questions/2183962/how-to-read-value-from-string-xml-in-android (choosen answer) May 31 15:43:43 https://developer.android.com/reference/android/app/AlertDialog.Builder.html#setTitle(int) May 31 15:43:47 i did not have to do this and it works May 31 15:43:49 Set the title using the given resource id. May 31 15:45:43 SimonVT: so that would be because it expects CharSequence? May 31 15:45:45 diminish_: read the docs for your function then. Some take an integer reference to a resource. Some take a String. You'll have to call them appropriately. May 31 15:46:16 it takes an int that's a resource id May 31 15:46:24 good morning everybody does anybody know how to use actioinbar sherlock in android studio May 31 15:46:37 A title is usually a string of some sort, so it's safe to assume that it's a string resource id May 31 15:47:12 wait, indeed R.string.mystring probably returns a resource id May 31 15:47:22 so it works May 31 15:48:59 so if I do Thread.sleep(..) that should not affect my services, good May 31 15:52:44 God I love Android May 31 16:02:07 canadiancow : i didn't know cows could be fluffy :| http://www.odditycentral.com/animals/fluffy-cows-models-of-the-bovine-world.html May 31 16:04:52 <|Agent> I'm having trouble sharing an image to the Facebook app. May 31 16:04:53 <|Agent> When the Facebook Activity starts up, there is a pop-up saying that it can't add an attachment. I've tried both PNG and JPEG images, and I'm putting the image file in mContext.getExternalFilesDir(Environment.DIRECTORY_PICTURES). May 31 16:05:55 afaik the externalFilesDir is application dependent May 31 16:06:06 i a not sure on thi May 31 16:06:07 <|Agent> I create the ACTION_SEND intent, with FLAG_ACTIVITY_NEW_TASK and FLAG_GRANT_READ_URI_PERMISSION, and EXTRA_STREAM set to Uri.parse(SHARE_FILE_AUTHORITY + fileName) May 31 16:06:40 <|Agent> And the MIME type set. May 31 16:07:53 <|Agent> Have you guys got this working? May 31 16:16:43 g00s, how do you expect canadian cows to survive the canadian winter? May 31 16:17:05 :) May 31 16:17:29 canadiancow: With coats and space heaters. May 31 16:17:32 its actually really amusing here May 31 16:17:32 cow coats May 31 16:17:34 new business May 31 16:17:36 i work with some people from LA May 31 16:17:43 we'll be going across the street for dinner May 31 16:17:50 he'll grab a heavy coat May 31 16:17:56 and he's cold the whole way May 31 16:18:07 meanwhile ive got my thick fur, and im a little warm May 31 16:19:48 What is the default column quantity in column layout ? May 31 16:22:28 bluesm: Column layout? May 31 16:22:59 Brian|CB: sorry . table layout May 31 16:24:03 0 May 31 16:24:19 For a tablelayout with no children May 31 16:24:41 If it has children, read the first few paragraphs in the javadocs May 31 16:25:42 SimonVT: Why java docs ? May 31 16:26:11 Because they tell you how it works May 31 16:26:35 SimonVT: Why java? Isn't this table layout specyfic to android? May 31 16:26:44 wow May 31 16:27:04 SimonVT:? May 31 16:28:14 Read this: https://developer.android.com/reference/android/widget/TableLayout.html May 31 16:29:41 SimonVT: I wonder why i do need set my button android:layout_span="2" to fill whole length... and I have default table with children, and withouth specyfing any column. May 31 16:34:03 you should probably look at gridlayout instead of tablelayout May 31 16:36:08 Does anyone know the name of the library that allows you to easily create your own versions of this type of help; http://25.media.tumblr.com/d87a4e92f406aa1e9501c3366a6771c6/tumblr_mhiizfIQyM1r2wjwko2_250.png May 31 16:37:07 canadiancow: I really don't know when you which. May 31 16:42:17 hello, what's the deal with these errors when trying to build android 4.2.2? http://pastebin.com/NCELinzy May 31 16:44:19 looks like your classpath is missing doclava May 31 16:45:28 i downloaded the code and make May 31 16:45:30 no changes to it May 31 16:52:17 What is the meaning of this : style="?android:attr/buttonstyleSall" May 31 16:52:18 ? May 31 16:53:22 style="?android:attr/buttonStyleSmall" May 31 16:55:16 bluesm, it means "use the android default style for that attribute" May 31 16:55:48 alexfu: For Which Attribute ? May 31 16:55:58 bluesm, buttonStyleSmall May 31 16:56:43 bluesm, buttonStyleSmall is an attribute defined in the Theme. and the attribute points to a style that the Theme will use. May 31 16:57:13 alexfu: Can I look at this theme ? May 31 16:57:50 alexfu: I mean this "?android:attr/buttonStyleSmall" links to the set of attrubtes that will define my button ? May 31 16:58:47 Hello guys! I have a mystery to submit you, I am currently making backups of my android devices to keep a clean master containing my apps, I'm using the following command : adb backup -f MyBackupFile.ab -apk -all -nosystem. When I restore the image generated, all apps are present except 3 of them : Androzip, Google Earth and LeMonde (of course the three of them were installed when I launched the backup procedure). Any clue ? May 31 16:59:02 bluesm, no, it links to a Style. May 31 16:59:37 bluesm, look in [android sdk home]/platforms/android-17/data/res/values/themes.xml May 31 17:00:49 What parameters do I need to set to send an Intent that will Open up Google Maps to that screen where you can pick "Driving Directions" or "Navigation?" May 31 17:01:51 I'm adding directions to my app and rather than re-inventing the wheel I'd like to just pass the LatLng to Maps and let the user decide how they want to get directions. May 31 17:02:56 Fallout2man, see this link http://stackoverflow.com/questions/11607678/how-to-open-google-maps-application-from-my-current-application May 31 17:03:02 the answer by San May 31 17:03:21 brx_: Danke! will check it out. May 31 17:06:53 No one to help ? ;( May 31 17:06:55 brx_: Yup, this was just what I needed, appreciate the assist. :) May 31 17:07:20 Fallout2man good :) May 31 17:13:13 alexfu: @android:style/Widget.Button.Small May 31 17:13:24 what is the preferred/best QR library? May 31 17:13:33 bluesm, yes. May 31 17:13:59 alexfu: And what this mean ? May 31 17:14:36 bluesm, look at Widget.Button.Small May 31 17:14:40 in styles.xml May 31 17:15:21 alexfu: @android:drawable/btn_default_small May 31 17:17:38 bluesm, the style Widget.Button.Small is referenced by buttonStyleSmall... Meaning, when you write, ?android:attr/buttonStyleSmall, It will use the Widget.Button.Small style which you can see what it consists of in styles.xml May 31 17:19:20 i have a TextView inside LinearLayout (there is also a SeekBar in it), all of it is inside AlertDialog, what are my options of aligning TextView besides setPadding()? May 31 17:20:19 diminish_, how do you want to align it? May 31 17:22:46 so specyfining style="?android:attr/buttonStyleSmall" style="@android:style/Widget.Button.Small" should do the same ? May 31 17:23:31 alexfu: i'd like to align the TextView with AlertDialog title http://i.imgur.com/8sbhyKJ.png , setting the same font size would be also good ("10" is TextView, "Set size" is the AlertDialog's title) May 31 17:24:31 alexfu: ^ May 31 17:25:13 diminish_, if you're doing this in XML, you cant align unless you set padding/margin. You can find out the padding amount that the title uses from the android SDK though May 31 17:29:48 hi May 31 17:30:14 the excutePost method works fine in my other java class and outputs html by the same url link with some paraments. iam getting 1. connection refused (line 140) 2. println error on 49 line.(error line 171) theres no println... i have clean and rebuild. what.... is going on.... May 31 17:57:37 disconnected. didnt saw any messages May 31 17:57:42 anyone one home? May 31 17:58:04 Well May 31 17:58:05 im not home May 31 17:58:07 but im online May 31 17:58:07 :P May 31 18:00:41 hey y'all May 31 18:27:02 Can someone look at htis, http://www.fpaste.org/15875/13700247/ What is the problem with that CharSequence? compiler is complaining about line 10, no suitable method found. Is that not the correct way to build an array? May 31 18:28:21 the docs for AlertDialog.Builder says, setItems (CharSequence[] items, DialogInterface.OnClickListener listener) May 31 18:28:41 what I have looks like a CharSequence array May 31 18:28:48 new String[]{thing, thing, thing} May 31 18:37:34 I am having difficulties installing the ADT plugin. I have tried every method imaginable short of backing up my home folder, wiping the os, and starting over. I install it like it says here http://developer.android.com/sdk/installing/installing-adt.html but when I restart eclipse, I don't see a "Welcome to Android Development" window and there is no way for me to use the ADT plugin. May 31 18:39:23 There is no android anything anywhere. I thought I might also add that this nonsense started when eclipse told me my adt plugin was out of date. I tried to update it but it said it couldn't write to /usr/lib/eclipse/ May 31 18:40:48 Hi, all May 31 18:40:53 I used sudo chmod -R a+rwx on that folder (apparently it needed to execute something in there too) but I get where I am right now. I have tried uninstalling everything and downloading everything again and nothing seemse to work May 31 18:41:07 seems* May 31 18:42:12 I've got 52 PNGs representing playing cards imported into my project and registered in R.drawable. I want to generate a Deck of Card objects based on these, and I'm using reflection to do so. But I can't figure out how to instantiate a Drawable object based on the resulting Field object May 31 18:42:35 e.g. drawableField.getName() card28 May 31 18:42:46 drawableField.getInt(null) 271235 May 31 18:43:12 Is there a better wan than using reflection on the R class? May 31 18:43:43 er yeah May 31 18:43:50 just make a static array? May 31 18:43:58 reflection is going to massacre your performance May 31 18:44:18 Mavrik, that makes sense. But it only happens when I initialize the deck onCreate May 31 18:44:19 52 reflection calls isn't going to be noticeable May 31 18:44:32 asciimo, initialize it at compile time ;) May 31 18:44:52 I want to avoid making an array because I want to just import new images of varying numbers of cards May 31 18:44:53 JesusFreke, sure, but it's still not a good idea here :P May 31 18:45:06 android sucks about as much as python May 31 18:45:13 which isn't much May 31 18:45:23 Mavrik: how do I initialize at compile tiem? May 31 18:45:24 dude May 31 18:45:26 python is the shit May 31 18:45:30 asciimo, by making it a static array May 31 18:45:39 you're not gonna be changing images alot May 31 18:45:42 canadiancow: right, it's not. but it wouldn't be a performance issue, at least :) May 31 18:45:44 asciimo, wtf would you use reflection on the fields, store the items into an array or list May 31 18:45:48 so make sure the image constants are burned in May 31 18:45:51 Mavrik, but I don't want to manually fiddle with 52 array items May 31 18:46:01 and using reflection is better? May 31 18:46:07 write a script that's gonna create the .java file then May 31 18:46:16 2 reasons it's bad, it's not statically checked, and performance is sub-optimal May 31 18:46:19 #1 is the killer May 31 18:46:34 #2 isn't bad for a small number of calls May 31 18:47:08 pfn: well,where do y'all paste code? May 31 18:47:44 I like where you're going, Mavrik. May 31 18:47:46 fpaste.com is a good one May 31 18:47:57 oops, fpaste.org May 31 18:48:30 asciimo, compile time >> runtime, if you need reflection on Android you've done something really wrong. Reflection performance on Dalvik is beyond terrible. May 31 18:48:30 Eh, I did this http://pastebin.com/NbZcftFr May 31 18:48:53 Mavrik: I'm 100% onboard with you here. this is my first app, and I haven't touched Java for years :) May 31 18:49:11 don't thinlk of java when writin android, you will screw yourself up May 31 18:50:18 so, let's put performance aside for the time being. in that paste bin code, how do I turn that resource index into a drawable object and assign it to card in that loop? May 31 18:50:32 I used to hate Python, but then I started using Google App Engine. May 31 18:50:36 Now I can't hate python May 31 18:51:06 asciimo, context.getResources().getDrawable(int) May 31 18:51:21 Brian|CB, because GAE is worse? O.o May 31 18:51:21 Oh, sweet jesus. Thank you Mavrik May 31 18:51:34 I know nothing of context. May 31 18:52:02 no May 31 18:52:09 because python based GAE backends are just the best May 31 18:52:20 They're so simple, free, and easy to setup its ridiculous May 31 18:52:23 The problem to this was that the lcoalhost:somePort cannot be used. only 80 is default. but i can use 8004 or any port like localhost:port/urlpart in a pure java app. why not in android then ? the excutePost method works fine in my other java class and outputs html by the same url link with some paraments. iam getting 1. connection refused (line 140) 2. println error on 49 line.(error line 171) theres no println... i have clean an May 31 18:52:23 d rebuild. what.... is going on.... May 31 18:53:43 i must say, spending lots of time in idea; going back to eclipse - its ugly as hell May 31 18:54:11 Mavrik, thank you also for the code generation idea. That's very creative. May 31 18:55:08 asciimo now, see if you were using c++, you probably could have expanded that out with template matea programming by passing a define in the compiler commend line May 31 18:55:24 maybe you should use the ndk instead May 31 18:55:34 * g00s runs May 31 18:55:50 * Mavrik slaps g00s. May 31 18:55:59 g00s: Hm. Is there anything closer to the metal? ARM assembler or something? May 31 18:56:19 If I could just manipulate the bits directly... May 31 18:56:46 May 31 18:57:41 the Double dlongi 111.422006 auto converts to 111.422004999999998 in Double dlongi = loc.getLongitude(); String longi = dlati.toString(); System.out.println(longi); why is that? May 31 18:58:20 because computers and floats and stuff May 31 19:01:48 Mixing dlati and dlongi? May 31 19:03:02 https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/ConnectionStatus.java#L213 <--- have an example of what not to do May 31 19:04:20 does anyone here use Robotium? May 31 19:08:07 http://pastebin.com/Sm6QnUve The problem to this was that the lcoalhost:somePort cannot be used. only 80 is default. but i can use 8004 or any port like localhost:port/urlpart in a pure java app. why not in android then ? the excutePost method works fine in my other java class and outputs html by the same url link with some paraments. iam getting 1. connection refused (line 140) 2. println error on 49 line.(error line 171) theres no May 31 19:08:07 println... i have clean an May 31 19:08:07 d rebuild. what.... is going on.... May 31 19:09:24 when are the dev editions of the sgs4 gonna show up May 31 19:09:25 I want one May 31 19:09:43 I'm using the latest task650 rom/gapps on my s3 phone. When I use Reddit News, I May 31 19:09:43 get a youtube service invalid error tapping on a video. To fix this I thought May 31 19:09:43 maybe I should try updating youtube from the play store. I deleted the youtube May 31 19:09:43 app in system/apps with Solid Explorer and cleared cache. Now, when I install May 31 19:09:43 youtube from the Play Store, I get error incompatible update. May 31 19:10:05 pfn you like that better than the htc one google edition? May 31 19:10:16 htc one isn't available on vzw, is it? May 31 19:10:24 oh, dunno May 31 19:11:24 the Location.getLatitude() in android returns double which has low precision. what is a way to get it with good percision or in another form other than doubles? May 31 19:21:54 http://stackoverflow.com/questions/16864395/location-getlatitude-method-returns-non-precisioned-double-which-is-bad-for-gps May 31 19:23:37 i guess So is kinda like FB in that you can post embarrassing stuff May 31 19:23:39 Quest: technically, there are no "doubles" in android per se May 31 19:24:24 arnorhs, the api says the getLatitude does reurns a double May 31 19:24:39 arnorhs, and android is based on java. java has doubles May 31 19:26:52 oops.. sorry, android.. thought this was the JS room May 31 19:26:56 facepalm May 31 19:28:24 wait a second. GPS is only accurate to 3 meters May 31 19:28:56 Isn't that 4 decimal places? May 31 19:29:22 noob question: where can i file bugs for the new android build tools? May 31 19:30:10 i'm creating a dialog box with some radio buttons. the radio button text will be defined in the activity, how can I pass this info to the dialog? May 31 19:32:18 i'm gonna be using the AlertDialog.Builder and calling the setSingleChoiceItems method. but i don't know how to tell it the list of items May 31 19:33:08 kc8hfi: make a DialogFragment instead May 31 19:33:21 karakuri: it is a dialogfragment, May 31 19:33:33 extends DialogFragment May 31 19:33:49 still don't tell me how to pass it stuff though May 31 19:33:52 use a static method to take in the button text May 31 19:34:17 package them in a Bundle, make anew instance of the DialogFragment, set the bundle as arguments using setArguments(bundle) May 31 19:34:20 the radio button text is going to end up coming from a dbase table. why would I use static methods? May 31 19:34:40 then when you make the dialog, you call getArguments, read the names, and build the dialog May 31 19:34:47 Hi, i've got a ListView with a custom adapter that i add new data to. But the ListView doesn't refresh. I tried listView.invalidateViews() and also listAdapter.notifyDataSetChanged(). both don't seem to do the job May 31 19:35:14 Quest: asciimo is correct, the precision you are trying to get is not granted by GPS May 31 19:35:41 your activity would call MyDialogFragment d = MyDialogFragment.newInstancc(/*button names*/); d.show(getFragmentManager()); May 31 19:36:34 karakuri: hmmm, i see. May 31 19:39:11 any idea how to refresh the listview? May 31 19:40:34 Zaknafein: Change the data in the adapter and refresh it? May 31 19:41:23 kc8hfi: https://gist.github.com/karakuri-dev/f2881680f0a3d3c0ab11 May 31 19:42:00 Brian|CB it doesn't seem to work May 31 19:44:47 karakuri: ok, i see. May 31 19:44:54 Well, I'm not sure what all I can say without knowing exactly what is happening in the app and such May 31 19:44:55 but maybe uhh May 31 19:45:11 did you forget to setup a method in your custom adapter that is impacting things? May 31 19:45:46 sonOfRa, but that doesn not solves the problem May 31 19:46:00 there is no problem though May 31 19:46:24 why would you need coordinates that are more precise than you can get from/put into gps May 31 19:47:38 does anyone know how to make a test suite using Robotium? May 31 19:48:51 karakuri: No idea lol May 31 19:49:05 I just learned to use Selenium for Web, never used any android testing May 31 19:49:11 I imagine it isn't too difficult thouhg May 31 19:49:11 sonOfRa, for asciimo and Gabe Sechan . You might be correct asciimo that GPS dont want a .xxxxxx 6 digit number. but if the cordinat is already rounded of or inaccurate, and implicitly GPS is not 100% accurate near to 3 meters. the accuracy will be further decreases. as i Stated Question: What if full accuracy is required. – May 31 19:49:50 anyone know of a good way to do proximity search, like "ContentObserver" within 4 lines of "getQueryParameter" ? May 31 19:51:52 But the accuracy you get from doubles in android is higher than you can possibly get/put into. Where do you think your bad numbers are coming from? May 31 19:52:32 sonOfRa, what do you thing finally? May 31 19:53:34 can anyone here help me with my R.java problems? It's not auto generating when I clean my project and I've looked through every stackoverflow question about it, I'm at a dead end here May 31 19:54:07 Quest: this might be one of those points in a project where you just grit your teeth and move on to more important matters. May 31 19:55:18 azrosen92: Got any libraries involved? May 31 19:55:21 oh May 31 19:55:21 also May 31 19:55:26 its probably a corrupt XML May 31 19:55:34 that like isn't erroring May 31 19:55:36 i've looked through all of my xmls May 31 19:55:57 azrosen92: did you update your Android SDK packages recently? May 31 19:56:07 oh yeah May 31 19:56:11 there's a new one called Andriod SDK Build-tools May 31 19:56:14 do you have the proper versions of the SDK installed? May 31 19:56:20 you may have to update yoru SDK Manager to see it May 31 19:56:25 which sdk version should i have? May 31 19:56:39 not sdk version, i mean the thing that downloads packages May 31 19:56:47 there's a new package you need May 31 19:56:52 how do i update it? May 31 19:56:54 called Android SDK Build-tools May 31 19:57:08 there's a button in the Eclipse toolbar next to the Android Emulator button May 31 19:57:26 oh... my... god... May 31 19:57:36 ? May 31 19:57:44 i just openned my sdk manager and it loaded something and that fixed May 31 19:57:45 it May 31 19:57:55 i was working for 2 hours last night trying to fix this May 31 19:58:01 yeah, join the club May 31 19:58:13 jesus christ that's the worst May 31 19:58:22 ok well thanks back to developing May 31 19:58:25 Welcome to the jungle May 31 19:58:26 lol May 31 19:59:53 does anybody know how to import ActionBarSherlock in AndroidStudio May 31 20:00:47 Hmm, the SupportMapFragment doesn't seem to animate with the defined FragmentTransaction animations. any ideas? May 31 20:01:06 popers: I spent several hours attempting it, and then quit and went back to eclipse May 31 20:01:16 Remember, Android Studio is really a beta May 31 20:01:23 just use IntelliJ IDEA May 31 20:01:26 so its not exactly a production quality application yet May 31 20:02:26 pfff ok May 31 20:02:38 "early access preview" :) May 31 20:02:40 yes i've spent many hours too May 31 20:02:50 but i really like it May 31 20:03:13 I like it too May 31 20:03:16 but if I can't important libraries May 31 20:03:18 it serves me no use May 31 20:03:50 yes i understand you May 31 20:05:02 well i'll wait until you can import libraries May 31 20:06:19 I'm going to give it till fall to see if it can get its shit together May 31 20:06:53 there isn't an aar for actionbarsherlock in maven central yet, but you can build one easily from the source May 31 20:08:14 but jars are only for java code no? ABS has styles too May 31 20:09:03 aar, not jar. May 31 20:09:20 jafar May 31 20:09:50 jar jar binks! May 31 20:11:37 aar, said the pirate May 31 20:14:48 yar May 31 20:17:34 has anyone figured out how to include an aar archive in the new gradle build? in the same sort of way you can include jar files May 31 20:20:05 quit May 31 20:20:26 leslie: you have to create a maven repository basically May 31 20:20:34 for some reason using files() doesn't work May 31 20:20:47 yeah, I thought I might have been doing something wrong May 31 20:21:08 you can use "mvn install:install-file" to install into your "libs" dir in your app May 31 20:22:30 is it possible to refresh a listview NOT from the UI thread ? May 31 20:23:09 pretty sure all UI operations have to be done on the UI thread May 31 20:24:42 Zaknafein: No, but you can load data off of the UI thread, then use that data on the UI thread May 31 20:27:55 hi guys, what's your preferred way to handle network connections AND update something on the view? May 31 20:29:02 sounds like a good thing for asynctask. do your networki May 31 20:29:25 do your networking in doInBackground and then adjust your view in onPostExecute May 31 20:29:58 SpearThruster: I prefer Loaders May 31 20:30:04 But ASyncTasks will do the job May 31 20:30:14 yes, Loaders are great May 31 20:30:33 if you are loading from SQLite, CursorLoader is yoru friend May 31 20:34:17 Screw SQL May 31 20:34:19 its all about dat noSQL May 31 20:36:50 especially mongodb ;) https://jira.mongodb.org/browse/PYTHON-532 May 31 20:38:39 I use mongo DB a lot May 31 20:38:49 although I'm really big on Google App Engines ndb May 31 20:38:51 its so useful May 31 20:38:56 thats my new favorite toy May 31 20:41:44 is it still free? May 31 20:43:34 any way to grab an apk off the phone without root access? May 31 20:44:32 hacked kernel? May 31 20:44:47 Let's just say I don't want to mess with or flash my phone. May 31 20:44:53 I just want to get an apk to analyze. May 31 20:44:59 sonOfRa thats hilarious May 31 20:45:01 then that's too bad May 31 20:45:21 remember android works as a platform where google *sells* you apps May 31 20:45:48 uggh fuck. I don't want to delete my user data when I unlock my nexus. May 31 20:45:50 root* May 31 20:45:52 they won't allow normal users to just copy & share the apps they sell to anyone else May 31 20:48:58 sync everythin to your account. when you find an hour free, unlock it and root it and restore all your stuff May 31 20:49:09 not much else you can do May 31 20:49:12 thanks for the input guys :D May 31 20:50:43 therealGent AIRDROID May 31 20:50:49 you can get apk file May 31 20:50:57 than extract it May 31 20:51:16 than decompile class files May 31 20:51:32 and than view inside by any jar displayer :c May 31 20:51:59 ciurkut airdroid can access root only dirs like /data/app? May 31 20:52:20 airdroid can get any apk from app you installed May 31 20:52:22 try it out May 31 20:53:06 After the user has edited some settings (by a UI) and clicked the save button, I want to keep an app running 365 days a year. if the phone restarts. the app should auto start too. what is the best strategy to do it? May 31 20:54:27 aidroid is prob one of the cooelst apps ive ever used. But did they fix that thing where if you standby the phone it stops working? May 31 20:54:46 btw cirukut when i hit "apps" its just stuck at the loading indicator. Looks like no dice. May 31 20:55:08 I there, I have a table>tablerow> text & spinner but each time I select something on the spinner it changes the width and compress the textlabel making it unreadable May 31 20:55:10 I don't think it's possible to guarantee the app will run all the time, Quest May 31 20:55:31 how can I "attack" trisproblem? May 31 20:55:35 is there a way to group markers in the Maps API v2? May 31 20:55:36 therealGent May 31 20:55:41 i download apps May 31 20:55:41 leslie, not even if it becomes a service? May 31 20:55:50 by opening webbrowser client May 31 20:56:07 ciurkut, is your device rooted? May 31 20:56:09 Quest, any process can be killed if Android decides it needs to reclaim the memory used May 31 20:56:14 nope May 31 20:56:29 ciurkut, nope ? May 31 20:56:41 that was to therealGent May 31 20:56:48 leslie, really? May 31 20:56:53 yes May 31 20:56:54 to your question there is such thing as important service May 31 20:57:03 or smth like that May 31 20:57:10 you flag your service as important May 31 20:57:33 and than it would not be killed unless it have to(?or wont kill at all) May 31 20:57:33 ciurkut, but leslie says any app may be terminated by android to reclaim memory? May 31 20:57:42 leslie, can you give citation for that? May 31 20:57:42 but its about activities May 31 20:57:52 ciurkut, it worked!! Phenomenal advice man. Thank you May 31 20:58:00 ciurkut, when does android usualy kills apps? May 31 20:58:02 <3 May 31 20:58:04 Better than the "too bad. Tough shit. Must install custom kernel" advice May 31 20:58:07 when it lacks memory May 31 20:58:13 ciurkut, its about activites? May 31 20:58:16 android system has set of rules when it kills May 31 20:58:23 activities are killed May 31 20:58:32 services sometimes too May 31 20:58:33 ciurkut, so services are NOT killed? May 31 20:58:36 but less likely May 31 20:58:44 services that are marked as important May 31 20:58:47 or smth like that May 31 20:58:50 ciurkut, hm. May 31 20:58:51 ok May 31 20:58:51 ive heard on youtube about this May 31 20:58:51 Quest, http://developer.android.com/guide/components/processes-and-threads.html#Processes May 31 20:58:53 wait May 31 20:59:13 so ciurkut so my quesiton. what strategy would be ok After the user has edited some settings (by a UI) and clicked the save button, I want to keep an app running 365 days a year. if the phone restarts. the app should auto start too. what is the best strategy to do it? May 31 20:59:45 you dont want app to be running May 31 20:59:51 there's a permission to run at startup. if you combine that with a foreground service, you should be ok in most situations May 31 20:59:53 you want to service to be running in background May 31 21:00:57 why not 24 hours a day? May 31 21:01:28 Process lifecycle May 31 21:01:28 The Android system tries to maintain an application process for as long as possible, but eventually needs to remove old processes to reclaim memory for new or more important processes. To determine which processes to keep and which to kill, the system places each process into an "importance hierarchy" based on the components running in the process and the state of those components. Processes with the lowest importance are eliminated first, May 31 21:01:28 then those with the next lowest importance, and so on, as necessary to recover system resources. May 31 21:01:34 leslie, thanks May 31 21:01:42 ciurkut, ya. May 31 21:01:51 http://stackoverflow.com/questions/3856767/android-keeping-a-background-service-alive-preventing-process-death May 31 21:01:53 look there May 31 21:01:54 :) May 31 21:02:06 A started service can use the startForeground(int, Notification) API to put the service in a foreground state, where the system considers it to be something the user is actively aware of and thus not a candidate for killing when low on memory. (It is still theoretically possible for the service to be killed under extreme memory pressure from the current foreground application, but in practice this should not be a concern.) May 31 21:02:20 ciurkut, ok. how to integrate the settings UI and the starting of the service on 1. save button (if not started already ) 2. phone reboot. May 31 21:02:51 ciurkut, oh greate May 31 21:03:05 http://stackoverflow.com/questions/6080515/android-start-service-on-boot May 31 21:03:07 :3 May 31 21:04:05 you could stop existing service on save button and start another one with new settings (if they got changed) May 31 21:04:36 ah May 31 21:04:56 and how to start the service on reboot of phone May 31 21:05:01 ciurkut, ^ May 31 21:05:08 hey guys, I noticed the "pull to refresh" libraries are not maintained anymore, why is that? May 31 21:05:32 tomh-! May 31 21:05:57 sup mheld! May 31 21:06:12 ciurkut, oh. i got the link you gave May 31 21:06:24 Quest :3 May 31 21:07:47 ciurkut, thanks. ba bye May 31 21:07:53 bye :) May 31 21:08:45 mheld: what android libs do you use? May 31 21:08:56 huehuehue helping ppl makes me excited May 31 21:08:59 :< May 31 21:09:35 what is your fav java decompiler guys? May 31 21:11:10 javac May 31 21:14:34 therealGent i use dex2jar than jd gui May 31 21:15:04 ciurkut, currently what I'm trying out! /me crosses fingers May 31 21:15:19 dont get too excited :p May 31 21:15:38 haha you predicting hurdles? May 31 21:15:46 anyway you will have to figure out resurce id's May 31 21:15:50 cause you get number May 31 21:15:58 not R.id.yourid May 31 21:16:00 :< May 31 21:16:07 so its moar like guessing game May 31 21:16:12 * therealGent whoosh May 31 21:16:18 also xml files are compiled May 31 21:16:27 apk tool should handle that right? May 31 21:16:29 for apk theming purposes there are better tools May 31 21:16:32 yep May 31 21:16:42 apk tool for example! May 31 21:16:43 :c May 31 21:16:43 im just looking for some networking code. May 31 21:16:50 okay May 31 21:17:00 anyway some ppl use code obfuscators May 31 21:17:08 Yeah thats what im reallly hoping is not there lmao May 31 21:17:09 there is one already built in May 31 21:17:17 ciurkut, android vs com folder? May 31 21:17:18 in eclipse adk May 31 21:17:26 what? May 31 21:17:36 android vs com what you mean? :p May 31 21:17:37 dex2jar. I have two folders. May 31 21:17:43 Not sure what they signify. May 31 21:18:10 check android one May 31 21:18:10 ciurkut, and looks like this isnt obfuscated ;D May 31 21:18:21 if there is libs file May 31 21:18:22 :c May 31 21:18:29 WHat is a libs file/ May 31 21:18:32 folder* May 31 21:18:35 <_Saul_> hi! May 31 21:18:40 in dex2jar May 31 21:18:41 i have libs May 31 21:18:46 and bunch of bat's May 31 21:18:53 and sh's May 31 21:18:56 Oh. Right. May 31 21:19:05 you use that on classes.dex May 31 21:19:13 Yeah I'm past that part. May 31 21:19:17 mkay May 31 21:19:17 :3 May 31 21:19:27 good luck :) May 31 21:19:29 The .jar has two folders. Com and Android. Im just not sure where to even start THERE ARE SO MANY CLASSES lmao May 31 21:20:06 I really need to get into Android development. I've been meaning to for a while, and I'm sure it would help me with this too. May 31 21:20:27 therealGent: figure out what you want to do May 31 21:20:35 therealGent: look up how to do it. May 31 21:20:43 …. profilt ! May 31 21:20:44 therealGent: pro-programmer tip right there :) May 31 21:20:55 zinx, This is just a game of find the code. No idea where the login code could be./ May 31 21:20:55 therealGent: note: order is important. May 31 21:21:14 therealGent: oh, assumed it was a dev question, sorry May 31 21:23:10 Does anyone have experience of making HTTP requests to google services which require the users authentication? May 31 21:23:48 i obviously dont have access to the auth cookie, nor do i want to handle the users credentials, but this must be an issue others have come across May 31 21:24:22 robb_www: https://developers.google.com/+/mobile/android/sign-in May 31 21:24:31 robb_www: erh? May 31 21:24:48 robb_www: if you're giving a password, you're handling the credentials. would be better to use the provided way :/ May 31 21:25:27 you use the AccountManager to request access to the auth token May 31 21:25:35 google scholar has an "import" feature for passing data to 3rd party apps, my app is associated with the BibTeX .bib file format, when i try to open a stream for the URL provided by the web browser i get a 403 error May 31 21:26:09 it massively defeats the purpose of the feature May 31 21:26:20 robb_www: it doesn't give you any cookies to use? May 31 21:26:43 yeah, as zinx said, you're probably missing auth cookies May 31 21:27:07 would that really be passed from the browser in the intent i receive? May 31 21:27:12 no May 31 21:27:37 thats what i thought May 31 21:27:40 you likely just get a URL--it's up to your app to get auth tokens May 31 21:27:59 eugh thats a pain May 31 21:28:54 might be easier to just drop support for loading from URLs and make the user download and open it manually May 31 21:29:50 robb_www: are you adding the action on the URL or the .bib file type? May 31 21:30:15 1 sec checking manifest May 31 21:31:03 i have intent filters looking for the file type via a path pattern, with fixed schemes of file, http, or https May 31 21:31:21 yyeah don't do the latter stuff May 31 21:31:33 let the download manager handle that >_< May 31 21:32:31 yer, more trouble than its worth May 31 21:32:44 <_Saul_> does anyone know about making a game? the typical ... rtype - space invaders May 31 21:33:27 robb_www: to be clear, you're not supposed to be able to get the cookies, and those are what's required for auth May 31 21:33:40 (bugs in some versions allow you to get them anyway... but, that isn't the point here :P ) May 31 21:33:42 i appreciate that May 31 21:34:03 i was hoping there might be some kind of hand-over gateway so i didnt need to touch them May 31 21:34:07 _Saul_: for something like that, i'd recommend looking for a game library made for Android May 31 21:34:24 but really like you say, download manager can do the heavy lifting, i open the file, done May 31 21:34:26 robb_www: the hand-over gateway is to handle the file instead of the path May 31 21:34:34 robb_www: aye May 31 21:34:52 <_Saul_> well, I'm using parallax and collisions, but I'm having problems detaching the enemies May 31 21:35:06 _Saul_: most game libraries will handle that :/ May 31 21:37:56 <_Saul_> okay... May 31 21:41:21 also, good luck, i've fond memories of r-type and friends May 31 21:42:05 <_Saul_> I must turn it in on sunday night, so thanks May 31 21:42:17 <_Saul_> that's why I've come here May 31 21:43:39 _Saul_ go with andengine :c May 31 21:43:40 http://www.andengine.org/forums/tutorials/invaders-clone-on-gles2-0-for-beginners-19-05-12-t7987.html May 31 21:44:18 <_Saul_> yes! actually that's the engine I am using xD May 31 21:44:47 <_Saul_> omg what a tutorial May 31 21:44:51 <_Saul_> thanks ciurkut :D May 31 21:44:57 :D May 31 21:45:04 im on fire baby! May 31 21:45:07 3 ppl helped May 31 21:45:08 :3 May 31 21:45:08 <_Saul_> haha May 31 21:45:28 youll have to make some kind of hall of fame for meh May 31 21:45:29 :3 May 31 21:45:50 <_Saul_> of course May 31 21:45:53 now i have to help my friend with inserting microphone cable to right hole May 31 21:45:58 and im done for today May 31 21:45:58 :D May 31 21:46:11 she said that she have webcam without mic :3 May 31 21:46:12 <3 May 31 21:46:33 anyone know an open source livewallpaper that implements visualizer? May 31 21:48:58 why you need open source one? May 31 21:49:37 brx_: visualizer? May 31 21:49:47 music visualizer May 31 21:49:49 right? May 31 21:50:09 that's what I assume, but the way he said it sounded like there was some specific interface or something May 31 21:51:49 yes May 31 21:51:59 i wanna see how they do it May 31 21:52:08 seen this http://forum.xda-developers.com/showthread.php?t=1416159 May 31 21:52:46 would like to see how something like that might be done May 31 21:53:51 brx_ get apk via airdroid May 31 21:53:55 and decompile it May 31 21:53:58 than look at code :p May 31 21:54:11 guy showd you permissions already May 31 21:54:12 :p May 31 21:54:23 might do that May 31 22:04:47 ; May 31 22:05:59 gnu stow is pretty cool Jun 01 00:05:22 * g00s contemplates writing yet another event bus Jun 01 00:05:27 uberbus! Jun 01 00:05:44 catbus! Jun 01 00:05:57 http://en.wikipedia.org/wiki/Catbus Jun 01 00:06:06 haha Jun 01 00:12:50 "The Chicago Sun-Times, one of the oldest daily newspapers in America, fired its entire pool of 28 photographers on Friday, and plans to source future graphics from reporters who will be trained to capture print-worthy images with their iPhones. " Jun 01 00:12:53 uh Jun 01 00:14:30 witness the death-spiral of the newspaper Jun 01 00:15:05 don't have enough money to pay photographers -> crappier photos -> fewer customers -> less money Jun 01 00:16:00 I'm fairly surprised newspapers have managed to stay in business at all Jun 01 00:17:39 JesusFreke i try to avoid most news nowadays … i agreed with this piece http://m.guardiannews.com/media/2013/apr/12/news-is-bad-rolf-dobelli#top Jun 01 00:17:59 have to stay on top of industry trends of course Jun 01 00:18:34 that's more or less the approach I take Jun 01 00:33:43 hi,every Jun 01 00:34:34 I want to read gps data from android,by UART port, using C code.which device files should I use? Jun 01 00:34:54 I want to read gps data from android,by UART port, using C code.which device files should I use? Jun 01 00:39:48 anyone there? Jun 01 00:45:11 writing another eventbus, why Jun 01 00:45:15 you already got otto on android Jun 01 00:45:32 and you already wrote up your hacked up thing based of guava Jun 01 00:51:57 get used to C code. Jun 01 01:05:32 pfn: shhhh. the world needs an eventbus named catbus Jun 01 01:05:59 why devices even provide rs232 or uart at all? Jun 01 01:06:01 s/why/what Jun 01 01:16:46 I want to read gps data from android,by UART port, using C code.which device files should I use? Jun 01 01:20:50 <|0xD34D|> Nexus 4 has UART via the headphone Jack Jun 01 01:22:11 really Jun 01 01:22:30 <|0xD34D|> Yep Jun 01 01:22:49 <|0xD34D|> Saw the write up on hackaday yesterday Jun 01 01:23:57 <|0xD34D|> A lot of devices have UART access but not usually exposed to the common user Jun 01 01:24:20 <|0xD34D|> Usually some pads on the PCB Jun 01 01:24:43 android must include the gps driver. Jun 01 01:25:10 how could I read gps data, using C code? Jun 01 01:25:23 gps must use UART Jun 01 01:25:32 <|0xD34D|> Why? Jun 01 01:25:43 or serial port to communicate with ARM cpu. Jun 01 01:25:52 <|0xD34D|> There could be an I2C or SPI interface Jun 01 01:25:53 right? Jun 01 01:26:01 yes Jun 01 01:26:17 question is which device files could I to use? Jun 01 01:26:21 <|0xD34D|> I think it depends on the device Jun 01 01:27:01 on PC, we can use lspci or lsusb to check the devices Jun 01 01:27:15 who about on android. Jun 01 01:27:16 ? Jun 01 01:27:47 <|0xD34D|> Embedded devices can be a bit different Jun 01 01:27:52 I check the files about android. Android has included gps driver. Jun 01 01:28:06 <|0xD34D|> Maybe look at the GPS lib code in android Jun 01 01:28:12 so C code can use this driver to read data. Jun 01 01:29:18 look at the gps LIB code? Jun 01 01:29:51 I look at the Android 2.2.2 source code. Jun 01 01:30:00 <|0xD34D|> In AOSP Jun 01 01:30:01 just find gps.h and gps_qemu.c Jun 01 01:30:15 AOSP? what is it? Jun 01 01:30:51 <|0xD34D|> Android open source project Jun 01 01:31:02 <|0xD34D|> All the goods to build android Jun 01 01:31:19 web site? Jun 01 01:32:37 <|0xD34D|> Google it Jun 01 01:32:43 got it. Jun 01 01:56:16 <|0xD34D|>:only find .h file, they are all for JNI, NOT C code.where to find the .Cpp or .C file? Jun 01 01:57:36 huh? why do you want to read it from C? you're on android Jun 01 01:57:42 use the android APIs to get at location data Jun 01 01:57:51 you're making no sense Jun 01 02:04:37 you mean use JAVA? Jun 01 02:04:52 just get used to C. Jun 01 02:05:44 too bad, you're on android, you won't be doing this in C Jun 01 02:06:04 if you want to, dig through aosp to see what gps libraries are available in C Jun 01 02:06:21 if you don't know what/where aosp is, type those 4 letters into google Jun 01 02:06:34 oh is that that game ? Jun 01 02:06:54 thanks , pfn. **** ENDING LOGGING AT Sat Jun 01 02:59:58 2013