**** BEGIN LOGGING AT Mon Nov 11 02:59:58 2013 Nov 11 03:16:53 hello Nov 11 03:16:59 is there anyway I can use ADT with netbeans? Nov 11 03:18:10 i saw a few years ago a plugin for NB, if you're looking for alternative IDEs try IntelliJ Nov 11 03:20:38 I mean I just thought I would be able to combine everything for netbeans since I already use it. Nov 11 03:21:16 great time to convert to something better :) Nov 11 03:22:21 Thanks :) This is my first app I'm about to start any tips or advice? I'm decent with programming but not very experienced with java/oop Nov 11 03:22:29 more web development languages Nov 11 03:22:50 java is a web dev language ;) Nov 11 03:22:51 you can't use ADT, but you could use netbeans for the code writing part Nov 11 03:23:07 but netbeans isn't even that good... Nov 11 03:26:20 g00s, I like the sensationalist title of that page, too... as if google were explicitly singling out people that want to mod their devices Nov 11 03:27:58 I should go into a vzw store, get the device id for a moto x, plug it into moto's bootloader unlock site and see if it says it's a supported device Nov 11 03:28:07 maybe tomorrow while I'm doing errands... Nov 11 03:35:55 alex_PP eBook deal of the day; i've heard good things about it http://www.peachpit.com/deals/ Nov 11 03:36:08 one of amazon's best photography books of 2013 Nov 11 03:54:07 Hi, is it possible for multiple instances of the same intentservice to be started at the same time? I am using an IntentService for FUSED location and am occasionally uploading this data. Nov 11 03:54:53 because of the latency, given a fast enough location update interval I would assume that the request will not have been updated. Is there either a guarantee that multiple instances of the intent service won't be started or is there a way to check/share a variable between them? Nov 11 03:57:48 no Nov 11 03:59:01 pfn: just to clarify, it isn't possible for multiple to start at the same time, right? Sorry I asked so many questions at once Nov 11 04:02:37 Algorithm the service acts like a singleton, but the intents will queue up Nov 11 04:02:49 awesome, thank you Nov 11 04:03:01 or if you want, you can take the approach like AsyncQueryService in the Calendar app Nov 11 04:03:26 where you would put the location in a queue, and then call startService which rips through the queue Nov 11 04:05:14 Is there a maximum size to the queue. That sounds like it could be a more efficient way of doing it Nov 11 04:06:50 yeah, i would pummel android with hundreds of intents Nov 11 04:06:55 *wouldn't Nov 11 04:06:57 :) Nov 11 04:08:29 Thanks for the help! I'll look into that and check back if I have any issues. Nov 11 04:16:31 g00s: You can explicitly create multiple instances of the same intent service, right? It's only treated as a singleton in that additional instances will be queued rather than automatically created. For example. I could write one Location Service and have it log at two different time intervals by explicitly starting two instances Nov 11 04:17:44 I'm trying to open up eclipse from the adk bundle and it says It can't find javaw but I do have javaw just in a different folder. sohuld I copy that .exe to this folder? Nov 11 04:28:22 gotitt Nov 11 04:28:22 thanks Nov 11 04:31:35 hi. is it possible to have conditionals in android templates? Nov 11 04:31:55 ie... in the xml, have something like an if statement... to display a button if some condition is met, for example Nov 11 04:35:04 ir7466, I have done that Nov 11 04:35:29 what is the general idea behind it? i'm not even sure what you'd call such a thing in order to google it Nov 11 04:35:32 ir7466 yes/no .. you could probably put android:visibility="@string/test_visibility" ; where that string is set differently in different res/ configurations Nov 11 04:36:58 but the typical way of doing that would be to have different layouts by configuration Nov 11 04:37:09 you can play some tricks with @bool also Nov 11 04:37:41 Ologn how did you do it ? Nov 11 04:39:16 g00s, I think I set a value in the xml, then searched for that value from the code Nov 11 04:46:01 in intellij / AS; is there something like eclipse's "go into" for a module; if i only want to see a specific module i the tree for example Nov 11 04:46:48 Algorithm, No, single instance only Nov 11 04:46:58 anything identified by Co. p Nov 11 04:47:11 component name in Android is singleton Nov 11 04:48:06 pfn: What do you mean identified by component name? Nov 11 04:48:14 g00s, not @string,@int Nov 11 04:48:30 Algorithm, ComponentName Nov 11 04:48:51 okay, thanks Nov 11 04:49:03 anything declared in manifest is identified by component name Nov 11 04:49:39 the only reason you would have multiple instances is because you're leaking memory Nov 11 04:50:32 ah, so I have to create two separate classes if I want two different intent services? Nov 11 04:50:44 basically, yea Nov 11 04:50:47 or two separate instances of the same class Nov 11 04:50:49 okay, thanks Nov 11 04:50:58 That's a bummer Nov 11 04:51:26 an intent service is a queue... why would you want multiple of the same... Nov 11 04:53:23 I'm currently playing around with two different location ideas. One follows research done by MS to create roads from gps logs. These points need to be close together though. The other is to gain a basic understanding of where people are and aren't. I am doing this to myself so no privacy concerns but I want to have one requesting location updates every 2 minutes to do geo clustering and the other only running when I drive since Nov 11 04:53:24 requesting updates every 1-2 seconds will drain the battery Nov 11 04:54:05 since the only real difference is in the update interval it would be convenient to start two services. One on device startup and the other only when I explicitly tell it to start Nov 11 04:55:41 #openstreetmap may also be relevant over on irc.oftc.net Nov 11 04:56:33 Thanks I'll check them out as well, especially as I get later into this project. Nov 11 04:56:39 SpeedEvil do you use osm in your app ? Nov 11 04:57:05 no, juat a contributor Nov 11 04:57:21 i wanted something like google maps minus the google; at the time osm widget was iffy but i checked 2 years ago Nov 11 04:57:22 do read and understand the license Nov 11 04:57:42 Algorithm, what you want is orthogonal to intent service Nov 11 04:58:14 g00s: I recently read about a map service that is like google maps. It's built on OSM. I'll try to find a url Nov 11 04:58:24 pfn: ah, okay. Do you have any suggestions? Nov 11 04:58:37 Algorithm thanks; yeah i thought i had to host my own tiles or something like that Nov 11 04:59:08 hopefully I can find it. I know I sent it to a coworker but I think it was on Jabber and my history has been lost. Nov 11 04:59:38 k, thx Nov 11 05:00:18 g00s: I believe it's here. https://www.mapbox.com. I haven't spent much time looking at the cost but it looks like a reasonable alternative Nov 11 05:00:53 thanks Algorithm Nov 11 05:01:02 no worries :) Nov 11 05:11:26 What does the id argument of an OnItemClickListener mean for an arrayadapter ? Nov 11 05:12:02 nm Nov 11 05:12:03 what do you get when you call getId() on the adapter? Nov 11 05:12:04 :) Nov 11 05:12:09 hi there Nov 11 05:12:31 lasserix but you're not going to use ArrayAdapter anyhow, so Nov 11 05:13:01 that's true Nov 11 05:13:18 i actually wrote an adapter today where i think i used getId() for the first time ever Nov 11 05:13:19 :P Nov 11 05:13:47 ok, this is good google http://google.org/personfinder/2013-yolanda/ Nov 11 05:14:23 a guy i worked with just moved to google.org Nov 11 05:14:40 i didn't even notice the .org Nov 11 05:15:08 yeah .org is where google does stuff like that :P Nov 11 05:20:43 Is it possible to get the splitActionBarHeight? Nov 11 05:21:03 I mean the bottom action bar height. Nov 11 05:34:48 canadiancow is there anything in Play Store that lets me donate to the Philippines ? Apple had that in the past Nov 11 05:35:31 .. and google get 25% of the donation ... :P Nov 11 05:36:51 no idea Nov 11 05:39:23 hey guys, does anyone in here have experience using Android's AudioTrack for streaming generated tones? Nov 11 05:39:49 having some trouble with joda-time Nov 11 05:39:58 the trouble being that it won't compile into my project Nov 11 05:40:09 but gives no warnings during compile time Nov 11 05:40:17 isn't it just a jar :P Nov 11 05:40:23 Using gradle Nov 11 05:40:30 so I declare the dependency Nov 11 05:40:44 and I can see it and the IDE is happy Nov 11 05:40:53 but then when I go to use it, I get a no class def error Nov 11 05:41:11 Caused by: java.lang.NoClassDefFoundError: org/joda/time/DateTime Nov 11 05:41:34 build.gradle files declares: Nov 11 05:41:34 compile 'joda-time:joda-time:2.3' Nov 11 05:41:57 and I can see it in my external libraries Nov 11 05:50:27 did you sync gradle after editing build files? Nov 11 05:50:40 and.. why dont you just put it as lib in your libfolder and compile the lib filder completly? Nov 11 05:51:03 and/or (i dont know jode time) did you add it as module? And .. did you compile/include it with ressources Nov 11 05:51:43 also, try building from the command line first Nov 11 05:52:49 g00s, which os do you use for coding?= Nov 11 05:52:59 mac os 10.7 Nov 11 05:53:15 with Android-Studio? Nov 11 05:53:18 yes Nov 11 05:53:25 latest version? ;-) Nov 11 05:53:27 yes Nov 11 05:53:36 0.3.4? Nov 11 05:53:39 ya Nov 11 05:53:44 And you dont have problems with gradle? Nov 11 05:53:49 no Nov 11 05:54:00 gradle and i are friends Nov 11 05:54:04 brrr. Ubuntu makes me crazy. The latest Android Studio build does not work with gradle on ubuntu Nov 11 05:54:05 :) Nov 11 05:54:25 and google didnt fix it yet. Answer: Downgrade to 0.3.1.... Nov 11 05:54:33 O.o Nov 11 05:54:40 yup Nov 11 05:54:55 and 0.3.1 throws some annoying errors on startup with null poiner exception in android studio core :> Nov 11 05:55:54 what happens on 0.3.4 then ? Nov 11 05:56:17 gradle can not synchronize/import projects on ubuntu with 0.3.4 and gradle 0.6 Nov 11 05:56:23 0.6/18 Nov 11 05:56:33 0.6.3 right ? Nov 11 05:56:52 yep Nov 11 05:57:09 There are some workarounds by removing the gralde jar files and replace them with older one, and such crap, ... Nov 11 05:57:25 so others are having that problem too ? Nov 11 05:57:30 yes. Everyone Nov 11 05:57:31 :) Nov 11 05:57:35 oh Nov 11 05:57:50 most answers on stackoverflow: Dont use Android Studio until it get at least beta-status Nov 11 05:58:00 use vim / emacs for now :) Nov 11 05:58:26 haha. Well. I want to purchase a macbook air in a few days. Does it really worth the price (by coding) compared to a (for example) gaming laptop? Nov 11 05:59:07 this past friday was the second week in a row they put out something busted right out of the gate and had to post an update late fri evening Nov 11 05:59:32 meanwhile, AS won't let me set update policy to dev channel (always stays on canary) Nov 11 05:59:39 yup.. this is horrible. I love Android Studio but when they keep making it worst then better ill use eclipse again.. Nov 11 05:59:43 haha Nov 11 05:59:59 i thought 0.3.4 additions to 0.3.3 were silly; does 0.3.3 work ? Nov 11 06:00:07 With Windows you can not even install the latest version without putting some OWN PATH Environment-vars to the system.. Nov 11 06:00:17 i think thet are gold plating it without getting core shit working ;) Nov 11 06:00:22 Yep. 0.3.3 works. But currently there's 0.3.1 for download and the patch upgrade to 0.3.4 directly Nov 11 06:02:01 what i have been doing is getting the full versions each release, and storing them away like a squirrel Nov 11 06:02:09 well the last 2 versions Nov 11 06:02:15 so i have 0.3.2 here, but its mac Nov 11 06:02:28 well. it's google. They should make things better - usually Nov 11 06:02:30 :P Nov 11 06:02:56 i keep getting the impression their software engineering culture is very immature Nov 11 06:02:59 I dont think it's really an android studio problem. It's more likely a compatibility problem with gradle on linux (and some dependencies) and android studio Nov 11 06:03:12 and you can't easily change culture ;) Nov 11 06:03:19 yup :/ Nov 11 06:03:35 it's crazy that google replaced the c2dm with gcm and now with gcm xmpp already.. Nov 11 06:04:55 misterli you are using gradle 1.8 too ? Nov 11 06:05:02 yes Nov 11 06:05:04 1.9 will be out any minute Nov 11 06:05:08 really? Nov 11 06:05:31 well. I've created my projects with 1.8. It hate changing gradle on a running project since it may cause problems Nov 11 06:05:40 and (in some cases) it needs to recreate the whole project Nov 11 06:05:51 there is usually a tight dependency between the android-gradle plugin / gradle / as, so i would just use what they say Nov 11 06:06:11 do you know if there's a real gradle support with eclipse? Nov 11 06:06:17 Mavrik: you were saying about recommended GL ES version some time earlier Nov 11 06:06:28 is http://www.khronos.org/opengles/2_X/ an acceptable for Droids Nov 11 06:06:41 misterli no, i dont Nov 11 06:06:44 hm okay Nov 11 06:06:58 And did you use the new google xmpp gcm already? :) i have no beta-test account for that :S Nov 11 06:07:05 no Nov 11 06:07:25 Oh. Its fixed with 1.9? https://android-review.googlesource.com/#/c/69719/ Nov 11 06:08:05 O.o Nov 11 06:08:09 there is a rc3 Nov 11 06:08:59 i have no idea what i'm looking at there Nov 11 06:10:21 misterli also, i have so far had my own gradle install Nov 11 06:10:26 and i point AS to that Nov 11 06:11:03 haha Nov 11 06:11:28 yes. I had my own gradle installation aswell. Compiled it myself and used the locale gradle path. But it doesnt work with android studio Nov 11 06:11:59 weird, mine does Nov 11 06:12:28 even after gradle clean, removing .gradle, editing the settings and build, ... using gradlew, ... Nov 11 06:14:01 but this pisses me off; i can't select 'dev' channel in updates; it always goes back to canary Nov 11 06:14:12 On all Macs or just on yours? Nov 11 06:14:20 Mac and dev is like windows and penguin... Nov 11 06:14:23 closed system.. Nov 11 06:14:51 misterli i'm writing code now, you're messing with linux :) Nov 11 06:15:02 haha Nov 11 06:15:32 Well. I do like apple products because it's quality. The hardware is not cheap china-crap. Its expensive china-crap. :-) But usually everything works - just limited Nov 11 06:15:44 But.. i had a G4 years ago and this was worst for developing Nov 11 06:16:12 i like apple because if i have an issue, i can walk into the apple store and get help Nov 11 06:16:18 with hw Nov 11 06:16:19 for $$ Nov 11 06:16:31 its called apple icare, isnt it? Nov 11 06:17:01 genius bar is free; of course out of warranty repair is not Nov 11 06:17:15 but they are sometimes lenient on that Nov 11 06:17:23 Yes and as far as i know out of warranty for most stuff is after a half or 1 year Nov 11 06:17:40 i know a few people that went and got stuff fixed for free Nov 11 06:17:48 but don't count on it Nov 11 06:18:33 Well. There's nothing against apple. They do a very good job. IPhons and Macbooks but at least they dont offer good support/stuff for developers Nov 11 06:18:45 misterli also, people like apple because of the 'choice paradox' Nov 11 06:19:11 That's true. I would lovely use an iphone instead of android because of this tons of settings which are not useable or not relevant for me, BUT Nov 11 06:19:17 there should be a "simple" and advanced mode Nov 11 06:19:49 right now, i think they only have 2 15" MBPs Nov 11 06:19:56 (both too much money, heh) Nov 11 06:19:59 On my university (psychologie) there was a test. people between 8 and 70 who had never used a smartphone before got an iphone and an android device for testing. They have had to do several things. Guess which device was easy to use for ALL people and guess which one was unuseable? Nov 11 06:20:19 i'm guessing the apple was easu Nov 11 06:20:21 *easy Nov 11 06:20:31 Yes.. Even old people could still use the iphone. Phonecalls, sms, apps Nov 11 06:20:53 now, i am using the Kindle app for Android Nov 11 06:21:08 you would think, this is a big company, they could do a great app here Nov 11 06:21:18 but their navigation structure is still fucked up ! Nov 11 06:21:19 Nah. Nov 11 06:21:29 They does not even do a good job with their own app-store Nov 11 06:21:35 and this has been one of the problems wth android since day 1 : the task stack Nov 11 06:21:37 have you ever released an app in the amazon appstore? They cant do good android-software Nov 11 06:21:41 people getting lost in Nov 11 06:21:45 haha Nov 11 06:22:01 They are using a default styled actionbar, dont they? Nov 11 06:22:04 i pressed back like 20 times and i kept oing through previous screens i thought were finished Nov 11 06:22:09 with search and sidebar and tabbed menu Nov 11 06:22:10 no, their own Nov 11 06:22:13 hmpf Nov 11 06:22:16 they have their own crap Nov 11 06:22:56 But it looks like that the Kindle (with Android) are very stable and fast Nov 11 06:23:42 Anyone know relative percentage of android phones in use with arm v6 versus arm v7? Nov 11 06:23:46 But afaik it's still a test. Kindle with Android(-support) are not available everywhere Nov 11 06:24:05 misterli have you seen this? http://www.amazon.com/The-Paradox-Choice-More-Less/dp/0060005696 Nov 11 06:24:22 Nop Nov 11 06:24:26 Does it worth it? Nov 11 06:25:11 There are some very simple and stupid rules to follow to not confuse users with crap Nov 11 06:25:21 i love this stuff; behavioral economics; evolutionary psychology, etc Nov 11 06:25:44 May i ask which software (for android) you have developed until now? Nov 11 06:26:44 misterli yeah, this is again, when i wonder about google … having read UI stuff over long periods of time, they still 'recklessly' ignore basic UI principles Nov 11 06:26:54 its the culture Nov 11 06:27:20 Indeed but android is still easy to develope compared to ios/iphone developing Nov 11 06:27:37 i mean, Alan Cooper talked about stuff not to do, like 15 years ago Nov 11 06:27:55 misterli depends on the project :D Nov 11 06:28:09 its good knowing several platforms Nov 11 06:28:13 do you have a project (for your own) which generate a good salary? Nov 11 06:28:19 not a good salary, no Nov 11 06:28:36 do you code for companys or for yourself? Nov 11 06:28:42 myself atm Nov 11 06:28:46 okay Nov 11 06:28:58 i had a salary starting at 10.000$/month until google blocked my app for no reason Nov 11 06:29:14 :O Nov 11 06:29:20 $10k mo ? Nov 11 06:29:21 yes Nov 11 06:29:22 thats great Nov 11 06:29:32 i make about $10 / mo Nov 11 06:29:36 Now i tried several alternatives like amazon playstore, but ... this sucks Nov 11 06:29:39 haha Nov 11 06:29:45 10k? Nov 11 06:29:46 it's easy to generate some money Nov 11 06:29:47 yes Nov 11 06:29:51 "for no reason" - why do I doubt that :) Nov 11 06:29:59 It was my fault Nov 11 06:30:03 that's impressive Nov 11 06:30:11 what was it, if you don't mind? Nov 11 06:30:14 They warned me because of no disclaimer/privacy and i updated the app. They aggreed Nov 11 06:30:15 BUT Nov 11 06:30:26 i had the same disclined app as "BETA" app with another package name in the playstore as active Nov 11 06:30:31 just 10 downloads Nov 11 06:30:41 And thishow they blocked the whole account with all apps Nov 11 06:30:56 It was an Anti-Theft App. Now it went into a spy-app. www.TheftSpy.com Nov 11 06:31:39 it's very hard to get the user to "enable unknown sources" and such Nov 11 06:33:44 misterli so www.thefyspy.com is your product ? Nov 11 06:33:51 yes Nov 11 06:34:19 but i dont develope on that anymore. There's a new project which will do better results and is not to "spy" Nov 11 06:34:59 ""I thought my girlfriend was cheating me so I installed the app to be sure. While I normally wouldn't spy on someone, TheftSpy was much more secure and less expensive than hiring a private investigator. I'm glad I did, too! It saved me from going through an expensive marriage and an ugly divorce!"" Nov 11 06:35:02 haaa Nov 11 06:35:23 Haha Nov 11 06:35:46 ill try to get this into an add soon https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-frc3/q77/s720x720/1381283_659656587398150_988793798_n.jpg Nov 11 06:36:04 with text "Thanks TheftSpy to figure out that my boyfriend cheated me" Nov 11 06:36:58 Anyway.. In my opinion it does not worth to build such a "big" software for selling Nov 11 06:48:34 qq: are AsyncTasks killed if the activity or fragment that created them is destroyed? Nov 11 06:48:43 no Nov 11 06:48:44 no Nov 11 06:48:47 cool Nov 11 06:48:49 thans Nov 11 06:48:51 with a k Nov 11 06:49:45 Why did noone try the new gcm push yet? Nov 11 06:49:58 i thought push is one of the most important feature for apps Nov 11 06:51:16 because it requires google play services Nov 11 06:51:21 so what? Nov 11 06:51:34 at least in my case that was a deal breaker Nov 11 06:51:40 most apps are downloaded via google play store (and those have google play services) Nov 11 06:51:54 the libray can be compressed with proguard to almost no size Nov 11 06:52:01 misterli: did you saved that poor guy from the expense of marriage Nov 11 06:52:44 Haha. I didnt write the textes. I dont even care about what people do with the software. It was a project for "Testing" onec and just went into this kind of app because lots of people (and companys) were looking for such an app for an affordable price Nov 11 06:53:42 well, it surely is a good way to make money Nov 11 06:53:49 It was. Not anymore Nov 11 06:54:01 Since google (with jb and kitkat now) have some security-checkups which blocks such kind of app Nov 11 06:54:21 no wonder that lots of disgruntled significant others are there to ensure that you make 10k/month Nov 11 06:54:51 well. It was not a Spy-app when it was in playstore Nov 11 06:55:07 It was "user-friendly" with an notification and an "optional" way to make it hidden Nov 11 06:55:07 aha, Muenchen misterli Nov 11 06:55:25 shouldn't it be HerrLi Nov 11 06:55:29 :-P Nov 11 06:55:30 haha. Nov 11 06:55:36 :D Where are you from? Nov 11 06:57:52 God's Earth Mein Herr Nov 11 07:01:10 hi folks... need some suggestion on pppoe client for android Nov 11 07:01:54 so, how would you suggest me to track statistics of an app which I intend to release to public Nov 11 07:02:03 analytics for android Nov 11 07:02:06 you have been there and done that misterli Nov 11 07:02:06 I have a nexus 7 running 4.3 jellybean. I have a usb-to-ethernet adapter connected to it. I wanna connect to pppoe-server runnin on ubuntu machine Nov 11 07:02:26 well. Google Publish has a very good tracking already? Nov 11 07:02:27 ok, so its similar to Google Analytics for websites Nov 11 07:02:41 but I am not going to be on app stort Nov 11 07:02:42 you have a PPPoE server? :o Nov 11 07:02:43 but I am not going to be on app store Nov 11 07:02:54 for what? Nov 11 07:02:56 @ktwo : yea Nov 11 07:03:10 Looney. Do you really want to release an app outof the playstore? :) Nov 11 07:03:34 @ktwo : just testing purpose Nov 11 07:03:36 well, its my first and I would like to give it a whirl outside the playstore Nov 11 07:04:32 probably thats why there arent exactly a lot of clients for this :-) the use-cases are very limited for it, unless someone would use the android device as a router or something Nov 11 07:04:52 my nexus 7 will be pppoe client and my ubuntu machine would be pppoe-server... just need to check if the pppoe-client thing works Nov 11 07:04:54 only statistic I am interested in is that how many unique installtions Nov 11 07:05:12 Looney. Internet.-Permissions? Nov 11 07:05:38 @ktwo : there is a pppoe-client for linux which is rp-pppoe... in need it run it on android... any suggestions Nov 11 07:05:43 yup Nov 11 07:05:48 they are in place Nov 11 07:05:54 if yes use anylytics if you really dont want to go into playstore. https://developers.google.com/analytics/devguides/collection/android/ Nov 11 07:06:03 at it Nov 11 07:06:53 any more suggestions for me? Nov 11 07:24:26 misterli: basically I need to make a virgin install activity for analytics to detect new installation ? ? Nov 11 07:25:58 Looney. Basically you should/could your own tracking without activity. Use SharedPreferences to show if already installed and then push some data to your server via http for example. Versioncode, country, device, .. if this is enough for you Nov 11 07:26:18 A device running ARM Cortex-A7 core would use arm-v7? Nov 11 07:26:37 i mean armeabi-v7? Nov 11 07:29:06 well, I would like to use only simple +1 for a unique installation Nov 11 07:29:11 that is enough Nov 11 07:29:27 if the user want, then I will start invading their privacy Nov 11 07:29:46 why dont you just use playstore? even "new" apps from beginners and/or users who dont have/plan to have many purchases/downloads are good to use in playstore Nov 11 07:30:06 you can also track crashes via google publish Nov 11 07:30:25 I am sure that this app of mine is against their TOS Nov 11 07:30:41 copyright issues Nov 11 07:30:46 oh, i c Nov 11 07:31:11 well. Use GCM or HttpClient and send a push to one of your servers Nov 11 07:31:18 including a very simple php script to collect Nov 11 07:31:40 analytics seem viable solution to me Nov 11 07:32:03 and I hope that SharedPrefernces are not deleted on reboot Nov 11 07:32:14 No. They are just deleted when the app get reinstalled Nov 11 07:32:45 ok, not a biggie at the moment Nov 11 07:35:47 http://code.google.com/p/android/issues/detail?id=62091 Nov 11 07:35:48 * nyt sighs Nov 11 07:35:50 so friggen annoying Nov 11 07:36:51 do you have a fix? Nov 11 07:36:57 i mean it looks like you've completely figured it out Nov 11 07:37:55 didn't get that far yet Nov 11 07:38:03 don't have a server setup to build/test Nov 11 07:38:30 i'll make sure someone looks at it Nov 11 07:38:39 thx Nov 11 07:39:55 all my goog contacts via work are in network or similar depts so its nice to have someone from android poke in Nov 11 07:40:51 well if you come to this channel during pacific time business hours, there's usually a few people paying attention Nov 11 07:40:56 in the mean time, going to try to develop a workaround. ontaskremoved is triggered when the app is swiped, so I have a window of time to run something before receiving a broadcast Nov 11 07:40:59 i jsut happen to have irc open right now :P Nov 11 07:41:41 just need to be able to run something not intrusive that gets waitingToKill removed from the process Nov 11 07:41:55 launching an activity does, but that's intrusive Nov 11 07:51:06 heh any ideas? Nov 11 08:39:54 Anyone have any tips on determining changed content when a content observer is notified that some content (say in ContactContracts) has changed without holding the current state of that content to compare it to? Nov 11 09:05:02 is it an incorrect expectation of me that getFragmentManager().beginTransaction().replace(R.id.fragment_holder, f).commit(); Nov 11 09:05:14 would replace the fragment holder, rather than append the fragment to it ? Nov 11 09:08:09 add i get Nov 11 09:08:11 replace, nope Nov 11 10:09:55 hi folks Nov 11 10:10:04 i can haz question Nov 11 10:10:18 i'm in the actionbarsherlock menu item limbo Nov 11 10:10:41 actionbar comat is where it's at Nov 11 10:10:47 compat* Nov 11 10:10:56 i know Nov 11 10:11:12 i know only too well Nov 11 10:11:12 however Nov 11 10:11:28 it is 'impossible' (for whatever reason) to make changes like that on this project Nov 11 10:11:52 now i'm not here to bitch about my management, about which you have no reason to know anything at all Nov 11 10:12:57 but, what the hell? why isn't it even ever called? Nov 11 10:14:14 are you overriding it in a fragment or activity Nov 11 10:14:29 yes, a old (v4) style support fragment Nov 11 10:14:41 are you calling setHasOptions(true) in onActivityCreated? Nov 11 10:14:55 … in onCreate, actually Nov 11 10:15:03 hm Nov 11 10:15:43 oh you may want to extend SherlockFragment instead of the support fragment Nov 11 10:15:57 not-sure-if-that-is-an-option, but lets' run with it Nov 11 10:16:02 not sure if that'll make any difference Nov 11 10:17:26 it is impossible for now, anyway, so yeah Nov 11 10:17:29 :-) Nov 11 10:18:06 minSdkVersion="14" is where it's at, actually Nov 11 10:18:12 is the hosting activity definitely getting the call? Nov 11 10:18:24 i'm so nearly there ;_; Nov 11 10:18:25 letmesee, that is a good thing to check Nov 11 10:18:39 at my company we only drop support for < 5% :( Nov 11 10:18:54 I'm gonna try get it pushed to like 10ish if i can Nov 11 10:22:58 alright, i'm just going to hack it into the containing activity Nov 11 10:23:02 thank you very much :-) Nov 11 10:35:42 ok, peeps, I have a thread which adds data to arraylist from the webz Nov 11 10:35:55 works quite neat Nov 11 10:36:05 now I want to put data in a listview Nov 11 10:36:15 should I be using runOnUiThread Nov 11 10:36:21 or ? ? Nov 11 10:36:27 define "put" Nov 11 10:37:04 I want to do setAdapter thingy Nov 11 10:37:18 yes, you need to do it on UI thread Nov 11 10:40:54 if I comment line 109, there is no exception Nov 11 10:40:55 http://pastie.org/8471551 Nov 11 10:41:44 once, I uncomment the line 109, I get android.view.ViewRoot$CalledFromWrongThreadException Nov 11 10:42:32 should I include the runOnUiThread runnable inside my networking thread runnable Nov 11 10:42:37 Looney, probably, yes Nov 11 10:42:56 wait wait Nov 11 10:43:06 you are modifying the adapter on a background thread Nov 11 10:43:20 modifying the adapter should be running on the ui thread Nov 11 10:43:44 but runOnUiThread should take care of it, no ? ? Nov 11 10:43:45 also, you should probably use an asynctask for this stuff Nov 11 10:43:48 no Nov 11 10:44:00 alright, lemme explain whats' happening here Nov 11 10:44:06 ok, please Nov 11 10:44:12 a): you are starting a thread, and it gets a result Nov 11 10:44:18 from Jsoup Nov 11 10:44:21 Amen Nov 11 10:44:33 genre is probably your arraydaapter Nov 11 10:44:36 adapter Nov 11 10:44:43 yup Nov 11 10:44:55 it is, you can guess from getCount Nov 11 10:45:27 alright, so what happens is that your arrayadapter is directly being modified in the background thread - the same thread that also read the jsoup data Nov 11 10:45:41 ok Nov 11 10:46:27 now, if your arrayadapter is being watched by the listview - 'connected to the listview', so to speak, it will see those updates coming from another thread, and raise an exception Nov 11 10:46:58 basically, you have to do one of the following things: Nov 11 10:47:17 a - load and process the data in the background, an b): insert the data into the adapter on the ui thread Nov 11 10:47:30 ok Nov 11 10:48:01 or, create a new adapter in the background thread, and add it to the listview in the ui thread Nov 11 10:48:02 :-) Nov 11 10:48:37 you suggest commenting line 109 and uncommenting 110 Nov 11 10:48:40 ? ? Nov 11 10:49:04 no… i suggest you either move line 109 to line 92 Nov 11 10:49:27 or better yet, you use an AsyncTask because they are made for this purpose Nov 11 10:50:53 replaced this with activityContext in your line suggestion Nov 11 10:51:02 or should I leave "this" as it Nov 11 10:51:04 or should I leave "this" as is Nov 11 10:54:37 you can probably just replace this with '' nothing :-) Nov 11 10:54:46 java knows that you mean the runOnUiThread of the containing object Nov 11 10:54:49 ok Nov 11 10:55:27 but serioulsy Nov 11 10:55:31 use AsyncTask Nov 11 10:55:34 its what they are for Nov 11 10:56:13 i can probably overdo the praise becoming to AsyncTask, but they are really quite useful for exactly this scenario Nov 11 10:56:16 I know, they are there and make life easier Nov 11 10:56:31 :-) Nov 11 10:56:38 since not a time critical thing I am upto, so trying to fiddle with thread Nov 11 10:57:05 very well, that is up to you Nov 11 10:57:19 just make sure the runnable is initialized before you start the thread getting the data Nov 11 11:04:55 figured that thing first Nov 11 11:09:10 partial voila Nov 11 11:09:17 no exception, no view Nov 11 11:16:39 no view? hmmm Nov 11 11:16:58 could you show the code again? Nov 11 11:22:26 I changed my package name and the app compiles and will load the first screen, but not any others. Nov 11 11:23:02 can't really figure out why Nov 11 11:26:21 I've changed the manifest, and refactored. Nov 11 11:26:39 Anything that tries to touch the database I'm using will crash though. Nov 11 11:38:30 Looney: I'm doing a similar thing but scanning storage for media files in Asynctask and populating the list on ui thread Nov 11 11:40:43 the part I'm still not sure if I did right is, in MainActivity I had to create a new runnable to check when the Asynctask has finished Nov 11 11:41:11 When to use a asynctask ? and when to use a runnable? Nov 11 11:41:49 use Asynctask for anything that will make the UI lag Nov 11 11:42:47 I see runnable like a loop I can use to constantly check for something during runtime Nov 11 11:43:33 ok thank you :) Nov 11 11:48:31 any thoughts about my layout? Nov 11 11:48:32 https://www.dropbox.com/s/nquraqed9ftqj9i/Screenshot_2013-11-11-12-46-53.png?m Nov 11 11:49:32 I'm trying to do a school assignements and homework planner app Nov 11 11:59:09 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Using-sourceCompatibility-1.7 nice, can I add 1.7 compatibility to ant? Nov 11 11:59:53 or, is there some guide to migration from ant to gradle? Nov 11 12:00:07 with android in mind Nov 11 12:04:06 Does anyone know, can I layer a custom view on top of a gridview and still receive touch events in the gridview? Nov 11 12:06:33 lasserix: 1, you can catch the touch events and return false Nov 11 12:06:35 fabianH, nice layout, tho you might use left and right justification to dileneate cells Nov 11 12:06:44 2. you can set clickable to false Nov 11 12:06:52 thepoosh: you mean on the custom view ? Nov 11 12:06:53 to everything that extends View Nov 11 12:06:56 yes Nov 11 12:07:03 ahh Nov 11 12:07:12 but i want the touch listener on the gridview Nov 11 12:07:15 vustomView.setClickable(false) Nov 11 12:07:22 lasserix: Yes, you can Nov 11 12:07:30 By default views don't catch touch events Nov 11 12:07:35 ahh ok Nov 11 12:07:44 once you return false, the next view in the hierarchy will catch it Nov 11 12:07:59 You don't have to override anything, call any methods, etc Nov 11 12:08:13 the end idea is to basically enable a drag and drop on a gridview by just drawing over the gridview (and using notifydatasetchanged to hide while in drag mode) Nov 11 12:08:20 thanks! Nov 11 12:08:56 For drag'n'drop you should watch the devbytes on it Nov 11 12:09:53 > Nov 11 12:09:54 ? Nov 11 12:10:11 ahh cool Nov 11 12:10:11 thanks Nov 11 12:10:22 trying to avoid 3.0>api calls so it is backwards compat Nov 11 12:10:57 ahh perfect thanks SimonVT! Nov 11 12:13:00 for a person knowing Java, what's the ___fastest___ way to learn/start programming android apps? Nov 11 12:13:21 Good question! Nov 11 12:14:38 ovrflw0x: start with couple of basic tutorials, then xperiment ad read the doc. Nov 11 12:14:49 overflw0x: generate some project ideas that seem feasible, code them rinse and repeat with more complexity Nov 11 12:17:19 i was wondering if there are some "copy/paste" working examples to start out with Nov 11 12:22:01 Does anyone know if the phone type icons exist somewhere i can access thru android.R. (like work home mobile etc)? Nov 11 12:22:02 ovrflw0x: do you have the IDE installed and written hello world ? Nov 11 12:28:21 On some devices I get the message "the app has not been installed" when I try to run an apk-file, is there anyone else getting this? Nov 11 12:36:02 bogey call when I said no view, the text is in white :'( Nov 11 12:37:05 does anyone have any internet android devel resource that would like to share to quickly grasp android app devel? Nov 11 12:37:37 and I was stupid enough to reuse and old xml without changing colour value :'( Nov 11 12:38:17 the ephiphany of checking colour came after drinking a mug of magical fluid which earthlings call coffee Nov 11 12:39:04 Looney: was it white on white ? Nov 11 12:39:09 yup Nov 11 12:39:14 lol Nov 11 12:39:43 well you can enforce colors in xml or java Nov 11 12:39:52 and you think its funny Nov 11 12:39:57 :-P Nov 11 12:40:13 or themes Nov 11 12:40:15 changed the xml and now seeing data in my listview as expected Nov 11 12:40:37 why did I delay my coffee Nov 11 12:41:16 switch to tea, its better Nov 11 12:41:53 coffee is like coke, you get a nice buzz and then crash and burn Nov 11 12:42:20 it dehydrates Nov 11 12:42:54 I thought that was a myth? Nov 11 12:43:39 ok maybe a bit of an exaggeration ;) Nov 11 12:43:57 but I get headaches from coffee compared to tea Nov 11 12:44:10 I don't remember exactly, but the rationale went like this: Yes, caffeine dehydrates, but you take it in with 200ml of water alongside it. :D Nov 11 12:44:47 Whatever works for you. I drink both, and a lot of water. Nov 11 12:52:02 water yes, a lots of it Nov 11 12:52:18 <^cheeky> kakazza: when it dehydrates it also dellites your vitamins and minerals ... Nov 11 12:52:27 because coffee is a know diuretic Nov 11 12:52:49 <^cheeky> *depletes Nov 11 12:53:22 i tried compiling w/o proguard, the apk-size was smaller w/o proguard! Nov 11 12:53:30 <^cheeky> be smart grab a monster, got the caffeine + minerals so you crash onto a smooth fluffy pillow :P Nov 11 12:53:31 <^cheeky> DING Nov 11 12:53:33 i've used proguard on this project for years Nov 11 12:54:02 jakob|: progaurd is not just for apk size Nov 11 12:54:08 *proguard Nov 11 12:54:41 thepoosh: but something must have changed in ADT. if i would have compiled this 1 year ago it would have been much larger because i have external jars and shit Nov 11 12:55:12 hmmm Nov 11 12:55:32 that was the reason i started using proguard Nov 11 12:55:40 to reduce the apk-size Nov 11 12:57:57 for padding font size, etc. sp is recommended unit ? ? Nov 11 13:00:40 looking through this code I'm working with i wonder who the previous coder was using temporary names like "lolsinner" for a click listener Nov 11 13:01:13 hehe Nov 11 13:01:22 neat stuff you discovered lasserix Nov 11 13:01:31 well just some of the names are very odd Nov 11 13:01:50 guess just temporary names that never got codified before the project was passed on Nov 11 13:01:54 ok, if I rotate my phone, the listview data gets pulled from internet again Nov 11 13:02:11 I mean, shouldn't it be in Dalvik Nov 11 13:02:21 I mean in memort Nov 11 13:02:23 I mean in memory Nov 11 13:04:03 not in a way you can access it i believe Nov 11 13:04:13 you have to save your state somehow Nov 11 13:04:24 you can use a non ui fragment to hold the listview's underlying data set Nov 11 13:04:43 came across the following suggestion on SO Nov 11 13:04:48 or you can dump the underlying data set into retainobject in activity Nov 11 13:05:45 Nov 11 13:06:06 but can I use this thing inside my application tag Nov 11 13:06:18 so that this applies to my all activities Nov 11 13:10:31 yeah but if someone calls Nov 11 13:10:37 while your app is loading Nov 11 13:10:41 you'll still lose the state Nov 11 13:10:45 when the user goes back Nov 11 13:10:55 *while your app is in foreground/active Nov 11 13:12:14 ok Nov 11 13:14:00 Whats the best way to show a httpresponse? I'm using the entity.getContent() but i dont think im using it right, as i only get one line telling me what server type it is (usually apache) Nov 11 13:14:39 see EntityUtils class Nov 11 13:15:11 will do, thanks Nov 11 13:29:33 Where I can find the definition of TextApperance.Medium style ? And how can I search for other styles ? Nov 11 13:32:10 how is fitsSystemWindows propagated ? Nov 11 13:36:21 Hi I just learn about adding a custom button by using the android:imeOptions, but how do I add a custom one? Nov 11 13:38:29 hey guys Nov 11 13:39:05 i want to implement location update for my app using 2 trigger criteria — minDistance of 500m OR minTime of 10 minutes Nov 11 13:39:35 is the usage of 2 LocationListener for the same provider from the same app supposed to be supported? Nov 11 13:48:49 hi, i am invoking a class B from some android class (A => invokes B.main).. B calls its constructor (B.main => B.cstr)... in that constructor it calls some library-class-function (B.cstr => C.someFunction)... i do get a java.lang.NoClassDefFound Exception @ C.someFunction. the same code works just fine (without the invoke / Android stuff) on my desktop, therefore it has to do something with th Nov 11 13:48:49 e invoke/android-stuff... any idea, anyone? Nov 11 13:52:48 maybe u included the wrong class? Nov 11 13:58:31 FabianH, same code works on my desktop, just using an "android launcher" makes it crash.. Nov 11 14:00:01 is your library even included in android package? Nov 11 14:01:32 its added under referenced projects. doesnt work if its included with a jar-file too Nov 11 14:06:00 maybe you have a problem with your constructor Nov 11 14:06:02 Mavrik, can i (double-)check that somehow? Nov 11 14:06:25 post your logcat Nov 11 14:06:44 lemme see.. one sec Nov 11 14:08:55 11-11 14:32:22.333: I/dalvikvm(29030): Nov 11 14:08:56 Could not find method util.Constants.isWindows, referenced from method playerswt.PlayerSWT. Nov 11 14:09:20 util.Constants being the library-class and isWindows a static-function (to check if the code is running on windows) Nov 11 14:12:38 no Nov 11 14:12:50 ack misfire Nov 11 14:14:04 nyt, was that meant for me? Nov 11 14:19:18 hello, in an GLSurfaceView-based game, how granular should I make activities? Is it like per screen, per level, per game (and just handle scenes manually)? Nov 11 14:19:26 anyone got tips for desisngning a android ui? Nov 11 14:21:27 ...seems like I should have as few context-switches as limited by resource memory usage, does that make sense? Nov 11 14:21:50 FabianH, d.android.com/tutorial Nov 11 14:22:06 hi Nov 11 14:22:07 what's the difference (if any) of using intellij instead of eclipse? Nov 11 14:22:13 i have the pic in drawable caled slide Nov 11 14:22:18 LOTS Nov 11 14:22:24 called slide_1_image Nov 11 14:22:24 are there things that eclipse can do and intellij cant or vice versa? Nov 11 14:22:28 in my opinion, intelij is much slower .. Nov 11 14:22:32 intellij is TONS better than eclipse Nov 11 14:22:42 at least on my 2 x 1.4 ghz laptop.. Nov 11 14:22:45 When try R.drawable.slide_1_image, is not getted Nov 11 14:22:46 but use android studio cause it is based on intellij's free version Nov 11 14:22:47 can help me? Nov 11 14:23:12 android studio is sitll experimental though? Nov 11 14:23:13 jasabelle, intellij can do more than eclipse .. eclipse cant do anything that intellij cant Nov 11 14:23:24 Resource Path Location Type slide_1_image cannot be resolved or is not a field Nov 11 14:23:28 jasabelle, not really its stable enough to use Nov 11 14:23:35 our entire dev team is on android studio Nov 11 14:23:39 has anyone used the new storage framework APIs? Im having trouble getting an image's path from the returned content URI, doing a managed query is returning null Nov 11 14:24:00 using 4.4s document picker Nov 11 14:24:12 if you have a fast pc, then use android studio.. Nov 11 14:24:20 if not, then eclipse is the better choice.. Nov 11 14:24:29 other way around Nov 11 14:24:42 if you have a slow pc use android studio Nov 11 14:25:02 if you have a fast pc why torture yourself with eclipse ? just use android studio Nov 11 14:25:33 jasabelle: you can use intellij 13 eap Nov 11 14:25:37 android studio is much slower Nov 11 14:25:58 FabianH, its not slower i have found it to be faster on all machines Nov 11 14:26:01 i tried it on my slow pc, but it was not quite good Nov 11 14:26:05 really? Nov 11 14:26:08 and i have not had android studio crash once Nov 11 14:26:12 for me it's really slow Nov 11 14:26:15 eclipse crashes 3-4 times a day Nov 11 14:26:21 it has most if not all of the features in astudio Nov 11 14:27:35 what's the difference between android studio and intellij? Nov 11 14:27:53 AS is based on IntelliJ 13 eap Nov 11 14:28:05 but its focussed on android as in only android projects Nov 11 14:28:18 if you doing other projects then use intelliJ 13 eap Nov 11 14:28:24 but thats about it Nov 11 14:31:25 i really don't like to use android studios gradle Nov 11 14:31:30 it's confusing for me.. Nov 11 14:31:44 gradle might be confusing at first but its actually pretty decent Nov 11 14:31:46 so much new things to learn.. i like to just add librarys to the project.. Nov 11 14:31:48 It's the new build system. Better get used to it ;) Nov 11 14:31:57 where is the difference? Nov 11 14:32:03 i don't get that.. Nov 11 14:32:15 what's wrong with the old system Nov 11 14:32:28 No dependency management, for one. Nov 11 14:32:34 indeed Nov 11 14:32:47 maven is cool Nov 11 14:32:58 Gradle makes it easy to build flavors, have custom fields in your BuildConfig file instead of just DEBUG etc. Nov 11 14:33:27 i love that i can just do compile 'com.android.support:support-v4:18.0.0' and it works Nov 11 14:33:27 I guess as AS progresses, they'll automate things more. With 0.3.4 they added a GUI for some parts of the Gradle Config afaik. Nov 11 14:33:36 and that i can have my buildConfig generated Nov 11 14:33:46 @AS being slow, I only heard that from linux users so far. But that's only anecdotal evidence. Nov 11 14:34:04 kakazza, i am on linux and its not slow Nov 11 14:34:09 faster than eclipse Nov 11 14:34:24 I see, because a friend went back to Eclipse on Linux. Nov 11 14:34:26 *shrugs* Nov 11 14:34:32 YMMV Nov 11 14:34:51 we are 2 thirds on linux here and 1 third on windows Nov 11 14:34:55 and everyone is on AS Nov 11 14:35:03 https://www.dropbox.com/s/nquraqed9ftqj9i/Screenshot_2013-11-11-12-46-53.png?m Nov 11 14:35:04 no complaints from either side :) Nov 11 14:35:15 i need some suggestions for that layout.. Nov 11 14:35:21 i'm doing a school planner.. Nov 11 14:35:31 you like it? Nov 11 14:35:48 lemonxah: That's good to hear! Nov 11 14:42:53 Where I can find the definition of TextApperance.Medium style ? And how can I search for other styles ? Nov 11 14:43:29 hi Nov 11 14:43:31 can read me? Nov 11 14:43:34 hi Nov 11 14:43:36 no Nov 11 14:43:41 thanks Nov 11 14:43:47 i have the pic in drawable Nov 11 14:43:49 called slide_1_image Nov 11 14:43:51 When try R.drawable.slide_1_image, is not getted Nov 11 14:44:07 Resource Path Location Type slide_1_image cannot be resolved or is not a field Nov 11 14:44:11 but i have the image Nov 11 14:44:14 in drawable Nov 11 14:44:16 i am using eclipse Nov 11 14:47:12 try renaming Nov 11 14:47:47 trying Nov 11 14:48:17 nothins Nov 11 14:48:27 show source Nov 11 14:56:55 http://pastebin.com/hUJpsD3t Nov 11 15:00:04 lemonxah, how are you effectively writing scala in AS? or at work it's all java? Nov 11 15:15:32 Hello! Is there any possibility to give user link on play market with referal parameter and when application will be installed - use this referal parameter? Nov 11 15:15:51 Yauhen90: http://support.mobileapptracking.com/entries/22561636-How-Google-Play-Install-Referrer-Works Nov 11 15:19:42 any? Nov 11 15:20:55 Design question. I want my fragments to have access to a data helper for getting JSON from a webservice. Should I make all my fragments through an interface so they have a callback from the data helper? Nov 11 15:44:01 does anyone know how to handle the URI returned from the new document picker in 4.4? Doing a content query on that returns null Nov 11 15:58:34 how to specify z-index on android? Nov 11 15:59:01 I have two overlapping views and i want hard code their z-index value Nov 11 16:04:02 shadej: the ordering in the FrameLayout determines their z-order Nov 11 16:05:55 evan: can i change their order programmatically? Nov 11 16:07:17 I bought motorola atrix 4g from ebay and its locked to ATT. When I insert sim it asks for sim network unlock pin. Nov 11 16:07:35 shadej: remove them and use addView(View,int) to insert it in the desired position Nov 11 16:07:38 mms_: #android Nov 11 16:07:43 ok Nov 11 16:09:25 how do fragments handle the back button when added to the stack? I'm getting adapter crashes and failures to initialize when i hit back even though I initialize data in onCreate Nov 11 16:10:00 onResume? onStart? how do i handle savedInstance in those instances (or is it even needed if onCreate isn't called?) Nov 11 16:12:07 YEA ANDROID Nov 11 16:12:09 woop woop Nov 11 16:24:56 the new document picker in KK uses a different content URI which I can't get the file path from, what would be the best way to send the URI input stream over HTTP for file upload? Nov 11 16:31:06 hello. why does countdowntimer hang on the last second? Nov 11 16:31:40 havent you seen action movies? Nov 11 16:31:43 timers never hit 0 Nov 11 16:31:53 hi Nov 11 16:31:57 before they explodes Nov 11 16:31:59 :p Nov 11 16:32:03 heh Nov 11 16:33:20 i have http://d.pr/i/wYVA in my Android Preferences of project: ../submodules/viewpagerindicator/library Nov 11 16:33:39 when i try heh Nov 11 16:33:45 but Nov 11 16:33:57 I made him to hit 0 Nov 11 16:34:00 so jokes on you Nov 11 16:37:48 Is it possible to pust an expandlelistview inside an expandeble listview expanded item Nov 11 16:38:16 resulting in another level Nov 11 16:41:30 what will happen when OEMs start work on 4.4 with the document picker? I can see them removing it and using their own weird version which will return different content URIs x_x Nov 11 16:41:32 not really, no Nov 11 16:41:45 android studio or eclipse Nov 11 16:41:46 ? Nov 11 16:42:19 intellij Nov 11 16:42:27 free? Nov 11 16:42:30 yes Nov 11 16:42:32 use the CE Nov 11 16:42:47 can export eclipse and import in intellij ? Nov 11 16:42:57 should handle it somewhat Nov 11 17:08:07 static reference to Application singleton good/bad? Nov 11 17:13:37 where is the AVD? I installed the SDK but the AVD manager is no where to be found? Nov 11 17:25:23 tunage: check your User\AppData\Local\Android dir Nov 11 17:31:51 hey guys, http://pastebin.com/K6YZAWyp Log part is the issue. Any sugesstions? Nov 11 17:31:53 i am expecting INT Nov 11 17:34:58 anyone? Nov 11 17:35:02 I need to catch a broadcast, if my activity is in foreground and avoid it from being received by anything else. If my activity is not in FG, I need separate broadcast receiver to receive and create a notification about it. How can I do it? Nov 11 17:36:45 Xtreme: Why don't you implement a method called getCurrencyName(position OR id); inside the adapter itself? Nov 11 17:37:32 Xtreme: or even cleaner, get the object itself using the overriden getItem(position); method Nov 11 17:37:56 napster, :) answer is simple. learning andoird, following a tutorial. :) and new to java too. :) Nov 11 17:38:46 Xtreme: oh :) You can override the getItem() method if you are extending a BaseAdapter and you may return the exact item from your data list there. Nov 11 17:39:31 Then get it inside your on item click listener, by listAdapter.getItem(position); and get your required data from it. Nov 11 17:40:11 hmm.. interesting. :) thanks, Will try it. (not now, just after i finish this one, but i will) Nov 11 17:40:55 okey Nov 11 17:41:16 Can someone help me out on this one? : I need to catch a broadcast, if my activity is in foreground and avoid it from being received by anything else. If my activity is not in FG, I need separate broadcast receiver to receive and create a notification about it. How can I do it? Nov 11 17:50:22 Trying to upload a new apk to google play, but the upload progress gets stuck at 1%. Is this happening to anyone else? Nov 11 17:52:02 Hi Nov 11 17:53:15 I have overrided the OnDrawText method of a textview. I want to keep what i have painted before calling this method every time. Unfortunately, every time this method is called, what I draw before is erased Nov 11 17:54:37 any idea please? Nov 11 17:54:56 the canvas is passed as paraemter to the OnDrawText method, and every time time the canvas is new.. so i think this is the reason Nov 11 17:55:07 can i reuse the same canvas every time ? Nov 11 18:04:49 I get Task 'wrapper' not found in project Nov 11 18:05:10 when trying to import in android studio.. Nov 11 18:06:22 anyone got a solution? Nov 11 18:06:28 that's why i hate android studio.. Nov 11 18:09:20 hi Nov 11 18:09:28 i am using eclipse Nov 11 18:09:39 does anyone know how to use android gradle and not include the dependencies "transitively" ? I have an app that depeends on a project and when I build the APK, it keeps packaging the external dependencies into the APK Nov 11 18:10:42 or does someone know how to compile a jar into dex using android gradle? Nov 11 18:38:03 does anyone know where I can read how to put more complex shapes into my OpenGL ES environment rather than just squares and triangles Nov 11 18:38:37 like putting actual images in my OpenGL ES Environment Nov 11 18:39:16 there are tons of opengl tutorials online. The basics are the same between desktop and ES version. Nov 11 18:39:26 you can probably even find an opengl es tutorial these days Nov 11 18:39:41 "texture" is likely the term you want to look for :) Nov 11 18:40:06 well i was told that the opengl es lesson on the android tutorial showed how to do what I'm asking but i can't find where Nov 11 18:43:40 Hey guys Nov 11 18:43:43 i have listview Nov 11 18:43:48 in which i have many edittext Nov 11 18:43:54 i need to set changelistener on them Nov 11 18:43:58 how can i do it? Nov 11 18:49:50 I must be doing something dumb. Why can I access android.R.drawable.ic_media_play, but not android.R.drawable.ic_media_stop? Nov 11 18:50:27 in teh gui designer (in android studio), @android:drawable/ic_media_stop causes a "cannot resolve" error, but the preview shows it fine Nov 11 18:51:02 anyone? Nov 11 18:52:22 Xtreme: sorry, I havne't done anything like that Nov 11 18:53:03 ColonelPanic001, no prob :) Nov 11 18:53:59 hm, looks like the ic_media_stop legitimately isn't in android.R. Weird, since there's play, pause, next, etc Nov 11 18:55:03 Noone references framework drawables directly anyway Nov 11 18:55:15 Colonel does! Nov 11 18:55:22 Q.E.D. Nov 11 18:55:42 I just need a stop button and if there was one built-in already, didn't see the appeal of drawing my own qhite square :P Nov 11 18:56:12 ColonelPanic001: http://j.mp/androidassetstudio Nov 11 18:56:12 See if there isn't one in the icon package on the design page you can use Nov 11 18:56:36 cool, thanks Nov 11 18:57:02 Click "Clipart", it contains what you need Nov 11 18:57:46 just found it, thanks. Nov 11 18:57:54 just seems weird they'd do everything except stop. meh. Nov 11 18:58:49 SimonVT is right, though. You never know when they might remove an icon, so it's better to ship your own. Nov 11 18:59:15 They wont remove drawables that are exposed in the api Nov 11 19:00:01 but those drawables will be different based on which version of android your app is running on Nov 11 19:00:09 heh, to be fair, I'm using pause, play, and stop - about as simple as a icon gets, simple shapes. Maybe I should do drawable xml files for them. Nov 11 19:00:18 I mean, we're talking about a square. Nov 11 19:01:06 and yeah, in this case I specifically need it white, rather than being in a menubar or something where I Might want to it be whatever the default is for that version of android, etc Nov 11 19:01:07 Stop is deprecated Nov 11 19:01:21 heh. "stopping a media file is no longer supported" Nov 11 19:01:34 e.g. play music just has pause Nov 11 19:02:07 Lots of media players do Nov 11 19:02:30 meh. I'm not trying to argue, it just seems odd to me. Nov 11 19:03:09 Pausing essentially stops it anyway, except it doesn't lose progress Nov 11 19:03:36 right, so it's different. Nov 11 19:03:43 not much, but is Nov 11 19:03:51 I guess they think stopping is analogous to the back button Nov 11 19:03:57 yeah, that's probably it Nov 11 19:04:14 but also "awesome player" may not handle stopping media well either Nov 11 19:04:24 They just think it's redundant Nov 11 19:04:31 it has enough trouble seeking Nov 11 19:04:53 (which it is :p) Nov 11 19:05:12 how is it redundant if it performs a different function? Nov 11 19:05:25 not that I think they should add stop back, just curious Nov 11 19:06:01 There's no reason to add a stop button Nov 11 19:06:13 that may be true. Nov 11 19:06:19 but that's different that redundant d= Nov 11 19:06:50 *someone* may find it reasonable Nov 11 19:07:06 SimonVT, you're a true believer. Nov 11 19:07:11 haha Nov 11 19:07:22 When playing a cd, stop and pause makes sense Nov 11 19:07:24 maybe I'm thinking about this wrong then (still a bit new) - I was having the play/pause button do a mediaplayer.pause, and stop do a .stop() and .release() - should I not do that? Nov 11 19:07:32 When playing digital media, eh.. Nov 11 19:07:32 this is for a mp3 stream Nov 11 19:07:45 SimonVT: but you're just restating what you said, not saying why Nov 11 19:08:10 I don't think there's actually a pause() function. there's just play and stop Nov 11 19:08:21 or start and stop rather Nov 11 19:08:48 http://developer.android.com/reference/android/media/MediaPlayer.html Nov 11 19:08:50 sure there is Nov 11 19:09:03 wait, read your line wrong Nov 11 19:09:04 checking Nov 11 19:09:09 void pause() Nov 11 19:09:10 Pauses playback. Nov 11 19:09:10 I'm wrong Nov 11 19:09:28 hm, should i be able to ContentResolver.notifyChange( URI … ) on a URI that isn't based on an authority from manifest entry ? Nov 11 19:09:49 Pausing the stream essentially stops it Nov 11 19:09:51 ColonelPanic001: remembered it wrong sorry Nov 11 19:10:04 dcow: np, you just made me check that I was right, never a bad thing Nov 11 19:10:11 SimonVT: essentially, or it does the same thing? Nov 11 19:10:20 I'm legitimately asking, not trying to argue. Nov 11 19:10:30 SimonVT but stop has a very different meaning as to what happens on the codec level Nov 11 19:10:40 as in, I assumed pause would keep things in memory, keep the streaming going, etc, while stop might drop the connection, etc Nov 11 19:10:43 You might buffer a bit.. If the user pauses and backgrounds the activity, you can shut it down completely Nov 11 19:10:43 kakazza true believers, pragmatists, and skeptics :) Nov 11 19:11:02 You can handle this smartly in the app, instead of leaving it up to the user Nov 11 19:11:13 yeah, I hate letting the user stop a music stream. Nov 11 19:11:17 so users are dumb? Nov 11 19:11:36 (I don't like assuming my users are idiots) Nov 11 19:11:40 maybe they want to pause it for a second, then start back up, and later on they're legitimately done, and want to drop it entirely Nov 11 19:11:45 (but I digress) Nov 11 19:11:45 this doesn't seem that far fetched to me Nov 11 19:12:01 or in my case, I want to keep the foreground notification while paused, but drop it when they stop Nov 11 19:12:13 because in one case they're not done using it, and in the other they are Nov 11 19:12:55 g00s: :) Nov 11 19:13:32 ColonelPanic001: as I said before, I don't think it's because it's redundant, but more because of the way they want you to think about resource acquisition in android. nothing should hold onto resources longer than needed, so stopping something (being done with it) is the same as finishing the activity displaying it Nov 11 19:14:12 I like how play music handles the notification. If paused while app is backgrounded, notification stays.. If paused while in app, it disappears Nov 11 19:14:16 media, then, should never be "stopped", or in other words, you should not hold onto resourcess you don't need Nov 11 19:14:19 yeah, maybe. But that doesn't seem intuative, at least in this case. But, I'm just starting to think about it, maybe it is Nov 11 19:15:13 if it's paused, it means you can come back to it. if it's stopped why hold onto it Nov 11 19:15:30 and in that sense I tend to agree with the deprecation of stop Nov 11 19:15:39 yeah, I can see that argument Nov 11 19:15:45 When paused, you should be prepared to release resources anyway if device memory runs low Nov 11 19:15:48 SimonVT: I don't have any music on my phone, when does it disappear when in background? Nov 11 19:15:55 SimonVT: but that's different Nov 11 19:16:04 same here, maybe that's part of the confusion - I don't use android for music at all Nov 11 19:16:15 When swiped away? Nov 11 19:16:49 kakazza: It has its own little x button actually Nov 11 19:17:06 Eh? Nov 11 19:17:17 Like the Alarm/Snooze has? Nov 11 19:17:58 the player stats a service that handles music playback. when there's an activity showing, you comunitcate that way. when you leave the activity, a notification is placed in the drawer Nov 11 19:18:29 you can "stop" the playback by dismissing the notification or you can simply pause it via the notification Nov 11 19:18:58 that's pretty much what I should probably do, suppose Nov 11 19:19:15 in the case of dismissing the notification, they entire service playing the music is allowed to die, it doesn't sit around and wait for you to come back to it only to press a stop button, or something Nov 11 19:19:40 Leave the activity without anything playing and there's no notification Nov 11 19:19:47 yes Nov 11 19:26:13 hello Nov 11 19:26:29 shouldn't be that hard to port a java applet to android, right? Nov 11 19:27:08 what are you trying to do? Nov 11 19:27:21 android is not java Nov 11 19:27:34 i mean as an android app Nov 11 19:27:41 does it not use Java? Nov 11 19:27:43 Hi everyone, is it necessary to use android.text.StaticLayout in the UI thread ? Thanks. Nov 11 19:28:15 I have a card game java applet that I want to port to android. Nov 11 19:28:23 does WebView contain a java applet engine ? Nov 11 19:29:55 fish47: all UI manipulation must be done from the UI thread Nov 11 19:30:04 shmooz: the fact that you're asking that scares me Nov 11 19:30:28 paulo_: it likely won't be easy, and it's equally likely that you shouldn't do it that way even if it worked. Nov 11 19:30:55 evanc: I haven't tried it, but if it does, that's what paulo_ can use Nov 11 19:31:12 evanc: But what classes / interfaces that make it can't run in child thread ? Nov 11 19:31:41 most of the code is easily separable Nov 11 19:32:25 I'll just need learn the gui part Nov 11 19:33:14 in that case, you are taking the right approach. you should be able to "port" your strict java code rather easily. you're correct you'll need a real android ui Nov 11 19:33:17 so I guess it's confirmed, the moto x on vzw doesn't have an unlockable bootloader Nov 11 19:33:18 fucking lame Nov 11 19:33:30 dev edition is such a ripoff Nov 11 19:33:34 vzw is fucking lame Nov 11 19:33:44 I'm disappointed that motorola is a google company... Nov 11 19:33:58 s/that/because Nov 11 19:34:08 dcow: thanks Nov 11 19:34:13 you can buy a moto x out of contract Nov 11 19:34:23 from motorola, can't you? Nov 11 19:34:25 almost as bad as java and mysql being owned by oracle ;) Nov 11 19:34:53 shmooz i almost wonder if java is making more progress under oracle than sun Nov 11 19:35:10 g00s: almost but not quite ;) Nov 11 19:35:11 despite Dr Evil, etc Nov 11 19:36:01 they should release it to the wild open source community to do what it wants with it, maybe under a BSD licence Nov 11 19:36:24 there is nothing proprietary about the java language spec Nov 11 19:36:34 the open source community has created the open jdk Nov 11 19:36:36 just found out there are 6 apps in the play store for my card game. that idea is out the window Nov 11 19:36:40 and it sucks.. unfortunately Nov 11 19:36:44 yeah but if oracle wants java gone, it will be gone Nov 11 19:36:53 what do you mean gone? Nov 11 19:36:57 paulo_ you should use some copyright and design patents. Nov 11 19:37:11 coderroadie: what do you mean? Nov 11 19:37:13 dcow: just like they decided to kill flash, they could decide to kill java Nov 11 19:37:30 shmooz: would anyone complain? Nov 11 19:37:43 I would Nov 11 19:37:58 you *like* java as a language? Nov 11 19:38:08 I mean I put up with it because I like android Nov 11 19:38:23 it may not be perfect but it is what we got used to Nov 11 19:39:14 I don't want some top down decisions made by corporate executives to dictate what I learn and do Nov 11 19:39:24 the language isn't so much the problem as the vm Nov 11 19:39:34 shmooz: don't fool yourself Nov 11 19:39:41 shmooz: look at your entire life Nov 11 19:39:55 did you *want* mcdonalds Nov 11 19:40:00 my life is different Nov 11 19:40:28 I have woken up and entered the matrix Nov 11 19:40:48 shmooz: you will always be able to use a java-like syntax for things Nov 11 19:41:04 the real question is what the role of the jvm will be in the future Nov 11 19:41:22 there should be a court decision to not allow languages to be owned by corporations Nov 11 19:41:27 if we get llvm to a point where we can use it in production, why not use taht Nov 11 19:41:46 be right back Nov 11 19:49:55 anyone using mbassador message bus on Android ? Nov 11 19:50:35 never heard of it Nov 11 19:51:10 it has both message filtering and priorities Nov 11 19:53:16 shmooz: so you trust our government more than the private sector? I wouldn't trust gov't one bit with tech decisions. they don't even have a tech council anymore. look what happened with the new healthcare website Nov 11 19:54:25 so unless you're proposing an international language standards body that regulates what computer languages are allowed.... Nov 11 19:54:32 yo guys, what's the best way to have a chromium webview on older devices? anyone know a solid project to use for this? Nov 11 19:55:14 mattvv: you can build webkit yourself and bundle it with your app. but that's messy Nov 11 19:55:33 that sounds hard Nov 11 19:55:33 and not something I have known anyone to do. Nov 11 19:55:36 ^ yes Nov 11 19:55:48 we looked into it and it's much to involved Nov 11 19:55:54 for our resources anyway Nov 11 19:56:00 yeah, i was looking into https://github.com/davisford/android-chromium a little bit Nov 11 19:56:07 but wanted to see if anyone else had done it before Nov 11 19:56:18 mattvv for science ! Nov 11 19:56:42 sounds almost like a joke Nov 11 19:57:49 dcow: I didn't say trust government, I just said languages need to be free of ownership Nov 11 19:59:55 dcow: the healthcare website, like majority of "government" project, was passed to a private contractor... Nov 11 19:59:57 they aren't owned really Nov 11 20:00:38 p_l: yes, but the gov't was ineffective at managing it because they don't have any sort of council or committee that even understands tech issues Nov 11 20:01:03 dcow: more like they don't have access to even be involved in managing it Nov 11 20:01:09 shmooz: like I said, no one can kill java. buy oracle could kill their jvm Nov 11 20:01:29 as for killing java, it will live on with IBM... Nov 11 20:02:22 p_l: they paid over 600million in total for the site, they have the money, they certainly have the access — just not the skill/knowledge Nov 11 20:03:24 if you want to write a code swapping macro that lets you write c code in a java-like language, you could Nov 11 20:03:35 dcow: I worked as contractor in a government-paid project, talked with supposed oversight on another, and few other cases. While not in USA, I strongly suspect that USA got it even worse due to certain crazy ideas that are assumed by some to be even laws Nov 11 20:04:42 Apparently during last two decades there was a strong push for moving things more to private sector, with less control from government, at least that was the case with DoD projects. Somehow I doubt healthcare got better deal in terms of contracts there Nov 11 20:05:22 I understand what you're saying, but I'm not sure I see your point in relation to the healthcare project. Nov 11 20:05:22 and since it's done by external contractors, technical staff that has the skills to evaluate is often separated from such projects, laid off, or goes away because of low pay Nov 11 20:05:33 afaik, the healthcare website was run 'waterfall' which was probably enough to condemn it Nov 11 20:05:47 g00s: "waterfall is not inherently bad Nov 11 20:06:05 g00s: waterfall is pretty orthogonal to the whole thing Nov 11 20:06:06 I've heard a lot of people saying they didn't do agile Nov 11 20:06:15 it's just not relevant Nov 11 20:06:15 i'm not talking about agile Nov 11 20:06:22 and AFAIK at least officially they went with "scrum" :> Nov 11 20:06:25 Hello I have a problem with my own ArrayAdapter Nov 11 20:06:25 waterfall is almost always bad Nov 11 20:06:36 unless of course, there are no risks Nov 11 20:06:44 g00s: for the rapid web world, perhaps Nov 11 20:07:02 g00s: but I disagree with the sentiment that there is not place for longer thought out projects Nov 11 20:07:11 thats why DoD asked Boehm to research why their projects were failing decades ago; hence the spiral model was "invented" Nov 11 20:07:35 Julian_B90: cool! Nov 11 20:07:39 g00s: that's a statement on the level of Wirth's renaming of Dijkstra's letter to "GOTO considered harmful", which led to generations of programmers who can't write basic control structures Nov 11 20:08:10 there's no silver bullet, no single model that can be applied for success Nov 11 20:08:23 p_l i dont think so :) so much evidence ? anyone taking on a large complex project with many unknowns should be automatically disqualified for suggesting waterfall Nov 11 20:08:42 one could say that waterfall is the top-most layer of organization, with various models underneath Nov 11 20:08:52 there is no silver bullets, but there is swallowing polonium Nov 11 20:08:53 dcow can you help me Nov 11 20:09:03 Julian_B90: i don't know Nov 11 20:09:23 g00s: that's called "public offering" ;) Nov 11 20:09:56 dcow this is my Error "java.lang.IndexOutOfBoundsException: Invalid index 30, size is 30" Nov 11 20:10:07 and eating a 12-course dinner of polonium is when you have shitty public offering evaluation method Nov 11 20:10:08 g00s I think waterfall gets a bad wrap because there have been some large projects attempted by people without the talent to complete them categorized as "waterfall" Nov 11 20:10:17 Julian_B90: The error tells you exactly where you went wrong. Nov 11 20:10:19 Julian_B90: an array of size 30 has last index 29 Nov 11 20:10:22 Indices are 0 based. Nov 11 20:10:32 dcow and this is the source code if (i<30){ textView.setText(values.get(i)); i = i + 1; textView2.setText(values.get(i)); i = i + 1; textView3.setText(values.get(i)); } Nov 11 20:10:43 Julian_B90: http://pastebin.com Nov 11 20:11:05 Julian_B90: look at when you're incrementing and your limits Nov 11 20:11:05 I hope you didn't hardcode "30" there. Nov 11 20:11:12 http://pastebin.com/zNsA6AWv Nov 11 20:11:17 has anyone here even read Winston Royce's original paper on the waterfall? he said dont do it; it only works in an ideal world Nov 11 20:11:24 that was like in the 70s i think Nov 11 20:11:33 g00s: Did you? Nov 11 20:11:37 sure! Nov 11 20:11:42 15 years ag Nov 11 20:11:44 *ago Nov 11 20:11:45 Julian_B90: What p_l said. Nov 11 20:11:48 Julian_B90: you're checking the indice only once while incrementing it few times Nov 11 20:11:52 You're old :x Nov 11 20:12:00 Julian_B90: so when i = 29, what value are you getting for textview3? Nov 11 20:12:03 g00s: that's why I'm not saying anything about using it by itself Nov 11 20:12:04 kakazza :) Nov 11 20:12:59 dcow you're right Nov 11 20:13:51 g00s: Are you? There was never an indication/ Nov 11 20:14:03 g00s: we don't generally release in intervals shorter than 1month Nov 11 20:14:29 we do not feel that something like 2 week sprints is reasonable for the type of features we are building Nov 11 20:14:33 kakazza admittedly, i read that paper when i read Walker Royce;s book :D Walker knows his dad pretty well and clarified what he meant Nov 11 20:15:15 which was the 1e of http://www.amazon.com/Economics-Iterative-Software-Development-Steering/dp/0321509358 Nov 11 20:15:20 depending on which "agile" you adhere to, 1mo can still be considered a sprint, but what about 2? sometimes bigger features just need more time and testing Nov 11 20:15:30 again, i said nothing about agile at all Nov 11 20:16:01 iterative and agile are orthogonal; the former is old school stuff Nov 11 20:16:33 i haven't kept up with any of the agile stuff at all Nov 11 20:16:41 I don't think waterfall and iterative are exclusive Nov 11 20:17:05 waterfall just relates to when your client/customer sees a product (at least that's how I understand it) Nov 11 20:17:07 they aren't , a hybrid is called the fountain model described by Scott Ambler Nov 11 20:17:10 (one hybrid) Nov 11 20:17:28 there are a few with varying degrees of feedback Nov 11 20:17:47 even IBMs RUP is a hybris of iterative + waterfall Nov 11 20:17:51 *hybrid Nov 11 20:18:08 "Play Music"'s notification looks like an ongoing, in that it sticks around, but has an "x" to close it - I'm not seeing how to do that Nov 11 20:19:47 g00s: so I don't think anyone is in disagreement if you argue waterfall is orthogonal to iterative. thus you can have an iterative approach to development but still not release something until you think it's complete. I think we were grouping a lack of iterating under waterfall and iterative under agile Nov 11 20:19:50 the x is just a pendingintent to send a broadcast Nov 11 20:19:54 the service clears the notification Nov 11 20:20:01 the broadcastreceiver Nov 11 20:20:16 basically, it stops foreground Nov 11 20:20:47 I got curious and tried doing .setDeleteIntent(), but that didn't make it show up Nov 11 20:21:22 I'm learning this as I go for the most part, sorry if this is dumb. heh Nov 11 20:22:06 dcow OK, the error is gone but in the TextVie is not the right content. Nov 11 20:22:25 The Content are New Text Lol Nov 11 20:22:30 Julian_B90: I'm sorry about that. Nov 11 20:23:55 pfn: do I need to explicitly create my own layout for the notification to have that "closing x", then? Nov 11 20:27:33 Hi, I need to write a cross-platform financial app. (MS-Win,Linux,MAC,Android, .. maybe ios). It will be a GUI oriented program like quicken or a modern spreadsheet. Are there any widget toolsets that allow/enable a person to develop for all of those platform at the same time? (Wxwidgets has the main three covered But i see that its not available on android. ) Nov 11 20:28:38 hey does anyone know if Android Studio's Gradle build is using the stock/vanilla gradle? or is it a fork? Nov 11 20:28:42 Bronze maybe xamarin / mono Nov 11 20:29:18 what you are doing, is the ugly kind of complexity Nov 11 20:29:20 OK. Mono is a volne of a MS-basic product, correct? Nov 11 20:29:25 (clone Nov 11 20:29:30 yes Nov 11 20:29:47 * Bronze wonders how he typed volne for clone.... ? Nov 11 20:29:55 Bronze: or you would develop for QT and try to get that running in iOS and Android Nov 11 20:29:56 Wavesonics i point it to my gradle install; but i dont know if it uses something else at other times Nov 11 20:30:06 ah ok Nov 11 20:30:25 looking into setting up a build server to use Gradle for our android stuff Nov 11 20:30:27 it should be stock gradel Nov 11 20:30:31 gradle* Nov 11 20:31:08 dcow, ok, any idea where to grade the android plugin that gradle uses during the build? Nov 11 20:31:19 dcow: develop a mainline app and port someone elses tool (who has already tried to port and failed) to android? Sorry. I'm in my mid-50's and I've already been through 7 death marches, which is 5 more than anyone should do in one software career. :-) Nov 11 20:31:44 Bronze: yeah I was not being serious Nov 11 20:32:20 thanks god! :-) Nov 11 20:32:25 *thank Nov 11 20:32:32 (must be typo day) Nov 11 20:33:41 xamarin is also a derivative of an Ms language product. I've learned to stay away from those. Nov 11 20:33:55 one thing i dont understand, is that AS under the gradle/ plugin directory, includes gradle 1.8 and 1.9-rc2 Nov 11 20:34:08 Bronze HTML5 then :D Nov 11 20:34:21 Wavesonics: "apply plugin: 'android'" Nov 11 20:34:31 dcow, does that download it and everything? Nov 11 20:34:41 gradle is magic Nov 11 20:34:45 fuck gradle is awesome Nov 11 20:35:27 Bronze: the truth is that multi-platform tools will not give you the experience you're looking for Nov 11 20:35:49 save for a good webapp Nov 11 20:36:24 hello, is it normal that calling empty method 3000 times per frame, slows down app from 80 to 30 fps? Nov 11 20:36:43 i regular jvm may optimize that out, but not dvm Nov 11 20:36:53 so yeah :) Nov 11 20:37:18 so it's not possible to render real-time tilemap on android phones? Nov 11 20:37:23 you are lucky its not seconds per frame :D Nov 11 20:37:29 it's only 30x30 map Nov 11 20:38:17 so, AS 0.3.5 is out Nov 11 20:38:25 dcow: that was what I feared. Nov 11 20:38:26 is you are using linux, this should fix the stupid shit Nov 11 20:38:26 ison__: if those 3000 calls take on the order of 5ms ( so 0.3ms per function call) that would account for the slowdown Nov 11 20:39:21 Bronze: yeah some people use those cross platform tools, but I have yet to use an app developed using them Nov 11 20:39:27 ok then, i'll have to render game level in different way :/ Nov 11 20:39:34 point being the good apps don't Nov 11 20:39:47 ison__: use the ndk Nov 11 20:39:52 is it faster? Nov 11 20:40:08 Bronze philisophically, you have to ask whether its best to provide functionality x for y platforms first, or x++ for i'd love to write in c++ for android, but setting it up was too difficult and time consuming Nov 11 20:40:20 you get your own memory management, and empty function calls can be optimized Nov 11 20:40:44 maybe within few years SFML will be available for android Nov 11 20:40:59 ison__: it's not bad. just get over the hump, you'll be glad Nov 11 20:41:18 what framework is the best for ndk? Nov 11 20:41:21 cocos2d? Nov 11 20:41:26 haha, AS 0.3.5 removed all the gradle 1.9-rc2 stuff Nov 11 20:43:04 Hey guys weird issue. I can see that in the 4.2.2 branch (via repo) that the android.MediaPlayer class has a .getMetaData method. In my 4.2.2 project in ADT (eclipse), that function doesnt resolve. Any hints? Nov 11 20:43:23 ison__: basically you want your event loop any any memory used by it running in native code. render in gl, and lean on the system for touch input. anything that is not your event loop (like a title screen) should be dalvik code. I don't know anything about native frameworks, sorry. Nov 11 20:43:23 have your complieSdk right ? Nov 11 20:43:30 g00s: very true. Nov 11 20:44:03 dcow, ok thanks then Nov 11 20:44:16 ac_slater: If it has @hide in the javadoc then it's not public Nov 11 20:44:31 Bronze its probably better to iterate on one for a few platforms first to define what people want Nov 11 20:44:48 too much inertial with all platforms at once ;) Nov 11 20:45:02 excellent thinking Nov 11 20:45:09 ison__: If you haven't already, you might want to check out libgdx if your primary target is Android. Nov 11 20:45:30 Works great with desktop as well, and pretty good with iOS. Nov 11 20:45:31 kjeldahl are you in finland ? Nov 11 20:45:41 I started toying with libgdx last night Nov 11 20:45:51 Nope, Norway. We share a short strip of border up north. Nov 11 20:46:00 ah, i saw this the other day http://is12.snstatic.fi/img/978/1288617693274.jpg Nov 11 20:46:09 wonder if they get lost a lot out there Nov 11 20:46:23 lol Nov 11 20:46:37 kjeldahl thanks, i'll take a look Nov 11 20:46:42 he's probably rather be here though http://ppcdn.500px.org/43787130/194d3289963778b82bf3fdbcc0461123d1576ddd/2048.jpg Nov 11 20:47:04 Who wouldn't?? Nov 11 20:47:15 :D Nov 11 20:47:16 I think my main problem with libgdx is that I'm not convinced you can write good games on Android that aren't mainly written in C or C++. Nov 11 20:47:16 Well, good, complex games Nov 11 20:47:17 What I'm saying is Dalvik sucks. Nov 11 20:47:34 ow Nov 11 20:47:42 Nilium hopefully ART experiment goes well :) Nov 11 20:47:46 Nilium: they will replace it with ART soon :) Nov 11 20:47:53 Nilium: what specifically about Dalvik? Nov 11 20:48:01 Well, if you're planning on writing a software renderer, you're probably right. If not, care less java/dalvik shite and focus on getting something out! Nov 11 20:48:15 gl does most of the heavy lifting anyway. Nov 11 20:48:17 It's a VM. That's what. Nov 11 20:48:21 i don't think dvm has been worked on since Bornstein left Nov 11 20:48:23 SimonVT: hmm I guess I just dont know Nov 11 20:48:37 in 2011 :) Nov 11 20:48:51 kjeldahl: GL and the bullshit you have to go through to use certain GL APIs Nov 11 20:48:56 Like mapping buffers in ES3 from Java? Doesn't really work. Nov 11 20:49:14 hi Nov 11 20:49:17 SimonVT: I can see it here (sorry for the crap link) http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/media/MediaPlayer.java/#1199 Nov 11 20:49:20 php extension enabled for the file to execute in http post method ??? Nov 11 20:49:23 Nilium: have you heard about ART ? Nov 11 20:49:24 is DVM open source? Nov 11 20:49:27 Yes. Nov 11 20:49:44 ac_slater: Again, if it has @hide in the javadoc then it's not part of the public api Nov 11 20:49:52 Kript: er, what? Nov 11 20:50:11 my android app doesn t communicate with serveur apache php .. Nov 11 20:50:30 SimonVT: I don't see the @hide. Am I just overlooking it? Nov 11 20:50:36 Nilium: The gl stuff is hard to get right, regardless of languages/platforms. When it is right, the language/platform matters less. IMHO. Nov 11 20:50:40 ac_slater: grepcode is hiding it Nov 11 20:50:54 evanc: ah. I've been trying to find it via github ... Nov 11 20:51:08 Kript: You must be confused. Nov 11 20:51:08 This is the #android-dev room, where we hate PHP and use Java which we also mostly hate. Nov 11 20:51:08 Except for the masochists. They like Java. Nov 11 20:51:31 ah I found it. Thanks SimonVT and evanc Nov 11 20:51:35 i use eclipse Nov 11 20:51:36 kjeldahl: It's easy to get right in C -_- Nov 11 20:51:37 Y'know why? 'Cause it's a C API. Nov 11 20:52:12 android apps do use server side php to connect to databases usually Nov 11 20:52:33 shmooz, yes Nov 11 20:52:49 but my android apps don t call php Nov 11 20:53:01 I no fan of java, but if you're aiming for games on Android, you'll be waiting for a long time for any real alternatives. Nov 11 20:53:03 you must be missing something Nov 11 20:53:46 But hey, you could reinvent the native stuff that the libgdx guys have done for you already. The trouble is while the rest of the world is writing games, you're about two years behind on even basic stuff. :-) Nov 11 20:54:52 Well, I just lost most of any conversation going on 'cause my wifi crapped out and ZNC isn't logging this room. Nov 11 20:54:58 can someone recommend a (paid) app promotion service? Nov 11 20:55:05 Nilium haha, so funny about hating java and php Nov 11 20:55:05 At any rate, I'm assuming you're trying to make the argument that doing rendition in GL is hard, which it isn't. Nov 11 20:55:39 But I'm sure somebody said that to Carmack as well at one point in time. :-) Nov 11 20:55:57 At any rate, the other sort of main issue is that using a general purpose library like libgdx leads to you trying to fit everything to its mold, which can be a very bad idea Nov 11 20:56:38 libgdx is molded on Android and Desktop. HTML+iOS are extras. AFAIK. Nov 11 20:57:02 I'm not talking about platforms. Nov 11 20:57:10 I'm talking about using a tool and then trying to make all your data fit something else rather than writing code that fits the data. Nov 11 20:57:37 In other words, you're taking a general purpose tool and trying to cram whatever square peg you have into its round hole god that sounds dirty Nov 11 20:57:55 so annoying =[ http://code.google.com/p/android/issues/detail?id=62091 Nov 11 20:58:05 Could be, but based on my limited experience, it's "molded" on GL as well. ;-) Nov 11 20:58:23 But an Unreal engine it is not. Nov 11 20:58:43 You're still thinking too much about the wrong thing there Nov 11 20:58:44 General purpose game engines, tools, etc. are usually a bad idea just because of cases like that where you know you could do something if the thing you were using were implemented differently, and you can't really afford to change it either. Nov 11 20:58:46 nyt interesting Nov 11 20:59:17 * Nilium has a severe dislike of the Unreal engine Nov 11 20:59:29 Nilium: is there anything you like ? Nov 11 20:59:35 Nilium: Which business are you talking about, because what you're describing is not the game industry. ;-) Nov 11 20:59:37 nyt no owner :) Nov 11 21:00:19 g00s: i just submitted it last night =[ Nov 11 21:00:22 Hm, I'm getting messages in short bursts every minute or so Nov 11 21:00:22 Wonder if I need to reboot the pi Nov 11 21:01:25 kjeldahl: I'm talking about people who try to get into game dev and pick something general-purpose or build something to be general-purpose. Nov 11 21:01:39 Nilium: Anyway, FWIW, I believe libgdx is pretty low level. The GL abstractions are fairly low, and the stuff done to textures etc (spritesheets+atlas) is more or less identical to games I wrote 20 years ago. That's gotta be low level stuff now! Nov 11 21:02:21 (well, give or take a 3D software renderer or two) Nov 11 21:02:33 libgdx is in an odd middle-ground, but there's nothing wrong with it there. Nov 11 21:02:34 s/software/polygon/ Nov 11 21:02:44 AS 0.3.5 was built on Sunday; those guys are working hard :) Nov 11 21:03:17 AS is hanging when i launch it today "waiting for ADB" :( nothing seems to help it Nov 11 21:03:33 Wavesonics were you having the linux issue ? Nov 11 21:03:38 I don't think I've seen anyone try to build software renderers in a while except as experiments Nov 11 21:03:42 can't remember who that was last night Nov 11 21:03:42 g00s, Win 7 64bit Nov 11 21:04:05 manually restarting ADB doesnt fix it, run as admin doesnt fix it, guess im going to reinstall AS Nov 11 21:04:15 I remember one that I think RAD picked up at some point, but I don't know if anyone used that Nov 11 21:05:59 Actually, no, an Unreal Tournament game shipped with it at one point, I think. Nov 11 21:06:16 Lol, Pixomatic? Anyway, 2003 was a bit late for the generic software renderers anyway. Nov 11 21:07:37 Yeah, Pixomatic. Nov 11 21:08:03 That was the last one I'd seen that actually shipped in anything. Nov 11 21:09:10 Wavesonics: kill adb.exe Nov 11 21:09:11 reinstalling seems to have fixed it Nov 11 21:09:21 bankai_, that didnt help Nov 11 21:17:44 since motorola is a google company, why can't google sell the moto x dev edition subsidized :( Nov 11 21:18:09 I feel so disheartened by the unlocked bootloader situation Nov 11 21:18:31 g00s: Notable changes? Nov 11 21:19:06 kakazza what was that ? Nov 11 21:19:16 people are liking the moto x more than nexus 5 because it can wake up without you turning it on when you shout at it Nov 11 21:19:21 Philip Zimbardo is research director at Yahoo, wuuuut Nov 11 21:20:32 In 0.3.5 Nov 11 21:21:08 oh, nm John Boyd was research director Nov 11 21:21:19 kakazza i think they removed some gradle rc stuff Nov 11 21:21:29 -rc2 , messing up the linux guys Nov 11 21:21:41 might also be a more recent intellij build, can't find anything else Nov 11 21:22:49 shmooz, perhaps so, but an unlocked bootloader is important to me :( Nov 11 21:22:54 unlocked/unlockable Nov 11 21:22:55 I can't imagine intellij was bumped over the weekend. Nov 11 21:23:16 no release notes so probably just a quick fix for the broken linux installs Nov 11 21:23:28 No new EAPs right now. Nov 11 21:24:07 well, its based on 132.910074 Nov 11 21:24:14 which was later than 0.3.4 Nov 11 21:24:17 not sure :) Nov 11 21:24:25 no change log for 0.3.5 yet Nov 11 21:25:01 oh man, this poor guy is getting the dreaded " "package file invalid" error when they are trying to update or install the app via Play Store. " Nov 11 21:25:17 i thought this was an issue with Play app a few months ago Nov 11 21:25:34 but he seems to think the toolchain is barfing something out invalid Nov 11 21:29:54 hi Nov 11 21:30:37 g00s: If it works outside the Play Store, blaming the toolchain is a stretch, isn't it?? Nov 11 21:32:31 kjeldahl https://plus.google.com/111008049726565799376/posts/R1HSezBWNa7 Nov 11 21:32:36 > 1 million users, wow Nov 11 21:34:05 The old 16k limit on number of methods? Nov 11 21:34:23 65k :) GA is like 7K :D Nov 11 21:34:35 64 Nov 11 21:34:39 Eh, I meant 16 bit.. Nov 11 21:35:48 He doesn't sound too methodical; his initial post says it works locally, but then in his comment he says he solved it and it is _now_ installing fine in the emulator. Nov 11 21:36:16 But anyway, I know diddly squat about the issues, just looked at it now when you mentioned it. Nov 11 21:40:43 kinda weird that BluetoothLeService example uses binding method only; once the activity goes away it dies - whats the point of that Nov 11 21:41:11 can't you bind it to separate-process service? Nov 11 21:41:33 yeeaaah … Nov 11 21:41:55 but lifecycle wise, i would think bt connection would outlast UI, so it would need startService Nov 11 21:42:15 oh well, just a toy example Nov 11 21:43:12 does anyone know how to use android's gradle plugin to convert a pure java JAR into a classes.dex Nov 11 21:43:22 it seems pretty straightforward but I can't seem to figure it out Nov 11 21:45:37 This ColorMatrixColorFilter is not working quite right. When I change the ColorMatrix, do I need to recreate a new ColorMatrixColorFilter? Nov 11 21:46:21 Not working quite right means: there is no change to the saturation levels in the drawn bitmap Nov 11 21:52:34 Got it. With each saturation change, a new filter must be made and reassigned to the paint Nov 11 21:53:29 Does Httpclient have access to the cookies stored in your app from webview? Nov 11 21:53:59 Hello Nov 11 21:57:16 have any of you used learnopengles.com tutorials Nov 11 22:00:36 can anyone help me with my ArrayAdapter http://pastebin.com/ktvrxfAe Nov 11 22:00:49 My TextView are empty Nov 11 22:05:17 Mhhhh Nov 11 22:12:13 can anyone help me with my ArrayAdapter http://pastebin.com/ktvrxfAe Nov 11 22:12:17 My TextView are empty Nov 11 22:19:26 listview Nov 11 22:20:29 How can I string the edittext content to my listview between activities?? any clue outthere Nov 11 22:20:34 MrMeTooo what do you mean? Nov 11 22:22:41 I have 2 Activities I want to string the user edittext content and 2 spinner selection's to a listview in a different Activity OnClick Nov 11 22:24:02 MrMeTooo mhh okay Nov 11 22:24:43 MrMeTooo you are from germany? Nov 11 22:25:26 Julian_B90 I have the intents set... along with the put extras...along with the keys but they are not receiving the data Nov 11 22:25:33 no Nov 11 22:26:13 MrMeTooo okay can you show me the sourcecode Nov 11 22:26:23 http://pastebin.com Nov 11 22:26:33 hey guys, I'm working on an android library in android studio. I'm trying to setup gradle so that running "gradle install" will build the lib and publish it to my local maven repository. I've applied the 'maven' plugin and running "gradle install" runs successfully. However, it doesn't seem like anything is being installed to my local maven repo. Is there any special/additional configuration options that I may need to provide? Nov 11 22:26:34 read that, by default, it only publishes jar files. Nov 11 22:26:44 is it possible to have a UIView that creates a UIImageView, and puts that new imageview *below* itself? So drawing order will be 1) the uiview 2) the imageview Nov 11 22:27:04 *by it i mean the maven plugin Nov 11 22:28:23 Done Nov 11 22:29:36 MrMeTooo and where is the link? Nov 11 22:29:43 well damn wrong channel :0 Nov 11 22:30:19 http://pastebin.com/Zzc0PnHJ Nov 11 22:33:13 okay i have a similar problem Nov 11 22:33:24 http://pastebin.com/ktvrxfAe Nov 11 22:34:20 what's the state-of-the-art way to publish .aar files to the local maven repo? I'm seeing a lot of conflicting information on the interwebs Nov 11 22:34:35 it seems the maven-publish plugin is supposed to eventually supercede the maven plugin Nov 11 22:36:55 it also seems that this issue is still outstanding: https://github.com/ark/ark/issues/2 Nov 11 22:37:01 I ran into problems also with list_item and array smh I chose a different route Nov 11 22:37:09 MrMeTooo: Do getStringExtra in onCreate Nov 11 22:39:48 kakazza do you have 10 minutes for me? Nov 11 22:40:54 If i leave the "public static String[] all" and I set the values the code will go through fine but but I cant seem to figure out a dynamic route that will work. When I move it in onCreate it doesnt populate also Nov 11 22:42:56 I'm not even sure why you want the String[] Nov 11 22:43:06 Just get the intent and the string extras in onCreate. Nov 11 22:44:16 hello! Nov 11 22:44:26 Both of you should look up the Guides on how to use ListViews and Adapters. Especially afterwards the advanced lessons on efficient ListViews. Nov 11 22:45:07 I am just learning how to develop for android, and I'm having some trouble with the official tutorial.. Nov 11 22:45:35 there is a part where you reference the android-support-v7-appcompat library Nov 11 22:45:51 and I can access all the classes from it, but not the resources Nov 11 22:46:22 I put this in my styles.xml: