**** BEGIN LOGGING AT Mon Jun 16 02:59:59 2014 Jun 16 03:00:39 hesperaux so yeah "It was the best of times, it was the worst of times" Jun 16 03:00:50 lol Jun 16 03:01:01 :) Jun 16 03:01:09 pfn: nice! Jun 16 03:01:11 thanks Jun 16 03:01:26 lots of people simply don't like java - i'm fine with java, but hate that we're like the IE 6 of Java Jun 16 03:01:42 hehe Jun 16 03:01:53 and anyone who thinks the permission system is fine, is just retarded :) Jun 16 03:02:20 * hesperaux doesn't know a lot about that Jun 16 03:02:43 swift seems pretty ok :p Jun 16 03:02:50 well, even like the recent changes in Play Store the way its coalescing permissions into groups Jun 16 03:02:51 g00s: permissions are fine as idea but might be more structured Jun 16 03:03:33 while (data.iterator().hasNext()) { where data is an array list is causing an infinite loop … what am i missing if anything off the top? Jun 16 03:04:01 maybe you'r enot moving the cursor Jun 16 03:04:09 def not good call Jun 16 03:05:28 hesperaux see http://www.androidpolice.com/2014/06/10/simplified-permissions-ui-in-the-play-store-could-allow-malicious-developers-to-silently-add-permissions/ Jun 16 03:07:02 oh. fail. Jun 16 03:07:57 I think my wife's tab 2 is hosed. It's stuck on the firmware upgrade encountered an issue screen and I can't do anything with it now. Kies can't restore firmware because the device isn't supported and a reflash via Odin produces nothing Jun 16 03:08:12 hesperaux so between these things, the polymer / quantum paper stuff, duarte's "apps are dead" i think we should see some interesting things :) Jun 16 03:08:45 admsjas: dang :( send it back! :) Jun 16 03:09:01 data.iterator().next(); before the } end while still infinite loop Jun 16 03:09:48 I'm pretty sure it's out of warranty Jun 16 03:10:04 take it to the Genius Bar Jun 16 03:10:07 oh wait ! Jun 16 03:10:15 do you think he's holding it wrong ? Jun 16 03:10:24 you'll have to see the geek squad Jun 16 03:10:36 bankai_au :D Jun 16 03:10:39 I'm seeing them now Jun 16 03:10:47 :O Jun 16 03:11:27 Didn't know if there was something other than Odin to fix Jun 16 03:11:46 ask #android-root -- they love this kinda hacky crap Jun 16 03:12:37 Pretty sure it needs whatever the factory uses to initialize the device but hoping there is something available to gen public Jun 16 03:12:45 is this the wrong way to do doing this HashMap row = data.iterator().next(); ? Jun 16 03:12:54 I did, the response I got was this: Jun 16 03:13:00 Cricket, cricket Jun 16 03:13:02 admsjas: flash it in fastboot ? Jun 16 03:13:15 #android-root will probably help Jun 16 03:13:28 gordon_: what's fastboot Jun 16 03:13:29 I'm trying to use BreakIterator to break text into sentences. Instead, it's breaking on newlines and sentences. How do I fix this? Jun 16 03:13:54 I can't check if the last character it found was a newline, because that could be the end of a paragraph. Jun 16 03:15:22 tsp_ happening with getSentenceInstance() ? Jun 16 03:15:29 * tsp_ nods Jun 16 03:17:17 admsjas: http://www.androidcentral.com/android-z-what-fastboot Jun 16 03:20:01 gordon_: yeah I looked up fastboot. This tab doesn't have that feature. It has 3 buttons and any combination I use to reboot end in the same result. Uuugh Jun 16 03:20:23 if only there were a channel for this kind of thing ... Jun 16 03:20:44 bankai_au they would probably call it something like android-root Jun 16 03:21:27 anyone know why i would get this trying to run a TOAST from an IntentService -> W/MessageQueue﹕ Handler (android.os.Handler) {42c8f448} sending message to a Handler on a dead thread java.lang.RuntimeException: Handler (android.os.Handler) {42c8f448} sending message to a Handler on a dead thread Jun 16 03:21:37 Is there some kind of java REPL for android? I would really like to be able to run snippets of code without having to put them in my app, compile, logcat, repeat Jun 16 03:22:12 no ... Jun 16 03:22:29 g00s: yeah, but nobody would be there, and it would be close to impossible to provide live support for every device and every new and interesting way to fuck them up Jun 16 03:22:31 If only there was a channel called something like android-root where someone would actually respond Jun 16 03:23:24 you could ask in #c ... they might know Jun 16 03:23:30 xda-devs … Jun 16 03:25:17 bankai_au not #c ! maybe #java Jun 16 03:25:36 #linux ? Jun 16 03:25:37 yeah, make sure you are upfront to the #java guys that you are using android Jun 16 03:30:44 g00s, and clearly, the complete lack of a permission system in ios makes it completely unusable Jun 16 03:30:53 apple must be completely retarded Jun 16 03:32:03 admsjas: http://wiki.cyanogenmod.org/w/Install_CM_for_p3110 Jun 16 03:32:30 seems like you have download mode Jun 16 03:33:02 easy Jun 16 03:37:13 gordon_: ill give it a shot, have nothing to lose at this point. Think ill try it in linux tho. Might have better success. Jun 16 03:39:00 admsjas: just go to xda forum, to your device section and download latest rom for you.. Jun 16 03:39:06 script will be there for you Jun 16 03:39:40 and link i gave you is pretty good to - got clear explanation what to download and how to install rom Jun 16 03:39:44 with links to tools Jun 16 03:49:36 gordon_: I can't seem to find my device on xda, no big deal I can refund the files again in linux Jun 16 03:49:49 ok so im getting sqlite values into a string but my gps coords are cut off lat=26.4453 anyone know why that might happen even though im pulling as a string Jun 16 03:50:16 shouldbe -> 26.44532827 Jun 16 04:06:12 how can I load a new url in the same webview from a javascript interface? Jun 16 04:06:41 (not the main activity.. but has the activity's context passed to it) Jun 16 04:07:43 i could nest the interface in the main activity but i'd hope not to if it could be avoided Jun 16 04:56:04 Jesperhead: how are activities included in your question of just setting the webview to a new link? Jun 16 04:56:21 the interface is a sep class Jun 16 05:26:16 I have a question for the advanced folks here. Jun 16 05:27:40 Say you were to take every raw frame data from the camera, process that frame into an OpenGL texture, run a series of shaders on that texture so say you wanted to make it black and white or make ever red tone green, then take that resulting frame and create movie to which to you add all the frames to. How long would such an app take? Jun 16 05:29:36 48 days Jun 16 05:30:37 that sounds like a movie title Jun 16 05:45:25 wabz 48 days to kill :) Jun 16 05:46:09 I thought of this http://en.wikipedia.org/wiki/28_Days_(film) Jun 16 05:57:27 g00s: what are you waiting for? Jun 16 05:57:49 hey thepoosh :) Jun 16 05:57:55 hi hi Jun 16 05:58:33 g00s: is there a scenario in which you would prefer SharedPreferences.Editor.commit() over apply()? Jun 16 06:01:02 thepoosh hmm, not really clear on the differences. reading now. Jun 16 06:01:07 "As SharedPreferences instances are singletons within a process, it's safe to replace any instance of commit() with apply() if you were already ignoring the return value." Jun 16 06:01:42 otoh commit says "If you don't care about the return value and you're using this from your application's main thread, consider using apply() instead." Jun 16 06:02:00 this is a followup from the conference I've been at last week Jun 16 06:02:26 they said that commit was not deprecated just because they don't know who's using it Jun 16 06:02:34 but there is no value in using it Jun 16 06:02:39 ah s commit seems synchronous Jun 16 06:04:25 yes Jun 16 06:04:31 it runs fsync Jun 16 06:04:32 I never even knew apply existed Jun 16 06:04:43 have always done .commit :p Jun 16 06:04:43 and returns boolean if it was not interrupted Jun 16 06:04:57 wabz: it's a good thing to go to conferences Jun 16 06:05:00 :P Jun 16 06:05:04 you live and learn Jun 16 06:05:06 yeah well I only got in to wwdc Jun 16 06:05:29 now is a good time to start Jun 16 06:17:34 wabz enjoy wwdc ? Jun 16 06:20:32 yeah Jun 16 06:20:38 it was a bit overwhelming tbh Jun 16 06:20:59 felt like I was at uni again and cramming a semester into a week Jun 16 06:21:20 probably because most of the sessions I attended were very technical ones Jun 16 06:21:21 good times ! Jun 16 06:21:31 lol Jun 16 06:21:44 some ritalin ... Jun 16 06:22:15 naa Jun 16 06:22:20 it's for the weak minded Jun 16 06:22:31 or the jet lagged Jun 16 06:22:34 i'm totally add Jun 16 06:23:17 yeah, now if i want to get back into ios i have to ask which language to start off with Jun 16 06:23:33 i didn't really think obj-c was bad Jun 16 06:23:37 yeah neither Jun 16 06:23:43 but swift is pretty neat Jun 16 06:23:47 g00s: it looks like a train reck Jun 16 06:23:52 no way of clear reading Jun 16 06:23:54 if obj-c wasnt bad Jun 16 06:23:58 then I'm out :P Jun 16 06:24:43 I started writing a small app in swift, there's a few things that stop the advantages of using swift when using things like.. UIKit Jun 16 06:25:12 mainly to do with generics and the fact that all the framework stuff is objc Jun 16 06:25:19 hm Jun 16 06:25:48 can you mix them in one app ? like say writing java + groovy (in some places) Jun 16 06:26:02 yeah, the bridging stuff is quite cool Jun 16 06:26:07 you can have some files swift, some objc Jun 16 06:26:15 nice Jun 16 06:26:23 access classes both ways Jun 16 06:26:38 obviously if you do things like return tuples in swift that stuff won't be available to objc Jun 16 06:26:46 but … when i think about c++ … main goals being compat with c … seems like they are off to a bad start with constraints being compat with obj-c Jun 16 06:26:56 !help Jun 16 06:27:11 i'll have to learn about it though Jun 16 06:27:14 cant find any site with free source codes Jun 16 06:27:39 only from code.google.com in results which is not showing the link Jun 16 06:28:14 i got a lumia 521 and have been playing around with that. WP 8.0 is kinda far behind, but i like its stability. everything works. once 8.1 comes out i'm going to play around and consider doing WP dev Jun 16 06:28:30 maybe pivot to ios / wp Jun 16 06:28:42 g00s: had a WP for about a week Jun 16 06:28:42 I don't think it's really the same situation as c being a subset of objc Jun 16 06:28:45 it sucks balls Jun 16 06:28:46 g00s u study in kindergarten ? Jun 16 06:28:49 well … if wp doesn't keep losing share in the us that is Jun 16 06:29:03 u like big ABCD kindergarten text in WP ? Jun 16 06:29:10 lol Jun 16 06:29:20 u r MS slave Jun 16 06:29:31 oh, right :) u fabnboi Jun 16 06:29:55 i like trying new things Jun 16 06:30:00 now all we need is for google to come up with a new language for io Jun 16 06:39:31 yes, i do like metro and its use of typography Jun 16 06:39:32 but 8.0 is missing quite a bit of things, kinda reminds me of android 2.2 Jun 16 06:39:32 except without the bugs :D Jun 16 06:39:32 if i'm not impressed by 8.1 and/or it keeps losing its minuscule market share in the US, i'll just focus on android / ios Jun 16 06:39:32 but so far i like it Jun 16 06:39:32 thepoosh "You don't need to worry about Android component lifecycles and their interaction with apply() writing to disk. The framework makes sure in-flight disk writes from apply() complete before switching states." i'm going to have to see how they did this Jun 16 06:39:32 saw it Jun 16 06:39:32 in the conference there was a lecture named "get off my thread!" Jun 16 06:39:32 heh Jun 16 06:39:32 it was about techniques to have smoother apps Jun 16 06:39:32 and that was one of the things Jun 16 06:39:32 that should have been a fun lecture Jun 16 06:39:32 yes Jun 16 06:39:32 I was sure it would be a n00b AsyncTask lecture Jun 16 06:39:32 ended up being very good Jun 16 06:39:32 about Future Jun 16 06:39:32 and stuff like that Jun 16 06:39:32 very nice Jun 16 06:39:32 hm Jun 16 06:39:32 do you know Guava lib? Jun 16 06:39:32 i don't use it Jun 16 06:39:32 the only lib i use often is rxjava Jun 16 06:39:32 hmmm Jun 16 06:39:32 it's a set of callbacks for Future Jun 16 06:39:33 wabz: like Dart? Jun 16 06:39:33 ugh Jun 16 06:39:33 i wonder if Kotlin Jun 16 06:39:33 what happens when it stops win7 and win8.2 has got100% tablet phone like buttons to scroll and nothing custom to do ? Jun 16 06:39:33 and it will stop keyboard support and will be all touch ? Jun 16 06:39:33 stop buying WP g00s Jun 16 06:39:35 reuse their investment in AS Jun 16 06:40:43 thepoosh wabz or something like Enyo Jun 16 06:40:47 guava is pretty nice Jun 16 06:41:08 gordon_ its got a lot of methods though Jun 16 06:41:17 oh, i think like that since there is a limit Jun 16 06:41:27 I like Predicates Jun 16 06:41:41 bring in guava, play services, and only a few other big libs and there you go .. boom Jun 16 06:41:43 and fucntional-like things Jun 16 06:41:57 and 5 mb app Jun 16 06:42:02 because of pro guard ;) Jun 16 06:43:38 http://code.google.com/p/quickdic-dictionary/wiki/UsingSourceCode Jun 16 06:43:57 ADT bundle alone not enuf ? Jun 16 06:46:47 doieo: lacks maven Jun 16 06:53:34 wHo i pM ? Jun 16 06:56:06 Any idea why my res folder gets duplicated ? my res folder has 27MB of resources and the APK size is 52 MB and when I extracted the APK I found that the res files are duplicated ! I am using gradle with buildToolsVersion "19.1" . Any one has this problem before ? Jun 16 06:57:50 hey does my email address show when i publish to google play? Jun 16 07:22:28 Hi all, question about adds. How many do you get for each click on an add inside your app? Jun 16 07:26:40 I seem to get something between 1c and 3c per click... Jun 16 07:32:01 Leeds: 1-3 euro cent, right? is there a limit of revenue per hour or another max value for revenue? Jun 16 07:32:06 US Jun 16 07:32:25 but at that level there's not much difference :) Jun 16 07:32:52 Thank :) Jun 16 07:33:11 unless you think you're going to do more revenue than Rovio or something, I would be worrying a lot more about *minimum* payments than maximum ones Jun 16 07:33:28 lol Jun 16 07:33:52 and if you were doing that sort of volume, you wouldn't be asking revenue advice from randoms online - you'd be sitting down for a chat with Larry Jun 16 07:33:58 you gotta do it for the love of the game Jun 16 07:42:30 anyone using intellij here ? Jun 16 07:42:42 how can i setup two annotation processors ? Jun 16 07:42:48 want to get butter knife and dagger Jun 16 07:43:25 butter knife has instructions at the bottom Jun 16 07:43:27 its website Jun 16 07:43:37 and i'm going to bed so good luck! Jun 16 07:43:41 Hi danijoo Jun 16 07:43:54 JakeWharton: good night :) I got butterknife already, want add dagger Jun 16 07:44:23 I have added few radio buttons in the activity_main.xml file Jun 16 07:44:38 I guess he got some sort of signal like electric shock for words 'butterknife, dagger, otto' Jun 16 07:44:51 when I see the graphical layout it shows false for all the strings Jun 16 07:45:13 radio1 false,radio2 false and submit false Jun 16 07:45:58 This is waht I have in the text section @+string/btn_submit,@+string/rdb_male,@+string/rdb_female Jun 16 08:11:16 hi guys Jun 16 08:13:10 helro Jun 16 08:15:07 Hi guys, i'm a computer science graduate, but never thought about making apps for iphone or android in the past... recently it has really peaked my interest and I actually have an idea in mind at the moment... does anyone know any good web sites for learning or useful resources for developing apps for smart phones? :D Jun 16 08:16:27 hey therue Jun 16 08:16:48 hello Jun 16 08:16:49 :D Jun 16 08:17:05 there are lots of getting started tutorials Jun 16 08:17:21 using android SDK to make hello world app Jun 16 08:18:57 i know iphone apps is written with objective-c while android is coded with java right? i basically have to choose what route to go ? even if i want to create the app for both platforms, i will have to code them individually with C, and then with java? Jun 16 08:19:30 therue: u can code your app in c or other languages if u want Jun 16 08:19:48 most of the good shit for android comes in java form tho Jun 16 08:20:06 ya Jun 16 08:21:52 anyone else get an email about OpenSSL from "google play" Jun 16 08:22:05 i'm pretty sure it's balls, but i'd like to be sure Jun 16 08:22:37 no, i didnt get that Jun 16 08:23:08 https://www.google.com/search?q=Security+Alert%3A+You+are+using+a+highly+vulnerable+version+of+OpenSSL Jun 16 08:24:00 seems to be mostly air devs complaining, and we've only received it for a 3rd party app that we replaced Jun 16 08:24:38 we're not even using openssl, and I strongly suspect this is a scam/prank/whatever Jun 16 08:24:58 there's nothing mentioned on any google pages that I can see and no way to authenticate this email Jun 16 08:25:11 but the task of sorting this out has fallen to me Jun 16 08:25:17 to prove a negative Jun 16 08:25:22 if its a scam how does it work Jun 16 08:25:25 by making you feel bad Jun 16 08:25:42 ? Jun 16 08:28:38 hmm, seems like intellij doesnt found ButterKnifeProcessor from classpath Jun 16 08:29:20 thats a really fearsome sounding name for a processor Jun 16 08:29:32 still better than 'celeron' Jun 16 08:31:23 what coding editor do you guys use? notepad++ ? i used to use that alot back at school :) Jun 16 08:31:23 nick9998, wasting my time Jun 16 08:32:12 i use vim Jun 16 08:32:36 but i am hopelessly stuck in the past Jun 16 08:34:17 notepad++ is good Jun 16 08:34:34 sublime is nice too Jun 16 08:34:44 sublime is aa good one Jun 16 08:34:45 is notepad++ only for windows? Jun 16 08:36:30 intellij is nice too Jun 16 08:36:55 Vim, IntelliJ, and Sublime Text are god. Jun 16 08:36:58 Use nothing else. Jun 16 08:37:13 You can also use emacs if you're one of _those_ people. Jun 16 08:39:00 I just got "[2014-06-16 09:36:40 - HelloWorld] Unable to resolve target 'android-8'" ... What does this mean? All I've done is open eclipse (in OS X), file -> new -> project -> Android project from existing code, set the root directory, finish. Jun 16 08:39:30 you probably didnt installed sdk for android 2.2 Jun 16 08:39:38 just change target in gradle Jun 16 08:40:19 What does "resolving a target" actually mean? Jun 16 08:40:24 Is it wrong of me to keep seeing "gradle" as "grundle"? Jun 16 08:40:44 it's wrong to using ant instead of gradle Jun 16 08:40:59 I use sbt. Jun 16 08:41:01 for me you can spell it as you like Jun 16 08:41:07 can be sbt too Jun 16 08:41:07 That's one transposition and letter away from std. Jun 16 08:41:16 if you can use all libs without problem Jun 16 08:41:23 Haven't had one yet. Jun 16 08:41:34 hope you wont hit the wall Jun 16 08:41:48 Depends on what wall you're referring to Jun 16 08:41:50 how's sbt support for custom libs ? Jun 16 08:42:06 Nilium: annotation processning, libs with C code Jun 16 08:42:07 You mean Android project libraries? Jun 16 08:42:15 yes Jun 16 08:42:20 and more Jun 16 08:42:28 Using pfn's plugin, it's fine. Jun 16 08:42:39 As for annotation processing, never been an issue for me 'cause I don't use 'em. Jun 16 08:42:55 how are you injecting views ? Jun 16 08:43:08 findById ? Jun 16 08:43:08 Well, aside from ones to signal to scalac that it needs to force tail call optimization. Jun 16 08:43:25 wasnt it better in sbt 0.13.2 ? Jun 16 08:43:28 Something like findById. Jun 16 08:43:39 I have a library I wrote that does some things to save me time on error checking. Jun 16 08:44:06 Can't say anything about the differences between specific versions of sbt. Jun 16 08:44:50 My fragmentmanager.getFragments (list) contains a null at 3th position, what can be the problem of that? (4 - 5 are right but 3 is null) Jun 16 08:45:04 Thirth. Jun 16 08:45:19 Threeth? Jun 16 08:45:27 Trois'th? Jun 16 08:46:32 Nilium: thanks for help Jun 16 08:46:33 What does "resolving a target" actually mean? <-- anyone? Jun 16 08:46:53 Don't get bent out of shape because I find 3th funny -_- Jun 16 08:46:53 Hi, does anyone know how to view the permission of a certain file through java code at runtime? Jun 16 08:46:57 Nilium: I like how scaloid does things Jun 16 08:47:01 Target device? Target platform? Target executable? Jun 16 08:47:04 pi--: maybe checking the runtime api level? Jun 16 08:47:07 Haven't touched scaloid. Too much sugar. Jun 16 08:47:16 where is this fro,? Jun 16 08:47:17 Nilium: :( Jun 16 08:47:19 ideally i wanna check if a file exist and it's permission, whether it's readable/writable/executable Jun 16 08:47:20 thanks Jun 16 08:47:41 I mainly stick to spastic and a few odds and ends that can be handled preferably at or around compile-time Jun 16 08:49:06 thepoosh: http://pbrd.co/1nfkFde Jun 16 08:49:18 pi--: in eclipse project->properties->android and check the runtime you want which you had installed from the sdk manager Jun 16 08:49:49 pi--: this means your sdk manager doesn't have the desired sdk Jun 16 08:50:02 you need to download it Jun 16 08:50:07 from the sdk manager Jun 16 08:50:12 api 8 sux Jun 16 08:51:20 thanks shmooz, thepoosh! I will try that now.. Jun 16 08:51:27 gl Jun 16 08:51:29 where do i add the keystore information Jun 16 08:51:40 nick9998: how do you mean? Jun 16 08:51:41 on 'android' command line? Jun 16 08:51:54 i made my .keystore file Jun 16 08:51:55 how do you create a new keystore? Jun 16 08:51:58 ok Jun 16 08:52:03 now, when you export it Jun 16 08:52:09 you need to add the relevant info Jun 16 08:52:34 pi--: not like I said it to you few lines above.. Jun 16 08:53:22 sorry gordon_ I got stuck at "gradle" ... Googled it & got confused... Jun 16 08:53:42 otoh I have managed to locate the android SDK manager Jun 16 08:58:46 hi there! I'm trying to use mediarecorder with outputformat(7) (RTP_AVP). Has anyone figured how to do this? Jun 16 08:59:04 can someone give me a advice? Jun 16 08:59:40 I've digged through a lot of cpp files that are used wie jni... still, i didn't get it. Jun 16 09:01:28 I'm able to stream recorded wiedeo using outputformat(8) (MPEG2TS)... but as soon as i switch to rtp_avp no data is written on the socket that i passed outputfile with a file descriptor Jun 16 09:04:06 I think I see what is going on... Juce is creating an android project that uses this obsolete API version. Jun 16 09:06:01 What I don't quite get is that I was able to successfully create a hello world on eclipse, and deploy it to my android device which runs 4.1.2 -- but if I look in the SDK package manager, it claims that only 4.4.2 is installed http://pbrd.co/1nflMJR Jun 16 09:07:25 How's that working? Is it just due to the fact that this simple test app only uses API calls that haven't changed between 4.1.2 and 4.4.2? Jun 16 09:09:50 how did you guys decide to go with android instead of iphone? when it comes to choosing what platform to develop for Jun 16 09:11:17 I use an iPhone and develop for Android. Jun 16 09:11:49 The simple answer is I didn't want to cough up $100 up front to test on a device. Jun 16 09:11:50 iphone dev is painful Jun 16 09:11:58 Besides that, I prefer iOS stuff. Jun 16 09:12:33 I also come from a C and C++ background though, so being able to use those for iOS and Mac OS just makes me happier. Jun 16 09:12:36 I've been avoiding apple since the apple 1 Jun 16 09:13:01 I got a Atari 400 and Commodore 64 instead Jun 16 09:13:13 Try building a hello world app onto an iOS device. It is a complete nightmare taking several weeks if you are not already an Apple developer member. Jun 16 09:13:24 pi--: Eh? Jun 16 09:13:27 hi all Jun 16 09:13:44 hey Maziz Jun 16 09:13:55 pi--: That might be true if you're completely and utterly incompetent and have daily amnesia. Jun 16 09:14:07 Actually most of that has been sorted out now. A couple of years ago it was very tiresome. But now Xcode does everything for you IIRC. Jun 16 09:14:24 A couple years ago it was a few clicks and done. Jun 16 09:14:35 do i need to use the license key Jun 16 09:14:36 I know 'cause it's been a couple years since I last had developer membership. Jun 16 09:14:46 I did a lot of linux and java in the 90's and then my friend told me this android stuff was linux and java Jun 16 09:14:57 Maybe you're thinking more like 6 years ago instead of a couple. Jun 16 09:15:23 hm that was not my experience. I found Android much easier to deploy to. yer maybe it was more than two years :) Jun 16 09:15:24 sort of linux and sort of java Jun 16 09:15:43 yeah I found that out the hard way Jun 16 09:15:46 I find both to be fairly annoying. Jun 16 09:16:13 developer membership? you need to become a member to be an apple developer? Jun 16 09:16:14 :D Jun 16 09:16:22 That said, I'd still prefer iOS, if only because I don't have to suffer the pain that is the activity lifecycle. Jun 16 09:16:49 In other words, that thing that utterly hates everything you love, including orientation changes. Jun 16 09:17:12 "You're changing? Well I'm having none of that!" *shoots self* "Hi, I'm your new activity!" Jun 16 09:17:31 "I see you have a corpse here, let me just gobble it up and we'll get started." Jun 16 09:17:50 I'm now only interested in multiplatform technologies. I am currently figuring out how to get Juce to deploy to android. Jun 16 09:17:56 The Android activity lifecycle: cannibalistic and suicidal. Jun 16 09:18:04 Autocannibalistic, maybe. Jun 16 09:18:07 yea fuck it ,i'm not using the license key Jun 16 09:18:41 Nilium: if I remove setContentView those rotation problems don't happen Jun 16 09:19:51 pi--: look at robovm if you're interested in multi-platform Jun 16 09:20:10 Or RubyMotion, since apparently that's getting an Android target. Jun 16 09:20:30 Debatable what amount of code you can share between targets though. Jun 16 09:20:43 Pretty sure Juce is the solution I want, I'm writing real-time audio code. I was using unity3d and that wasn't hacking it... Jun 16 09:21:19 Unity irks me in a lot of weird ways Jun 16 09:21:36 lol Jun 16 09:21:38 Like, I really want to like it, but it's almost a death by a million cuts sort of situation Jun 16 09:22:00 heard it gets some null pointers, is it true ? Jun 16 09:22:13 pi--: is that the most efficient audio lib ? Jun 16 09:22:13 Not sure, haven't done anything for Android with it. Jun 16 09:22:37 Nilium: Unity3d *should* be tolerable as it allows you to write native Android plug-ins Jun 16 09:22:47 Should be in theory Jun 16 09:22:53 how can you totally remove fragments from fragmentmanager? getFragments() contains null objects now Jun 16 09:22:59 In practice it's kind of a question of how much crap you're willing to put up with Jun 16 09:23:09 And that's before you even get on Android Jun 16 09:23:51 I may also be heavily biased in certain directions since I've written my own engine and it is the Right Way to do things in my mind Jun 16 09:24:00 shmooz: I'm pretty sure, yes. There are a couple of others that handle OS X / Windows / Linux, but none of them handle iOS / Android Jun 16 09:24:04 Footnote: and only in my mind Jun 16 09:24:30 Also Juce abstracts GLES2 graphics and UI Jun 16 09:24:57 And probably networking and a ton of other stuff, I haven't dug through it yet Jun 16 09:25:20 pi--: what did it cost you to get unity ? Jun 16 09:25:44 Unity has its prices up on its site for various platforms. Jun 16 09:25:52 shmooz: it is free! Unless you want to pay for the pro Version Jun 16 09:26:03 Or Android support. Jun 16 09:26:05 Or iOS. Jun 16 09:26:23 No, that is free as well -- has been for a couple of years now Jun 16 09:26:37 I seem to remember certain Android/iOS things being paid. Jun 16 09:26:55 Ah yeah, iOS Pro and Android Pro Jun 16 09:26:58 Certain things are Pro only. Jun 16 09:27:13 And.. BlackBerry 10 Pro. Jun 16 09:27:18 Insert stifled laughter here. Jun 16 09:27:31 QNX is a good OS Jun 16 09:27:47 The SDKs for BB are not. Jun 16 09:27:51 too bad BB sunk it Jun 16 09:28:26 qnx had the ability to 'slide off' running apps onto other people's desktops Jun 16 09:28:29 I like QNX sans Blackberry, though I also liked the Playbook 'cause it had really nice hardware and when the software was good (i.e., not Flex or HTML), it was really good. Jun 16 09:29:13 Once I got into the SDK for the Playbook, it was clear enough they hadn't given a single thought to how the hell you were supposed to make usable apps, though. Jun 16 09:29:33 'Cause both Flex apps and the HTML-based apps had performance issues through the roof. Jun 16 09:30:03 BB10 seemed to have added Qt, but it was kind of a too-little-too-late situation. Jun 16 09:33:03 BB could target cars and other real time stuff with it to stay alive Jun 16 09:33:21 Won't happen. Jun 16 09:33:40 BB's recent history is a series of decisions wherein they look at what's popular and go "that's just a fad" and ignore it until it's too late. Jun 16 09:33:45 I think they do Audi's now Jun 16 09:40:51 yeah the 2015 Audi TT will be QNX Jun 16 09:41:29 guys quick question Jun 16 09:41:49 if you addToBackStack a fragment, and replace with it, will the fragment added to the backstack be destroyed? Jun 16 09:46:15 How to fix this error? --> make: *** No rule to make target `/Users/pi/build/core/build-local.mk'. Stop. Jun 16 09:46:35 http://pbrd.co/1nfo6QY <-- screenshot Jun 16 09:47:06 I've been following a guide here http://www.juce.com/forum/topic/deploy-hello-world-android-using-osx and I've just got to the end of it and hit the run button Jun 16 09:48:46 ndk? Jun 16 09:49:48 Maziz: how do you mean? Jun 16 09:50:08 is that NDK project? Jun 16 09:50:09 Also, it shouldn't be creating a /build/ folder in my /~ Jun 16 09:50:49 I don't quite understand NDK, but yes, I believe NDK is needed for this project Jun 16 10:00:20 pi why do you think that? Jun 16 10:01:21 Are the Ant properties loaded from a file prefixed by the filename ? Jun 16 10:01:51 Ant properties are usually located in a file called project.properties Jun 16 10:02:33 i.e. Inside name.properties I have property: a=22 and inside my build.xml I do how can I access a from build.xml with ${a} or ${name.a} ? Jun 16 10:02:54 do you need to have a feature graphic or promo graphic? Jun 16 10:03:07 it keeps telling me: We might be wrong, but we found some things that don't look quite right. You might want to check the fields for the highlighted languages." Jun 16 10:03:40 CodePulsar: I'm opening up my code now. Lemme check and I'll let you know. Jun 16 10:08:03 petecouture: I glanced through another guide that mentioned NDK... Also A few minutes back I got an error saying "NDK folder not set correctly" and I had to repoint it Jun 16 10:08:50 pi--: When you link a file you can also do Jun 16 10:08:59 I've never used loadproperties before just property Jun 16 10:09:26 In the properties file you can just write vars like ndk.dir=/Applications/android-ndk-r9d Jun 16 10:10:26 But I think I have accomplished the same thing by putting it into some text box.. Jun 16 10:11:26 i just published my first app! Jun 16 10:12:59 nick9998: congratulations! Jun 16 10:13:26 thanks squ! it says i have to wait a few hours for the listing.. Jun 16 10:13:47 ah got it, eclipse doesn't like spaces NDK path Jun 16 10:31:42 hi, quick question. The libstagefright library looks for the media_codecs.xml file in /etc/media_codecs.xml. See here: https://github.com/aosp-jb/platform_frameworks_av/blob/master/media/libstagefright/MediaCodecList.cpp#L51 - however, all devices install this file to /system/etc/. How is that possible? Jun 16 10:31:48 I'm asking, because I've got a device that has the file in /system/etc/ and it warns that it cannot be found. Putting it in /etc/ works, though Jun 16 10:37:27 can I use accountmanager also If I use for web service login and password instead of the token? Jun 16 10:40:29 hi guys, do you know how to customize the shortcut to run the app as Android Application on ADT ? Jun 16 10:53:12 I will ask once again, maybe someone will know - how can I run two annotation processors in intellij ? Jun 16 10:58:03 gordon_: cant you simple add them both in the preferences? Jun 16 10:58:23 danijoo: what preferences ? Jun 16 10:58:30 maybe I dont know something Jun 16 10:58:51 preferences -> compiler -> Annotation Processors Jun 16 10:59:48 I can setup one of them Jun 16 10:59:51 but cannot do both Jun 16 10:59:58 oh ok Jun 16 11:00:33 I think gradle can also *somehow* manage annotations. at least it does so for my androidannotations without doing anything in intellij settings Jun 16 11:00:45 if it was gradle project it wouldnt be any problem Jun 16 11:00:50 it's standard android project Jun 16 11:00:54 ah :) Jun 16 11:01:20 there is scanning from classpath, but even if I put FQ name it doesnt work Jun 16 11:05:18 o/ Jun 16 11:05:36 when i add an Uri to an intent Jun 16 11:05:41 as an extra Jun 16 11:05:50 how can i get it back from the data on activityresult? Jun 16 11:07:51 Found it, thank you though Jun 16 11:11:01 Using a nested linear layout as a button what would be the best way to visualize/animate its selection? Currently, I am using a Touch Listener to change the color on ACTION_DOWN or change it back on ACTION_UP Jun 16 11:11:19 platzhirsch: use a selector Jun 16 11:12:18 danijoo: that makes a bit more sense than my hack, jeez. Thanks Jun 16 11:12:34 yw Jun 16 11:16:47 I have a GIF for a loading animation. Do you see any advantages in doing the animation in-house with Android animations? Jun 16 11:23:56 Anyone know if Picasso can be made to use localCacheOnly on a per-request basis? All I can see is skipMemoryCache - which is the oposite :) Jun 16 11:25:29 hey guys Jun 16 11:25:35 i'm trying to start an intent on a dialog Jun 16 11:25:58 but getOwnerActivity.startActivityForResult() is returning a null Jun 16 11:26:00 what do? Jun 16 11:30:41 jvrodrigues: interface and callback Jun 16 11:37:55 Three dots/circles animate them by fading them in and out on , is that a drawable animation or a view animation? Jun 16 11:49:11 gordon_, ((Activity) context).startActivityForResult() worked great for me **** BEGIN LOGGING AT Mon Jun 16 11:52:42 2014 Jun 16 12:03:05 anybody in here knows some details about the output format 7 (RTP_AVP) from mediarecorder? Jun 16 12:09:46 How can I close my app? finish() just put the app on background Jun 16 12:13:19 yoavst: you can Jun 16 12:13:30 you can't, it's taken care of by the OS Jun 16 12:15:05 yoavst: this is simply not how android works. Jun 16 12:16:36 of course he can, but he shouldn't Jun 16 12:17:20 yoavst: if a user puts your app in the background, android will close it if memory gets low Jun 16 12:18:01 So when you press back you don't kill the app? Jun 16 12:24:30 curious about that one too yoavst, i have heard it does but never seen source Jun 16 12:26:05 I think this might be helpful: http://developer.android.com/reference/android/app/Activity.html Jun 16 12:26:30 it's best not to try to fight android lifecycle Jun 16 12:27:03 Any animation libraries to suggest for animating three circles fading in and out? Jun 16 12:27:58 tus: you could easily check this by overriting onCreate + onResume printing a log message. then press back, open the app again and see if its resumed or recreated if you are interested Jun 16 12:28:42 good idea Jun 16 12:29:29 from a quick test the app is still shown in the "recent apps" after pressing back, so i guess its only paused Jun 16 12:34:46 hey people… is it possible to create shared jar's between applications on an android device? Jun 16 12:35:01 basically so I don't need to deploy the same jar's in two separate applications. Jun 16 12:35:09 i thought mono/xamarin did something like this. Jun 16 12:35:15 But how do u know if both app installed? Jun 16 12:35:33 and what to do if the one with libs is installed and the other isnt? :) Jun 16 12:35:53 two separate apk's? Jun 16 12:36:05 i'm just curious how xamarin does this Jun 16 12:36:20 it must be because they only do it for the mono side Jun 16 12:37:01 hey guys, what made you guys decide to develop for android instead of apple? i'm just starting out, and i'm trying to decide between the two :\ such a hard choice lol Jun 16 12:37:26 google baited us with cookies Jun 16 12:37:40 therue: do you have experience with other code languages? Jun 16 12:38:49 I started with Android (basics learned on school 4 months), now developing both (1 year) Jun 16 12:39:16 had an android device in my hand, and a java background from university. so the choice was quite easy :) Jun 16 12:41:22 therue: don't need a mac to dev for android (can use one, though), don't need to pay $100 to even attempt to code for it, don't need to wait weeks for others to be able to use your app, etc etc. Jun 16 12:42:57 you need a mac computer in order to code for iphone apps? Jun 16 12:43:02 yes Jun 16 12:43:08 that's all the SDK runs on :/ Jun 16 12:43:08 aww G_G Jun 16 12:43:09 lol Jun 16 12:43:59 can someone recommend some good resources for learning apps development for android? Jun 16 12:44:09 i have learned java in the past.. but that was years ago Jun 16 12:44:24 also im a mac user, I always find it funny how apple manages to put developers that many rocks in the way and still got a that bug user/app base.. Jun 16 12:44:46 big* Jun 16 12:45:37 therue: http://developer.android.com/training/index.html Jun 16 12:46:20 i need to learn java first right? Jun 16 12:46:45 i have to relearn it. it's been too long Jun 16 12:50:53 Guys. Android NDK - Java Native Interface anyone? Jun 16 12:51:13 'this' refers to the current object right? Jun 16 12:51:22 in Java Jun 16 12:52:27 don't you need a windows machine to code for windows apps? ;) isn't it the same thing? Jun 16 12:52:49 same with ios and swift, Microsoft don't formally support C# on anything but windows, xbox. Jun 16 12:53:08 they used to support osx/firefox for silverlight, but that went nowhere. Jun 16 12:54:15 same thing... Jun 16 13:02:25 When I go to DDMS view in eclipse, and the File Explorer, navigating my AVD, then when I try to Run my project in eclipse, eclipse says "Launching myprojectname 100%", but it often does not show up in the AVD. The only solution so far that works then is to close the AVD, and then run "Run" again to restart the AVD and run the program Jun 16 13:03:12 Is there something like that the AVD goes into some "pause mode" when I check it out with the File Explorer and if so how can I get it out of that mode for uploading and running the project app again? Jun 16 13:05:07 hey FrancescoV you still there? :D Jun 16 13:05:21 therue: yes I am Jun 16 13:05:52 jvrodrigues: if you'd get class cast exception Jun 16 13:05:54 that link you sent me... the getting started one Jun 16 13:05:56 that is that code :D Jun 16 13:06:12 that's for someone who already knows java right Jun 16 13:06:14 ? Jun 16 13:06:45 therue: http://docs.oracle.com/javaee/6/tutorial/doc/ Jun 16 13:07:19 er... not ee... Jun 16 13:07:48 bloody oracle... anyway, there are lots of java tutorials, books, etc. Jun 16 13:08:20 ok :) Jun 16 13:08:32 i did learn java in the past at school, just haven't touched it in years Jun 16 13:08:33 therue: yes but if you learned Java a long time a go, you should understand the basics, there are also good ebooks to learn Android Development but I started with the link I send you Jun 16 13:09:11 i see. thanks Jun 16 13:10:31 therue: when was the last time you used java? It became very easier to code since Java 5 due to Generics Jun 16 13:10:41 much easier Jun 16 13:11:19 2001-2002 lol Jun 16 13:12:19 therue: Same time as my first introduction to Java. I hated it then. But I love it since Java 5 Jun 16 13:12:38 therue: Look up "what's new in java 5" Jun 16 13:12:51 ok Jun 16 13:13:33 should i actually re-learn java as a whole... or should i just ge ta book on android programming ? Jun 16 13:15:31 hello, is there any place i can ask ndk-specific questions? Jun 16 13:15:33 therue: since these books are normally teaching by example, you will probably be able to create some simple android apps, but when complexity is needed, you will have to write java code Jun 16 13:15:49 to be precise, i'm using the ndk and would like to get absolute device orientation Jun 16 13:16:07 but the gyroscope gives me relatives Jun 16 13:17:17 i understand you're supposed to combine the gyro and accelerometer input in some way to get the device orientation vector or what's-it-called? Jun 16 13:17:47 What's an easy way to trigger a sound that passes AUDIOFOCUS_LOSS_TRANSIENT in my app? Jun 16 13:18:11 I don't know how to simulate alerts in the emulator or on my devices Jun 16 13:19:09 What I mean is, I want to test if my app handles the LOSS_TRANSIENT message in the OnAudioFocusChangeListener , but I don't know how to get the emulator to e.g. simulate a new message or email alert Jun 16 13:19:45 entity: http://www.thousand-thoughts.com/2012/03/android-sensor-fusion-tutorial/ Jun 16 13:20:07 entity: maybe that document can be helpful. check page two. Jun 16 13:22:04 fabiofb: so you're supposed to use the accelerometer + magnetometer to get the device orientation? Jun 16 13:24:43 entity: http://developer.android.com/guide/topics/sensors/sensors_overview.html Jun 16 13:25:07 entity: TYPE_ORIENTATION combines gravity + magnetic (compass) to find orientation Jun 16 13:25:34 entity: http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix%28float[],%20float[],%20float[],%20float[]%29 Jun 16 13:26:43 oh, awesome Jun 16 13:26:46 fabiofb: thank you Jun 16 13:29:33 entity: you're welcome. I actually don't know anything about sensors. I googled it for you out of curiosity. Jun 16 13:30:30 just curious, what did you google for to get to the site with code, fabiofb? i couldn't find anything myself :< Jun 16 13:32:58 entity: android absolute orientation Jun 16 13:33:15 entity: then android sensors Jun 16 13:33:32 entity: then adnroid getrotationmatrix example Jun 16 13:38:14 how can I set a subview in my layout? Jun 16 13:38:24 I have a SurfaceView which I would like to apply to one portion of my layout Jun 16 13:46:34 Hello. I'm trying to send an image file to a server using a multipart request. I've already tried a lot of tutorials without success. I need to send a file and some string data in the form, like the user token. Can anyone point me any tutorial? Jun 16 14:01:52 anyone have expereince working with gps system on smart phones? Jun 16 14:11:25 therue some yes Jun 16 14:16:07 I need to send a message from an Intent Receiver that listens for AUDIO_BECOMING_NOISY to the bound instance of my background media service. Should I use an intent, or should I try to bind to the service from the intent receiver and do it that way? Jun 16 14:29:00 http://pastebin.com/HgjczHwj Jun 16 14:29:02 hi Jun 16 14:29:10 ho i can solve this error? java.lang.NoClassDefFoundError: android.security.MessageDigest Jun 16 14:34:35 according to this, android.security.MessageDigest was removed in 3.0 + (http://stackoverflow.com/a/11407929/1747491) Jun 16 14:34:40 t0th_ Jun 16 14:34:42 i have two items in a relative layout and when i set the item below though layout_below, it stays behind the first item Jun 16 14:34:46 is this nrmal Jun 16 14:35:00 shouldnt layout_below align the top of the second item with the bottom of the first? Jun 16 14:35:07 jvrodrigues pastebin your xml Jun 16 14:36:18 nvm Jun 16 14:36:24 but it is used in google maps library Jun 16 14:36:28 i had it set wrong Jun 16 14:36:33 thank you though Jun 16 14:36:41 t0th_ yeah, that I am not sure about. what version of the lib you using Jun 16 14:37:20 t0th_ check the comments in that answer Jun 16 14:37:49 t0th_ actually, check the answer below the one I linked Jun 16 14:43:13 if i create java object on native side, who is responsible for it's deletion? how long it will be alive? Jun 16 14:47:25 ww Jun 16 14:50:22 vklimkov, you are Jun 16 14:51:27 gordon_, indeed, scaloid has too much sugar and too many methods, macroid is a better library Jun 16 14:54:37 pfn: and how i should delete jobject created with NewObject? Jun 16 14:54:51 vklimkov, damned if I know, look at the jni docs Jun 16 14:58:29 ah. seems i need to create global ref from it and then delete it. thanks Jun 16 14:59:57 vklimkov: JNIEnv::DeleteLocalRef() will delete a JNI local reference, which is what's returned by JNIEnv::NewObject() Jun 16 15:00:11 vklimkov: however, that's not the same thing as "deleting an object". the object won't be collected until a GC runs. Jun 16 15:00:24 vklimkov: JNIEnv::Delete*Ref() just delete _references_ to that object Jun 16 15:02:16 jonp: how GC will know that i'm done with this object on native side? i want to keep it for a while Jun 16 15:02:47 if you need to keep the object alive, use JNIEnv::NewGlobalRef() Jun 16 15:03:07 the object will be kept alive as long as there is a global ref referencing it Jun 16 15:03:17 (or a local ref, but those are cleared upon return to Java) Jun 16 15:03:28 oh. now it's clear. thanks Jun 16 15:24:28 Hello everyone, I have a few questions I hope you can help me with. Jun 16 15:24:52 I assume recovery images are device specific? Jun 16 15:25:04 wrong channel #android-root Jun 16 15:25:20 My apologies, thanks for the redirect! Jun 16 15:25:24 yw Jun 16 15:48:38 What should I used to call a function once every x seconds, like an equivalent of setInterval in javascript? Jun 16 15:54:24 is there any unofficial convention of what order inheritance overrides, private class functions, interface overrides, and static classes are in? what order do you prefer? Jun 16 16:00:41 pfn: dont know macroid Jun 16 16:01:40 looks interesting Jun 16 16:01:43 if i set a clicklistener in my getview Jun 16 16:02:02 does the itemclicklistener i have in my listview stops working? Jun 16 16:02:13 there's dark magic at work in my application i tell you Jun 16 16:02:33 pfn: can I put properties to everything ? Jun 16 16:02:38 I mean gui ones Jun 16 16:02:45 and can I see it in designer ? Jun 16 16:03:06 well I problably can if I override isDesigner() Jun 16 16:06:07 in java, will a primitive boolean just return false if not initialized? Jun 16 16:06:26 mhm. Jun 16 16:08:23 jvrodrigues: As long as you click somewhere not covered by your OnClickListener, the OnItemClickListener will work just fine Jun 16 16:08:57 anyone know actionscript ? Jun 16 16:09:58 mattblang: shouldn't accessing an uninitialized thing be a compiler error? Jun 16 16:10:07 gordon_, dunno, I don't use most libraries Jun 16 16:10:21 markmarkmark, not on primitives in java. Jun 16 16:10:30 it's only a lint warning for objects. Jun 16 16:10:42 Mavrik thank you, I tried asking in ##Java since it is fundamentally a Java question. all I had gotten was try it yourself and ask in #android-dev, since I had mentioned the keyword Android. Jun 16 16:10:56 yes, people are dipshits there. Jun 16 16:10:58 only locals don't have uninitialized values Jun 16 16:11:12 all member variables have uninitialized values depending on their type Jun 16 16:11:15 if it's local it's a compiler error according to eclipse Jun 16 16:11:18 markmarkmark yeah, you are right. but no compiler error thrown, so figured java must return false Jun 16 16:11:19 null, 0, false, etc. Jun 16 16:11:21 i guess that's the keyword local Jun 16 16:11:47 pfn oh, snap Jun 16 16:12:04 pfn didn't realize that. yeah, it is a member variable of one of y activities Jun 16 16:12:19 *my Jun 16 16:12:28 ? Jun 16 16:13:40 and yeah, ##java doesn't agree with oracle Jun 16 16:14:49 this is odd Jun 16 16:14:57 the button on my getView is bugging my whole interface Jun 16 16:15:01 never really gotten that exact nitpick about those people... Android Java behaves pretty much exactly the same as JDK6 -_- Jun 16 16:15:24 does the button override some of the view properties? Jun 16 16:15:25 jvrodrigues, what's your "getView"? Jun 16 16:15:37 in my base adapter Jun 16 16:15:50 i have a listview and i needed to add a button to some of my item Jun 16 16:15:51 s Jun 16 16:16:10 when that happens though, the whole drag-and-drop listview i had Jun 16 16:16:12 Mavrik lol, yeah, that was kind of my thought. guess ill make sure to never mention Android again, though ill probably just ask you guys because that was a little frustrating Jun 16 16:16:13 stops working properly Jun 16 16:21:56 this button definitly makes my listview a confused bunny Jun 16 16:22:03 even without the clicklistener Jun 16 16:22:24 the existance of the button screws up the view.gettop and etc Jun 16 16:23:18 thats because the button doesn't propagate touch events Jun 16 16:23:30 ah Jun 16 16:23:36 use android:focusable=false and android:focusableInTouchMode=false on the button Jun 16 16:23:48 you, sir, are a gentleman and a scholar Jun 16 16:35:53 Hi All Jun 16 16:37:38 how can I monitor what apps are being installed or removed on a device? is it possible to make a service to do this? Jun 16 16:49:37 Mavrik, it still didnt work Jun 16 17:22:54 is there a guide for keystore for small companies? Do all employees just use the same keystore or can we have individual ones with same Organization name? Jun 16 17:23:28 you can have as many as you want Jun 16 17:24:35 Mavrik, for the same company to publish the same app? Jun 16 17:24:42 you have to sign an app with the exact same key, in order to be able to upgrade it on device, or upload an updated apk to the play store Jun 16 17:24:43 of course not Jun 16 17:24:58 I want to make a parental control app for my son, how can I detect what apps he's installed from play store? Jun 16 17:25:03 Afzal, why would all developers even need publishing permissions? Jun 16 17:25:05 So I was wondering, does the Application class instance get called the first time for any application? If I overloaded it, and threw some functionality in there, would it essentially be calling that code even before a Receiver? Jun 16 17:25:06 they have their debug keys. Jun 16 17:25:26 benzap, yes. Jun 16 17:25:46 Mavrik: even for auto-start receivers? Jun 16 17:26:38 Mavrik, Hmm, I guess we'd need to have every release go through the same procedure to sign the apk. For a small company, it just makes sense to let everyone sign and publish the app though Jun 16 17:27:00 benzap, which part of this explanation is unclear: http://developer.android.com/reference/android/app/Application.html#onCreate() ? Jun 16 17:27:11 Thanks JesusFreke and Mavrik Jun 16 17:27:26 Mavrik: haha, sorry, that's very clear Jun 16 17:27:30 hi everyone Jun 16 17:27:30 Afzal, yeah, it really doesn't or you have a mess on your hand Jun 16 17:27:43 Afzal, give publish privileges to the VP and make sure he's on top of it Jun 16 17:28:00 keep the key in shared escrow so other people may sign the app but make sure that's not a common event Jun 16 17:28:11 my office uses CI (such as teamcity) to sign builds. having developers do it by hand is kinda begging for trouble Jun 16 17:28:17 Mavrik, Mhm, yeah. Thanks! Jun 16 17:28:23 frankdoyle, excellent idea :D Jun 16 17:28:26 mhm, we have TC for internal snapshots as well Jun 16 17:28:41 could somebody please tell me how to resolve the error at line 22? http://pastebin.com/gQqt5U3P Jun 16 17:29:15 jamesson, have you tried removing "View." Jun 16 17:29:21 Q: is it possible to have a UI setup where you have a list, and if you click on an item, in the same activity some UI elements show up, and if you click another item, the UI elements that showed up change only in values ? ie get reset Jun 16 17:29:45 jamesson, Try: ... = (TextView) findViewById(R.id.debugTxt); Jun 16 17:29:54 iiuc, for listviews you need to make the class inherit from ListActivity instead of Activity, which is limiting Jun 16 17:30:15 no, listviews can be used outside of ListActivities Jun 16 17:30:47 noob_, yes. Jun 16 17:30:52 it is possible. Jun 16 17:30:57 * noob_ listens carefully Jun 16 17:30:59 and no, you don't have to use listactivity for anything. Jun 16 17:31:10 josaphat: thank you GOD. It was complaining when it was inside the Fragment when I did that, but in the root Activity it's OK. Jun 16 17:31:40 noob_ you may want to read http://developer.android.com/design/patterns/selection.html Jun 16 17:31:42 jamesson: yeah, Activities have a built-n findViewById Jun 16 17:31:43 jamesson, nah man. I ain't no god. Jun 16 17:32:29 noob_ and http://developer.android.com/guide/topics/ui/menus.html Jun 16 17:32:41 g00s: I want to have some kind of a list of items, and if I click one, some group of elements shows up under the list Jun 16 17:32:59 i thought there was a 'selection' programmer's guide too, one sec Jun 16 17:33:00 to ask for some values, then calculate a result Jun 16 17:33:18 and if I click on another item, the mentioned group gets reset to receive new values Jun 16 17:33:21 and so on Jun 16 17:33:55 sounds very possible. what are you having trouble with? Jun 16 17:34:11 this whole concept implementation Jun 16 17:34:16 how much ram u have ? Jun 16 17:34:22 I'm new to this, I apologize beforehand Jun 16 17:34:22 hm, i guess its under 'action mode' in the menus page Jun 16 17:34:29 AVD is using whole 4GB Jun 16 17:35:04 noob_ basically read menus : contextual action bar, and implement this http://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener.html Jun 16 17:36:09 g00s: http://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener.html is a bunch of non understandable text to me, is there something a beginner can read ? Jun 16 17:36:22 e.g. a tutorial ? Jun 16 17:36:32 noob_ have you looked at ApiDemos yet ? Jun 16 17:36:36 noob_: just work on getting that listview going for now. i dont think contextual actionbar is what you want Jun 16 17:36:50 frankdoyle oh? i guess i misunderstood. sorry Jun 16 17:36:53 me neither, I think a simple hidden block of elements would do Jun 16 17:36:58 or, a dynamic creation of the said block Jun 16 17:37:10 np at all g00s, thank you for helping me out Jun 16 17:37:51 no worries. it sounds like noob_ wants some input fields to show up at the bottom Jun 16 17:38:12 yeap, and reset as soon as you select another item from the list above this block of fields Jun 16 17:38:18 (to receive other values) Jun 16 17:38:48 the basic idea is to have some invisible stuff at the bottom, when you click on something, it appears and sets some content, when you click on another thing it just sets the content. Jun 16 17:38:57 so, id start with getting a listview with your content Jun 16 17:39:01 sounds like exactly what I want Jun 16 17:39:03 then add the stuff to your layout Jun 16 17:39:11 first so that it always appears Jun 16 17:39:12 listviews are tricky to me, because there is no way to start them statically Jun 16 17:39:22 I played with an array of strings and an array adapter Jun 16 17:39:24 u all run octa core 4.4.2 avd in home pc ? Jun 16 17:39:27 but that was bound to that ListActivity Jun 16 17:39:38 how to do it normally without it ? Jun 16 17:39:45 listviews are just like any other view, you just have to give it an adapter Jun 16 17:39:47 josaphat: OK, now lines 142 and 146 return the same error. It offers to add the static keyword to line 22, but that brings the eror back Jun 16 17:39:57 ideally, how to statically fill a listview ? Jun 16 17:40:10 (because basically all my elements are static at this point) Jun 16 17:40:18 . Jun 16 17:40:33 frankdoyle: hmm, by adapter you mean it's only a dynamic procedure ? Jun 16 17:40:42 similar to the one I used with ListActivity ? Jun 16 17:40:49 noob_: yeah, listviews have to have an adapter Jun 16 17:41:09 it's what lets view recycling work Jun 16 17:41:09 there is no concept of a statically filled list view in android ? Jun 16 17:41:20 avd never loads Jun 16 17:41:50 noob_: i guess not in the sense you're describing. you can give a listview an adapter with static content, but it still has to go through that adapter Jun 16 17:42:08 hmm understood Jun 16 17:42:11 (strange, but okay) Jun 16 17:42:22 what replaces setListAdapter when you go from ListActivity to Activity ? Jun 16 17:42:43 (because I changed it just now, and it gives me errors, one of them is about the lack of this function iiuc) Jun 16 17:42:59 I did ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, menuItems); setListAdapter(adapter); Jun 16 17:43:06 jamesson, have a look at this documentation of nested/inner classes http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html Jun 16 17:43:09 noob_: i wrote http://the-android-guide.blogspot.com/2014/06/the-list-adapter.html a little while ago, might explain some things. anyway, you have to findViewById(R.id.myListView) then call setAdapter on the ListView you found Jun 16 17:43:15 menuItems being menuItems = Arrays.asList("Foo", "Bar", "Bla", "Bla"); Jun 16 17:43:35 thanks, I'll read it up and report back Jun 16 17:44:02 can i see ur pc ? Jun 16 17:45:23 frankdoyle: once I understand this listview, how would I make that block under it, the one that will be hidden and show up when you click on one of the list items ? Jun 16 17:46:14 noob_ can i see ur pc screen ? Jun 16 17:46:29 how u do all android dev thing Jun 16 17:46:31 ? Jun 16 17:46:39 you'll have to put that in another viewgroup, probably a RelativeLayout. then you can use a property called "visibility" to show and hide your views Jun 16 17:46:43 therg: hm ? Jun 16 17:46:45 frankdoyle can i see ur pc ? Jun 16 17:47:06 want to see all programming ad running android u do in ur pc Jun 16 17:47:12 frankdoyle: thanks, I'll look into it and report back too Jun 16 17:47:15 .[\ Jun 16 17:47:37 therg: a normal sdk setup, with eclipse, the sdk, java jdk...etc Jun 16 17:47:39 nothing special Jun 16 17:48:03 therg: sorry, just running Android Studio and a web browser, can't let you watch though Jun 16 17:48:52 avd ? Jun 16 17:48:59 it slows everything Jun 16 17:49:24 running only 7" 1024x800 Jun 16 17:49:38 u can run fullHD android 4.4.2 on ur pc ? Jun 16 17:49:48 with octa core emulated Jun 16 17:49:52 jamesson, basically you need to revise your approach so that you can pass information between your fragment and your activity. Jun 16 17:49:59 I use an actual device to test on Jun 16 17:50:02 and 3GB ram Jun 16 17:50:27 sdk connects to device or u run apk from SDcard ? Jun 16 17:50:31 josaphat: right, and as of yet I have no idea how to do that :( Jun 16 17:51:33 jamesson, I can help you get this particular program working, but in order for you to get anywhere you're going to need a good resource to learn from. Jun 16 17:51:47 phone warranty wont void if use directly ? Jun 16 17:52:02 therg: shouldn't. Jun 16 17:52:13 josaphat: are you saying, write a separate function to get data from activity and pass it to fragment? Jun 16 17:52:55 jamesson: that's pretty much it Jun 16 17:53:24 frankdoyle: and how is that even possible? There are a buttload different datatypes, for one thing Jun 16 17:54:19 frankdoyle: frankly I would appreciate a simple solution at this point, I've been at this for muuuch longer than I want to be Jun 16 17:54:24 jamesson, you can use a bundle and tell the fragment what the debugView is by passing it's UUID Jun 16 17:54:32 that was for josaphat actually Jun 16 17:54:46 what do you mean? if you want to pass a string from your fragment to your activity, you just have your fragment call doSomethingWithMyString(myString) on your activity Jun 16 17:55:00 ^ or that. Jun 16 17:55:38 http://developer.android.com/training/basics/fragments/communicating.html Jun 16 17:55:57 with that kind of setup, you can pass content to your activity or between fragments Jun 16 17:56:08 frankdoyle: ArrayAdapter(Context context, int resource, int textViewResourceId) Jun 16 17:56:14 for the context, I have this Jun 16 17:56:16 jamesson, I don't know. The whole thing strikes me as if you're haphazardly modifying some sample code. If you want to write your own apps you're going to need a book. Jun 16 17:56:34 for the resource, I have android.R.layout.simple_list_item_1 Jun 16 17:57:11 but I still get an error Jun 16 17:57:16 josaphat: I have a book, Meyer Jun 16 17:57:33 what is most simple android program ? Jun 16 17:57:35 noob_: what is your error? Jun 16 17:57:53 The constructor ArrayAdapter(ConduiteChoixDrogue, int, List) is undefined Jun 16 17:58:51 it looks like you're not passing in the right thing for the third parameter. I'd suggest using BaseAdapter like what's suggested in that link i gave Jun 16 17:58:52 how to chat in this channe l?? Jun 16 17:59:00 frankdoyle: the code is List menuItems = Arrays.asList("Foo", "Bar", "Bla", "Bla"); ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, menuItems); setListAdapter(adapter); Jun 16 17:59:27 this being my class, ConduiteChoixDrogue.java Jun 16 17:59:28 menuItems isn't what goes in the third parameter. you'll have to look up what does Jun 16 17:59:58 it's expecting a view id, so like R.id.whatever Jun 16 18:00:11 they're talking about TextView within the layout Jun 16 18:00:14 which I don't get Jun 16 18:00:22 (do I need a text view to make the list view work ? or ? ) Jun 16 18:01:14 why is bluestacks super fast but ADK is very slow with smallest screen Jun 16 18:01:17 (textViewResourceId) Jun 16 18:01:25 jamesson, you should also be familiar with java Jun 16 18:02:05 "The id of the TextView within the layout resource to be populated" Jun 16 18:02:13 noob_: I don't really know how ArrayAdapters work, I'd really suggest extending BaseAdapter Jun 16 18:02:15 this is confusing, because I want to populate a list view Jun 16 18:03:03 therg, because you're probably running an intel i5. whereas a handheld device uses a much much less powerful processor. Jun 16 18:05:09 AVD using pc cpu Jun 16 18:05:12 core i5 Jun 16 18:05:21 ok i use cheap phone Jun 16 18:06:50 frankdoyle: your article doesn't have examples, just instructions Jun 16 18:06:58 is there a listview example somewhere ? Jun 16 18:07:08 * noob_ is completely lost Jun 16 18:08:17 noob_: check out http://stackoverflow.com/questions/16333754/how-to-customize-listview-using-baseadapter Jun 16 18:08:33 thanks Jun 16 18:11:03 Hi everyone, does someone know how to add headers/cookies to a Socket.io client instance ? (i'm using socket.io-java-client). Thank you :) Jun 16 18:11:39 Can someone help me make this make sense please ? http://pastie.org/pastes/9295263/text?key=ev5v1t99ujv8ekh74x924w Jun 16 18:12:46 hi , i want a feature like skype use to add contact in the android native contact list , I want to make a contact in the native contact list of android with my app icon as well Jun 16 18:12:48 please assist me Jun 16 18:12:51 with this Jun 16 18:12:56 that doesn't look much like java, thecoolguy Jun 16 18:13:09 thecoolguy : yeah to me too Jun 16 18:13:17 its not JAva Jun 16 18:13:25 its actionscript Jun 16 18:13:28 this is android-dev (java zone majorly) Jun 16 18:14:12 chinu: he may be on AIR Jun 16 18:14:42 gradle-wrapper.jar is source code sample or Jun 16 18:14:46 not apk Jun 16 18:15:02 therg ? Jun 16 18:15:38 .jar is a library you will use in your android project , or you can try running it in java console if its a console app or double click on it if it opens something ? Jun 16 18:15:53 instal jre first for sure Jun 16 18:16:25 So can someone help me with the reorder it so it makes sene Jun 16 18:16:40 If anyone wants to help me http://stackoverflow.com/questions/24234260/socket-io-java-client-cookies-custom-headers or /msg me :) Jun 16 18:17:04 frankdoyle : can you guide me to a resource by which i can make a android contact like app as skype and whatsapp use to put contacts in the android antive contact list Jun 16 18:17:56 jamesson : yeah he is Jun 16 18:19:05 chinu: I don't know that anyone has made a tutorial to do exactly that, but http://developer.android.com/training/contacts-provider/modify-data.html should get you going in the right direction Jun 16 18:21:10 frankdoyle : i dont need a tutorial , just a android term which i can serch or the name of such thing which i can implement for such functionality , adding my app icon as skype , whatsapp , etc apps do Jun 16 18:21:26 in android native contacts Jun 16 18:23:17 frankdoyle : like this http://s13.postimg.org/g8mcvt147/device_2014_06_16_235151.png Jun 16 18:25:59 what phone are you on? Jun 16 18:36:39 frankdoyle : i use moto x , with 4.4.2 Jun 16 18:43:10 Anybody familiar with AndroidAsync and / or socket.io-java-client please ? :) Jun 16 19:05:10 hey folks, what font is this? http://i.stack.imgur.com/Xe7iL.png Jun 16 19:05:38 that looks like one of the OS X default fonts Jun 16 19:05:41 Menlo or Monaco Jun 16 19:06:19 mac only? darn :( Jun 16 19:06:23 thanks though Jun 16 19:16:20 Anybody familiar with AndroidAsync and / or socket.io-java-client please ? Jun 16 19:19:56 what's the license on the action bar icon pack ? Jun 16 19:19:58 Mango_Man another nice one is 'source code pro' Jun 16 19:20:20 im guessing apache like the rest of android project Jun 16 19:20:53 g00s: yep, seems like that's the default on linux Jun 16 19:21:21 Mango_Man firefox also has one Jun 16 19:22:23 https://blog.mozilla.org/ux/2014/05/try-out-fira-sans-a-free-open-source-typeface-commissioned-by-mozilla/ Jun 16 19:22:35 ooh looks pretty Jun 16 19:23:33 also nice are consolas / inconsolata http://levien.com/type/myfonts/inconsolata.html Jun 16 19:26:31 oh yeah, and anonymous pro Jun 16 19:30:45 wrt fonts on mac; i just tried running AS with latest Java 8; the rendering of everything is awful because the swing stuff is only using greyscale AA still; no subpixel Jun 16 19:31:25 only the apple jvm (stuck at 6) seems to have subpixel AA Jun 16 19:31:40 i think they used a different backend, quartz, etc Jun 16 19:36:17 JakeWharton nice blog about a simulator Jun 16 19:37:07 frankdoyle: the listview I create dynamically has the items clickable only in the item's text part, but the ones created from ListActivity one have the full item space clickable, is that normal ? Jun 16 19:37:52 g00s: thanks Jun 16 19:38:09 for example if I do a ListActivity with a listview, and make an item "Foo", I can click on it even from the empty space, but with this normal Activity listview, if I don't hover over "Foo" I don't get the click Jun 16 19:38:56 noob_: are you setting an onitemclicklistener on the listview, or setting a clicklistener on a view in the adapter? Jun 16 19:39:18 onitemcliclistener Jun 16 19:39:31 lv.setOnItemClickListener(new OnItemClickListener() Jun 16 19:39:46 with @Override public void onItemClick(AdapterView arg0, View v, int position, long arg3) Jun 16 19:40:35 have you made sure that the view you create is filling the width of the listview? Jun 16 19:40:52 hmm no, how do I do that ? Jun 16 19:41:34 how are you instantiating the view you're returning in your adapters getView? are you doing inflater.inflate, or new MyView()? Jun 16 19:41:54 I grab the view using ListView lv = (ListView)findViewById(R.id.listView1); Jun 16 19:42:40 Hi, can someone tell me why an intent like this: "Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);" doesnt let me select any possible shortcut? for instance: whatsapp and whatsapp-camera is not selectable..... Jun 16 19:43:04 noob_: is your adapter still an arrayadapter or a baseadapter? Jun 16 19:43:18 array one Jun 16 19:43:42 it was pretty simple Jun 16 19:43:50 I was just missing to assign the result to a list view Jun 16 19:43:56 which I did using lv.setAdapter(adapter); Jun 16 19:45:13 *facepalm* Jun 16 19:45:32 frankdoyle: it was simply setting android:layout_width="match_parent" in my listView1 Jun 16 19:45:39 sorry for the noise Jun 16 19:46:00 (it was wrap_content ) Jun 16 19:46:09 ah, that'd do it. Jun 16 19:47:00 what I still don't get is, how to make this list view expand in height according to what it gets filled with Jun 16 19:47:36 right now I set android:layout_height="wrap_content" Jun 16 19:47:46 but I'm not sure if that would make this scroll if I insert tons of items later Jun 16 19:52:18 http://stackoverflow.com/questions/24249665/using-another-xml-as-androidbackground-cannot-get-it-to-work can someone help me? what am i doing wrong? Jun 16 19:53:18 android:background="@id/ Jun 16 19:53:21 I think you mean drawable Jun 16 19:53:27 btw g00s did you see the new navigation editor? it's just like the idea you mentioned awhile back Jun 16 19:53:48 Mango_Man no i haven't Jun 16 19:53:50 in AS ? Jun 16 19:54:02 i guess i need to read the changelog :) Jun 16 19:54:02 g00s: yep Jun 16 19:55:11 next up: google needs to add more jvm instrumenting like mbeans; if it comes at a runtime cost they need to allow switching between instrumented / optimized version in debug options Jun 16 19:55:46 'developer options' Jun 16 19:56:56 but they don't need mbeans Jun 16 19:56:58 mbeans are overkill Jun 16 19:57:07 and never even used in 99% of java applications, EE apps don't count Jun 16 19:57:12 clearly a different class of application Jun 16 19:57:32 e.g. no one uses jmx to debug/monitor intellij or eclipse Jun 16 19:57:37 drawing that comparison to android is foolhardy Jun 16 19:58:06 jvisualvm, yourkit, etc. maybe Jun 16 19:58:44 SimonVT: is a shape defined in a xml a drawable? can you specify how i should write it more exactly? Jun 16 19:59:02 hey guys Jun 16 19:59:04 im getitng this error Jun 16 19:59:06 The constructor TextAppearanceSpan(new ChildEventListener(){}, int) is undefined Jun 16 20:00:35 tabello: Yes, a shape is a drawable: https://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Jun 16 20:02:05 but how should i call it? android:background="@drawable/button_with_rounded_corners" gives "no resource found..." Jun 16 20:02:40 JakeWharton: https://github.com/evant/android-studio-unit-test-plugin in IDE testing. coworker put it together, we've been toying with it. thought you might be interested Jun 16 20:02:41 SimonVT: any idea about my porblem Jun 16 20:02:45 problem Jun 16 20:02:48 JakeWharton: Jun 16 20:02:53 Then you don't have a drawable defined with the name button_with_rounded_corners Jun 16 20:03:05 frankdoyle: saw it over the weekend. haven't taken a hard look yet Jun 16 20:03:07 Did you put it where that link tells you to? Jun 16 20:03:09 pfn yeah java visualvm, visualgc, etc Jun 16 20:03:11 Did you doublecheck the filename? Jun 16 20:03:43 wa5ted, here's a link with supported constructors: https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html Jun 16 20:03:45 Use one of those Jun 16 20:04:53 SimonVT: sry to paste code here but this is the line that is troubling: titleSpan.setSpan(new TextAppearanceSpan(this, android.R.style.TextAppearance_Large), 0, post.title.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); Jun 16 20:05:01 where title span is a spannable Jun 16 20:05:11 SpannableString Jun 16 20:06:37 guys, do you suggest to use AccountManager? I just need to store user and password. I don't need synchronization nor token Jun 16 20:06:37 SimonVT: it put it under layout... Jun 16 20:06:46 And where "this" is a ChildEventListener, and not a Context Jun 16 20:06:59 tabello: Soo.. Move it Jun 16 20:07:02 It's a drawable, not a layout Jun 16 20:07:31 SimonVT: sry? Jun 16 20:08:41 You defined some class called ChildEventListener.. Then you're passing it to the TextAppearanceSpan constructor with the "this" keyword Jun 16 20:09:09 okay what should i do Jun 16 20:09:21 "this" refers to the class you're currently in.. Is ChildEventListener some inner class? Then you can reference the outer class with OuterClass.this .. If it's in a separate file, you'll have to pass some Context to it you can use for the span Jun 16 20:10:37 SimonVT: http://paste.ofcode.org/HSZ9ATPLMpgbQqyC2C2epW Jun 16 20:10:51 that is sitting inside the onCreate method Jun 16 20:11:01 Then reference the outer class Jun 16 20:11:10 onCreate? Jun 16 20:11:45 That's a method Jun 16 20:13:23 http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html Jun 16 20:14:06 kk Jun 16 20:14:33 Rather, http://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html Jun 16 20:22:01 whats the irc address you guys? i wanna switch to a client Jun 16 20:22:16 hello if i use GetExternalStorageDir will it work even if there is no SD card in the phone? Jun 16 20:22:25 if its a device that has no SD card that is Jun 16 20:22:29 tried herbert.freenode.net with 6667 port, not working Jun 16 20:22:30 SimonVT: got it Jun 16 20:23:38 jaspertheghost, read the note: https://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() Jun 16 20:24:19 i have and i think the answer is yes Jun 16 20:24:42 Traditionally this is an SD card, but it may also be implemented as built-in storage in a device that is distinct from the protected internal storage and can be mounted as a filesystem on a computer. Jun 16 20:25:19 So it can be both an SD card and built-in storage Jun 16 20:25:49 ok just wanted to make sure Jun 16 20:28:21 Hi everyone, I made a simple wrapper class around the android logging class so that I can add other information to certain messages. Since the wrapper class is static, I use it to output log messages all over my app. I'd now like to make it write these log lines to a file if a writeToDisk boolean is set to true. My question is: What would be the best way to acheive this? I was thinking a service that opens the file in write Jun 16 20:28:22 mode when started and which has writeToFile functions that outputs to the file. If logging todisk is enabled, my log wrapper class also calls the writeToFile function of the service (maybe through a getInstance or something?.. or static writeToFile method?).. This feels kind of hacky and so I was wondering if anyone had a suggestion for a better/more elegant way to acheive this? Have I overlooekd something? Jun 16 20:28:24 thanks! Jun 16 20:29:36 people and everyone hi Jun 16 20:34:33 Is there a way to get an android locale from an ISO code string? Jun 16 20:35:43 any one familiar with firebase for android Jun 16 20:35:51 want to knowhow i can make a query Jun 16 20:35:53 when iwant Jun 16 20:35:57 instead of onchild events Jun 16 20:39:35 Can I enable paste in an EditText where the input type is set to textPassword? Jun 16 20:40:24 what does this mean? "As previously mentioned, Android 4.0 will automatically add small, standard margins to each edge of widgets on the Home screen, for applications that specify a targetSdkVersion of 14 or greater. This helps to visually balance the Home screen, and thus we recommend that you do not add any extra margins outside of your app widget's background shape in Android 4.0." Jun 16 20:43:02 That it adds margins to home screen widgets by default Jun 16 20:44:40 SimonVT so just the home screen? Jun 16 20:44:54 That's what it says Jun 16 20:45:31 SimonVT okay, I guess I just thought it meant for example, the home screen. i've been handling the margin on activities manually Jun 16 20:45:39 hello people creatures :D Jun 16 20:45:46 SimonVT then I read this, that it is strongly recommended not to do that Jun 16 20:46:15 Just the home screen :) Jun 16 20:48:16 isn't it clear what it says? Jun 16 20:48:23 where else do you use widgets besides the launcher Jun 16 20:49:28 SimonVT, pfn oh lord, I've been reading widgets as Views, and thought it applied to my full app. sorry Jun 16 20:49:49 SimonVT, pfn was thinking it seemed so weird that it only applied to the home screen, which I was reading as the main activity Jun 16 20:51:19 apps don't have home screens Jun 16 20:51:25 'cept the launcher Jun 16 20:58:35 How do I set Bold typeface in xml? Jun 16 20:59:46 what is the type of R.raw resources? Jun 16 21:01:44 tabello: android:textStyle="bold", IIRC. Jun 16 21:03:50 If you had to suggest an android 2.3.7 device for debugging, what would be the cheapest coming in your mind? Jun 16 21:04:03 danijoo we bought a galaxy ace Jun 16 21:04:53 mattblang: that was my first thought too. but its still about 85 € here in germany.. Jun 16 21:05:28 freakin love google, search 85 € and it convers it to dollars for me Jun 16 21:05:45 hehe Jun 16 21:05:54 was just a crap shoot, but now I know Jun 16 21:07:51 any firebase experience Jun 16 21:07:54 anyine Jun 16 21:07:55 anyone Jun 16 21:07:59 for android Jun 16 21:08:47 danijoo dang man, searching Amazon, I remember getting our galaxy ace for a lot cheaper Jun 16 21:10:17 i could get a used one for 50. maybe thats what im going with Jun 16 21:11:18 too bad the nexus s is still so expensive Jun 16 21:18:07 i installed an app using adb install appname.apk, shows Success, but it's nowhere to be found on my phone. Same thing happened when I used Eclipse + virtual device Jun 16 21:19:06 did you set a starting activity in your manifest? Jun 16 21:19:24 Can I let text to speech read a new line or make a break somewhere? Jun 16 21:20:08 Tobbi: cant you just say "newline" Jun 16 21:20:11 ? Jun 16 21:20:36 Hm, the application was showing up and working fine (just hello world) to begin with, then i added minsdkversion to the default manifest and it broke it Jun 16 21:20:41 so I should add a starting activity? Jun 16 21:20:42 danijoo: This is interesting. I am letting it speak a string. Do I just put newline there? I tried \r\n and it just ignored it. Jun 16 21:21:21 Tobbi: Sorry i misread, thought you mean speech to text :) Jun 16 21:21:45 no problem :) I *think* I found a way. I just entered a full stop and it makes a break there. Jun 16 21:27:50 so I have an activity layout that declares . my activity class seems to call onCreateOptionsMenu before the are initialized... Jun 16 21:34:26 can I connect to a physical device via telnet in the same way as I can for an emulated device? Jun 16 21:35:45 I didn't even know you could connect via telnet... Jun 16 21:36:24 yeah, to the emulator Jun 16 21:36:42 so you can do stuff like "sms send 9102390 'this is a test message'" Jun 16 21:36:51 woah Jun 16 21:36:57 well color me ignorant Jun 16 21:37:13 yeah I just discovered it today when I was looking for a way to test my audio manager Jun 16 21:37:19 you can simulate phone calls too Jun 16 21:40:31 What's the right way to access the Movies folder on a device. Just hardcode "/sdcard/Movies" or is there a more proper way? Jun 16 21:42:12 cobar: something like Environment.getExternalStorageDirectory()? Jun 16 21:43:09 notbryant: I want to access the internal storage on the device. On my Nexus 7 that shows as /sdcard/whatever Jun 16 21:43:47 cobar: what does the function that I said give you? Jun 16 21:44:08 I could be wrong, but I think on my Nexus 4, the internal storage is seen as "External", i.e. "/sdcard" Jun 16 21:44:32 d0de: found this, if you are rooted http://stackoverflow.com/a/11079677 Jun 16 21:44:41 I would wager that it's not built in for unrooted Jun 16 21:45:49 notbryant: oh i see Jun 16 21:46:14 cobar: the confusion, to me, comes in when you have internal and external, like the Transformer Jun 16 21:46:31 but it's been a while since I owned my TFT101 so I can't recall what the solution was Jun 16 21:46:45 notbryant: yeah or an just and sdcard Jun 16 21:47:06 notbryant: oops. or rather even if you have an SD card inserted on a GS5 or whatever Jun 16 21:53:32 cobar: you'd have to do some testing/research to be sure, but I'm fairly sure that either the functions in Environment do what you need, or you aren't supposed to be writing to true "Internal" storage anwyay Jun 16 21:53:36 I can't remember which Jun 16 21:55:17 can I save json of list with gson? Jun 16 21:55:33 because when I'm trying to do fromJson(jsonString, List.class) Jun 16 21:55:36 it throws me an exception Jun 16 21:58:25 Found the problem line that made my app not show up.. Somehow "android:enabled="false"" got added in. -.- Jun 16 22:01:37 why does Eclipse generate a folder named crunch but ant refuses to work if that folder is there? Jun 16 22:12:39 notbryant: thanks, I'll do my reading Jun 16 22:12:49 cobar: np Jun 16 22:17:24 do nested Fragments only work w/ the v4 support library? Jun 16 22:20:27 I have a Fragment hosting a ViewPager which pulls its data from a FragmentStatePagerAdapter. If I use the v4 support library, then everything's fine. If I don't, then I get all sorts of weird of behavior when I put the Fragment hosting the ViewPager on the backstack. Jun 16 22:20:40 (and then pop to it) Jun 16 22:21:20 specifically, the ViewPager isn't showing any of its Fragments Jun 16 22:22:47 since my project only needs to target Android 4.0+, it seems absurd to have to rip out all of the existing Fragment code and replace it with the versions from the v4 support library Jun 16 22:28:35 notbryant, thanks very much! Jun 16 22:28:42 d0de: np! Jun 16 22:29:47 would anyone have an idea as to why committing changes to sharedpreferences would fail? Jun 16 22:29:52 even after 5 or so retries Jun 16 22:34:15 Pyuruku: are you using the same Editor instance for the committing and the checking? Jun 16 22:35:56 Yes notbryant Jun 16 22:36:01 its only failing for some users Jun 16 22:36:06 658 users to be exact Jun 16 22:36:28 spread across a bunch of android versions Jun 16 22:36:36 all phones are samsung phones, however Jun 16 22:36:50 Pyuruku: maybe out of disk space? Jun 16 22:36:59 i would get an exception for that wouldn't I? Jun 16 22:37:00 otherwise I'm not sure Jun 16 22:37:11 yeah you probably would Jun 16 22:37:37 Pyuruku: perhaps this? http://stackoverflow.com/questions/13807608/cant-get-sharedpreferences-to-save-on-a-handful-of-phones Jun 16 22:37:49 not sure if that's relevant Jun 16 22:39:24 "Thanks for your reports. However, in this case it is best that you bring this issue to the attention of your phone manufacturer. The Android Open-Source Project allows companies to bring devices to market by customizing the Android source code as they see fit." Jun 16 22:39:25 lovely Jun 16 22:39:31 is 1.4mb for a 1224 × 1632 100 quality jpeg descent? or can i get it smaller somehow? i know its vague questions Jun 16 22:39:52 Gotta love Google! Jun 16 22:40:02 android fragmentation is _definitely_ not an issue Jun 16 22:40:03 no sir Jun 16 22:41:07 I like how people actually claim that fragmentation isn't an issue (ignoring for a second that it's an issue on any platform with multiple versions or hardware configurations) Jun 16 22:41:58 the thing that really gets me is when a bunch of end users state that fragmentation isnt an issue and the developers are just making excuses to not fix their apps Nilium Jun 16 22:42:03 instant rage Jun 16 22:42:34 I'm willing to forgive them for their ignorance even if it's at times frustrating to infuriatingly dumb Jun 16 22:43:08 Also, who are these assholes downloading my app and leaving poor ratings without explanation Jun 16 22:43:16 I have no crash logs, so that's clearly not the issue Jun 16 22:43:39 do you get de-listed after so many of those? Jun 16 22:43:50 Crash logs or poor ratings? Jun 16 22:43:55 The former: dunno, the latter: no. Jun 16 22:43:56 poor ratings Jun 16 22:44:02 ah ok Jun 16 22:44:05 what about low downloads Jun 16 22:44:29 That would be a really weird reason to get de-listed. Jun 16 22:44:45 ok cool i just put up my first app Jun 16 22:44:54 i dont expect that it will be so popular (or highly rated) Jun 16 22:45:00 https://play.google.com/store/apps/details?id=com.lazydog.huntrunner2 Jun 16 22:45:22 Probably not if it's paid and slightly more likely but still probably not if it's free. Jun 16 22:45:45 especially if im paying 25$ to publish the free app, sheesh! Jun 16 22:45:49 Getting into the top X lists is kind of hard since everyone else on it has already been there for ages and sticks around because they're brand names or have a metric ton of downloads by virtue of being in the top X list. Jun 16 22:45:55 would anyone know the class that implements the sharedpreferences.editor interface? Jun 16 22:46:01 probably a dumb question Jun 16 22:46:21 Uhhh I could swear I do because I was looking at rewriting the whole SharedPreferences thing but I can't remember Jun 16 22:46:31 anyone know why childFragmentManager wasn't added to the v13 support library? Is it intended that, if you want to include child fragments, you use the v4 support library? Jun 16 22:46:45 Pyuruku : try this: SharedPreferences.Editor editor = preferences.edit(); Jun 16 22:47:16 android.app.SharedPreferencesImpl seems to implement it Jun 16 22:47:17 nick9998: I know how to use the class. My issue is that commit() fails randomly on a few devices for no apparent reason. I'm trying to see the exact code commit runs Jun 16 22:47:36 ah ok Jun 16 22:47:50 just one of the many "fun" quirks of android Jun 16 22:48:19 What kind of failure? Jun 16 22:48:32 commit() is returning false Jun 16 22:48:35 no indication of failure Jun 16 22:48:49 i.e. no exceptions Jun 16 22:48:52 That means it caught an InterruptException, I think. Jun 16 22:48:54 and i retry the commit 5 times Jun 16 22:50:00 Also apparently returns false if it couldn't rename a file. Jun 16 22:50:11 hmm well it shouldnt have to rename anything Jun 16 22:50:11 Or if it couldn't create an output stream Jun 16 22:50:42 yeah I have no record of interrupted exception Jun 16 22:50:55 Well, it catches it. Jun 16 22:51:08 Also returns false if it caught an XmlPullParserException or IOException. Jun 16 22:51:25 And that's ignoring any exceptions that might occur elsewhere. Jun 16 22:51:57 hmm... Jun 16 23:06:39 alexdg, because the support-v13 library is only for backporting features to api13 Jun 16 23:06:50 support-v4 and support-v13 are completely different libraries Jun 16 23:07:50 commit never fails randomly on android Jun 16 23:07:55 you're doing something stupid if it is Jun 16 23:09:07 pfn lol Jun 16 23:09:16 I'm assuming you haven't worked on a large scale android project Jun 16 23:09:20 hello im wondering is there a way to decode a bitmap file so that i can resave it and resize it without worrying about out of memory errors without using insample size? Jun 16 23:10:17 Why not use inSampleSize? Jun 16 23:12:06 just looking for alternatives Jun 16 23:12:40 is there a reason for looking for an alternative? Jun 16 23:13:35 just incase on really old phones with 2.1 and 2.2 that people still use for the app im working with like old (metro PCS phones) where wont hit out of memory Jun 16 23:16:25 pfn, thanks for the response Jun 16 23:19:29 Pyuruku, large scale android project, nope, never, never ever ever Jun 16 23:19:53 android:largeHeap="true" ;) Jun 16 23:21:44 I have trouble deciding if pfn is being sarcastic there. Jun 16 23:22:07 as was my intention Jun 16 23:22:08 :) Jun 16 23:22:13 "commit never fails randomly on android" that should tell you all you need to know Jun 16 23:22:31 glad you haven't run into any serious issues with android, I envy your development life Jun 16 23:25:07 no, it fails, but it's not random Jun 16 23:25:40 Again, glad you haven't run into serious issues with android Jun 16 23:25:45 says who? Jun 16 23:25:55 if you truly believe that, then yourself Jun 16 23:26:02 um, ok Jun 16 23:26:08 you're3 clearly someone worth talking to Jun 16 23:26:27 lol Jun 16 23:32:15 hello! Jun 16 23:33:02 On my custom view, say a user drags his finger off the view and then lifts, how can i detect that? Jun 16 23:34:48 ACTION_OUTSIDE ? Jun 16 23:48:05 anyone here is using TabPageIndicator with DrawerLayout together? Jun 16 23:48:33 I'm trying to add an drawerlayout to my existing activity with Viewpagerindicator and for some reason the tabs are just gone Jun 16 23:49:18 and if I'm getting the tabPageIndicator outside of he drawerlayout the drawer just makes the slide below the tabs which is no good Jun 17 00:13:46 Oh awesome Jun 17 00:13:50 I will def. try that Jun 17 00:14:01 any firebase experts here Jun 17 00:14:02 wa5ted need help with some help understanding something Jun 17 00:14:04 wa5ted that has a link to some ui Jun 17 00:14:05 wa5ted http://paste.ofcode.org/cVbFbH4tK8SmsMcXAYDeit Jun 17 00:14:07 wa5ted ^ i need help understanding the onChildAdded block Jun 17 00:14:08 wa5ted and how i can dynamically create a text view and store each childs contents in each dynamically genretaed textview Jun 17 00:22:47 could some explain getexternalstoragedirectory vs getexternalstoragepublicdirectory a bit to me i am not quiet sure i understand the diff Jun 17 00:23:01 nvm Jun 17 00:30:18 fira mono is a really nice font, thanks for the link g00s if you're there Jun 17 00:42:19 can someone put me to a stackoverflow for an example (good example of getting the fileuri back from camera intent Jun 17 00:42:21 Uri uri=data.getData() Jun 17 00:43:20 has anyone here used Appcelerator Titanium to make an app? Jun 17 00:57:22 anyone know how to easily find an openssl dependency in source? Google sent me a nastygram about having a vulnerable version of it Jun 17 01:02:13 SimonVT: is there any way to use a version of schematic with minSdkVersion = 14? Jun 17 01:03:22 should i use file.getPath or getabsolute path Jun 17 01:25:53 Mango_Man glad you found one ;) Jun 17 01:31:49 is it possible to rotate the buttons in a surface view on orientation change without using custom images for butonns? Jun 17 01:44:06 :O Jun 17 01:44:15 ascend mate 2 has 3900 mAh battery Jun 17 01:44:30 " packing enough juice to charge other devices via a dedicated cable from Huawei." Jun 17 01:46:52 * alex_PP waits for the news stories of fires all over china Jun 17 01:47:54 lol Jun 17 01:48:42 fires all of china ? Jun 17 01:48:57 heh 'all over' Jun 17 01:49:35 I got the xperia z2 the other day Jun 17 01:49:41 seems pretty ok Jun 17 01:49:57 probably one of the few parts of sony still profitable Jun 17 01:50:02 mobile and camera i think Jun 17 01:50:03 that's like saying it's extraordinarily average Jun 17 01:50:45 is the PS4 not doing so well? I haven't really been paying attention... Jun 17 01:56:34 anyone have experience developing apps for iphones? how would you compare the developing process of iphone vs android? Jun 17 01:57:11 android definitly seem the safer option though.. more people use android :) Jun 17 01:57:49 hey guys. just wondering, i get a lot of these warnings in logcat "V/ChromiumHTTPDataSource(271): mContentSize is undefined or network might be disconnected" ... i know it's a verbose message so i should ignore it, but just was wondering, if there's something funky with using android.media.MediaPlayer with an http data source whose Content-Size header is not sent? Jun 17 01:58:23 but on the other hand, it's more difficult to troubleshoot or test a product since there's so many different kinds of android devices out there, bigger screen, processors, versions of android software, etc Jun 17 01:58:35 therue: one thing that's different is that the iOS development process is much more controlled by apple. You need to have a mac to develop for iOS, and you need to pay a $99-per-year fee to be able to install your apps on devices Jun 17 01:58:54 also, your app needs to be reviewed before it can be listed on their App Store Jun 17 01:59:11 oh wow Jun 17 01:59:21 so there's a fee to be a developer lol Jun 17 01:59:53 with all that aside, how do you see the future of android vs iphone? Jun 17 02:00:44 I'm probably the wrong person to ask - I'm pretty bad at predicting these sorts of things! But Android definitely seems like the global leader, and probably will remain that way, since it's installed on cheaper devices Jun 17 02:01:05 you think it's the "global leader" ? i disagree Jun 17 02:01:37 there may be more android devices around the world, but apple win hands down with phones and $$$ earned from apps Jun 17 02:01:37 by "global leader" I mean it's installed on the most devices globally...at least I'm pretty sure that's the case Jun 17 02:01:39 it's more affordable ... and it's certainly used by more people i think Jun 17 02:02:05 bankai_au: you're right. "global leader" depends on your metric I guess Jun 17 02:02:21 apple earn more from apps than android? Jun 17 02:02:47 probably, but i was talking about devs Jun 17 02:06:08 regarding the development environment, it's a little hard to say since they're both changing a bit. I think Apple's tools are more mature, though that's partially because Android is currently moving from Eclipse + ANT to Android Studio + Gradle Jun 17 02:06:34 Apple have recently introduced a new programming language though, which is looking somewhat promising.. Jun 17 02:06:46 maybe you should look a bit harder at it then haha Jun 17 02:06:54 not a fan? Jun 17 02:07:16 certainly looks better than Objective-C Jun 17 02:07:18 they've traded one piece of shit for another, i don't see what there is to like Jun 17 02:13:26 is it supposed to replace objective-c? Jun 17 02:13:34 or just another language as a supplement Jun 17 02:14:15 from what I gather, it's supposed to eventually replace it, but it can interact with existing objective-C code and libraries Jun 17 02:41:27 i need to add contact like skype ads in contact list with my app icon there , what is the method for that ? ex http://s13.postimg.org/g8mcvt147/device_2014_06_16_235151.png Jun 17 02:42:41 ??? Jun 17 02:42:46 anybody online here ? Jun 17 02:53:46 argh, this guy jacked my github username https://github.com/mangoman Jun 17 02:53:57 :( **** ENDING LOGGING AT Tue Jun 17 02:59:58 2014