**** BEGIN LOGGING AT Thu Aug 15 02:59:59 2013 Aug 15 03:26:22 * gummylick too drunk to code. Aug 15 04:14:09 For building an android app that talks to a server with a web interface, what is the best way to authenticate your user on both Aug 15 04:14:59 what would a drop down menu list gui component in android be called? Aug 15 04:44:47 BullShark: http://developer.android.com/guide/topics/ui/controls/spinner.html Aug 15 04:46:07 bankai_ -> thanks Aug 15 04:50:38 are there any descriptions of the stuff in the repo/manifest … as things get larger i have to be more selective about what i pull down. but i'm not so sure about a lot of these repos Aug 15 05:10:51 doubtful Aug 15 05:15:03 wow, are you downloading aosp for the first time now? Aug 15 05:15:24 pfn lol, no … i think i did about 6mos ago :P Aug 15 05:15:35 maybe longer Aug 15 05:15:40 sure sounds like the first time Aug 15 05:18:05 you can specify the groups you want to repo Aug 15 05:18:15 it's defined in manifest Aug 15 05:25:10 when using "match_parent" of the outermost Layout, what is it's parent? Aug 15 05:25:20 its* Aug 15 05:25:55 i think its a frame layout Aug 15 05:27:11 so what is being used? a default value for frame layout? Aug 15 05:28:35 BullShark see http://android-developers.blogspot.com/2009/03/android-layout-tricks-3-optimize-by.html Aug 15 05:29:49 notice id/content Aug 15 05:30:08 if thats what you were asking (outermost layout) Aug 15 05:31:11 the first line of the xml layout beings with the first line of the xml layout begins* with g00s you failed me Aug 15 05:35:04 you are back in android Aug 15 05:35:26 actually spend most of my time on something else :P Aug 15 05:35:42 but i would like to maintain my app Aug 15 05:36:51 did you guys see that interview with Larry Ellison the other day? i wonder how correct he is about apple Aug 15 05:37:21 he doesn't give too many interviews Aug 15 05:38:08 isnt larry ellison the oracle dude? Aug 15 05:38:19 ya Aug 15 05:38:30 heres what I say... hes probably right abut apple to some extent Aug 15 05:38:42 but whos he to be making predictions like that Aug 15 05:38:50 his company has gone from the very top Aug 15 05:38:56 to becoming a dinasaur Aug 15 05:39:31 oracle does seem like its being nibbled on Aug 15 05:39:48 oracle related shit I've used in the last 5 years Aug 15 05:39:55 they just dont hold ANY competition Aug 15 05:40:04 the comptetition and business they have is old legacy shit Aug 15 05:40:10 their database engine is a fucking joke imo Aug 15 05:40:58 they got the biggest dba network because to manage their db's you actually need a dba Aug 15 05:41:03 i dont really care about them; he did have a special relationship to steve though; he probably knew some interesting things about the company Aug 15 05:41:10 g00s -> i understand from the link you gave that allows you to place views on the root FrameLayout, but how can we know what attributes the root FrameLayout has? Aug 15 05:41:32 BullShark hmm Aug 15 05:48:37 why do you need to know it's attributes Aug 15 05:48:49 it's a full screen frame layout Aug 15 05:49:47 it has no attributes of interest Aug 15 06:21:37 bummer, couldn't get wcd or kcd to compile on mac Aug 15 06:22:06 kcd was awesome; sucks when its not maintained any more Aug 15 06:34:03 pfn -> because id like to know what i am getting from match_parent Aug 15 06:36:03 pfn -> it's not a full screen layout if you look at the view hierarchy g00s gave a link to Aug 15 06:44:33 g00s -> btw, using breaks text completion in eclipse =/ Aug 15 06:44:57 is Android Studio stable enough to use while learning how to develop for Android? Aug 15 06:45:41 I would say no :> Aug 15 06:45:47 hmm, okay. Aug 15 06:45:57 But you can give it a try. Aug 15 06:46:19 probably wouldn't hurt, I suppose. Aug 15 06:46:46 just didn't want to become familiar with Eclipse if I'm going to eventually end up using Android Studio Aug 15 06:47:04 sanitypassing: yes. it's perfectly stable Aug 15 06:47:11 ...enough Aug 15 06:47:37 if you're really worried just use IntelliJ IDEA 12 Aug 15 06:48:05 hmm, I've never even heard of that. Aug 15 06:48:38 Android Studio is 99.9% IntelliJ IDEA Aug 15 06:49:22 it's an IDE that is far more stable, powerful, and sane than Eclipse Aug 15 06:49:24 well that would probably make the transition easier Aug 15 06:49:41 Yeah, never liked Eclipse. It's what has kept me from learning Java thus far. Aug 15 06:49:42 it would. they are the exact same thing. Aug 15 06:50:28 Studio itself is stable, but lint warning and stuff is way better visible in eclipse. Though using Android Studio will make you learn to use gradle Aug 15 06:52:37 In Studio there was an Issue with resource matching for app compat. IDEA told you that it cannot find themes, but you could build and run the app perfectly. This is one example of an issue, you might will have. In the latest version it is fixed, but there might be more bugs in the ADTs Aug 15 06:53:14 well I'm not looking to be able to produce anything right now, so I can probably just deal with bugs. Aug 15 06:57:54 sanitypassing: give it a try and let us know how things worked for you :) Aug 15 06:58:06 can do. :D Aug 15 06:59:43 JakeWharton are you using AS or idea 12 at work ? Aug 15 07:00:10 AS and IJ 13 EAPs Aug 15 07:00:50 JakeWharton: but there is no Android Plus for IJ 13? Aug 15 07:00:54 *plugin Aug 15 07:01:05 sure there is Aug 15 07:01:15 Cool. Aug 15 07:01:16 Android Studio *is* the android plugin for IntelliJ Aug 15 07:01:26 they are one and the same Aug 15 07:01:48 Yeah, but it is shipped bundled with the community edition Aug 15 07:03:12 I'd like to purchase IntelliJ Idea UE + the support like Android Studio Aug 15 07:06:05 the intelliJ versions are just a few weeks behind in the features Aug 15 07:07:18 okay, I see, got it Aug 15 07:08:06 EAP sounds nice, I'll check it at weekend for my private project Aug 15 07:10:37 I was ta Aug 15 07:11:43 I was totally wrong about how IntelliJ and Google are creating Android Studio. I thought it's just a branch from the community version, enhanced, and pulling the community master from time to time. Aug 15 07:12:19 could anyone have any book recommendations? Aug 15 07:13:38 JakeWharton is the gradle plugin in tools/build ? i did a repo sync for just that , but nothing downloaded - i must have f'd the manifest Aug 15 07:14:43 Tools are filtered by default. You have to add them. Aug 15 07:15:14 I'm on mobile. Google for building Android Studio and you'll run into the repo command. Aug 15 07:15:40 k, thx Aug 15 07:16:30 well, I've apparently already encountered an issue with android studio. Aug 15 07:17:24 It was on adt-dev@ Aug 15 07:17:54 g00s: it's here http://tools.android.com/build Aug 15 07:18:08 it apparently decided to allocate 1.8 GB of RAM and then crash. Aug 15 07:18:11 JakeWharton thanks Aug 15 07:18:38 -notdefault should be enough Aug 15 07:19:13 sanitypassing: this is probably an layer-8 issue Aug 15 07:25:34 wow, bigger than i thought Aug 15 07:26:04 i mean, the plugin is pretty complex Aug 15 07:33:53 Hello guys, is there a way to implement a offline version for a certain spot of google maps in an android app Aug 15 07:37:01 tagrudev maybe try open street maps (OSM) Aug 15 07:37:39 did that not fun Aug 15 07:51:11 Hello. I need some help. I got an app in the store that I got from my companys coding subsidary. Now the app that is in the Store works fine and so does the new version. But sadly the old Version doesnt detect the new Version in any way (dont get an update option). What went wrong and where ? Aug 15 07:56:47 Sadly, our coding team is a continent away and our TPM is gone. So I'd love some help from you guys, much appreciated. Aug 15 07:57:49 Guys, need a bit of help. I'm using an ABDT for my navigation drawer, and no matter what I do, the nav drawer icon doesnt appear at all. Aug 15 07:58:16 I have the ic_drawer png all setup, etc. Aug 15 07:59:28 anyone using sherlock with android studio Aug 15 07:59:39 is there a how to on importing it ? Aug 15 08:00:37 any ideas? Aug 15 08:02:41 min sdk for this is 14 desmin88 Aug 15 08:03:00 tagrudev: atm im using 17. Aug 15 08:05:19 SrRaven-work, are there two different entries in the store, are the package names different? Aug 15 08:05:38 no a single entry Aug 15 08:06:06 package names...may be different, cant check it can I ? Aug 15 08:07:06 when did you upload the new version? Aug 15 08:07:25 Friday Aug 15 08:07:57 I didnt upload it, my company did Aug 15 08:08:12 this is probably some dumb rookie mistake, hmm. Aug 15 08:08:51 does the new version appear correctly, e.g., on the websites of the play store? Aug 15 08:08:56 yes Aug 15 08:08:59 new screenshots etc Aug 15 08:09:06 when I download it (after removing old version) it works fine too Aug 15 08:15:20 SrRaven-work, I don't know if the play store doesn't prevent this but if the versionCodes of both version would be the same this could be an explanation, although I don't really think it's possible Aug 15 08:15:39 Huzzah! forgot to set getActionBar().setDisplayHomeAsUpEnabled(true); Aug 15 08:15:44 Nah, our App Deployment Team mentioned that too. We have a new VersionCode in the new Version Aug 15 08:17:12 just tested it, the developer console shows an error if the versioncode is the same as of the last release Aug 15 08:18:29 the package name might be an issue Aug 15 08:18:38 but I somehow doubt that, is there a way to check that ? Aug 15 08:18:51 like "catch" the apk from the store to see it? Aug 15 08:19:19 well, if you have the apks it's possible Aug 15 08:19:35 however, what about the keys used for the signature, did they possibly change? Aug 15 08:19:36 I have the apks (from our provider) not our store though Aug 15 08:19:50 nope,same team that signed it Aug 15 08:20:18 somehow the App in Store also shows that you have the App already installed, just sooooooomething is missing to show its an update Aug 15 08:25:40 EPG any idea if the apk filename itself matters? Aug 15 08:26:29 shouldn't have any effect Aug 15 08:27:03 well than I really have no fcking idea what went wrong :( Aug 15 08:27:08 then* Aug 15 08:27:12 also after reading up a bit on this, I believe that a new package name would also require a new app page etc. and likely isn't the issue Aug 15 08:27:21 oki Aug 15 08:27:57 well meh Aug 15 08:28:32 on which/how many devices does this problem occur? Aug 15 08:30:38 every single device Aug 15 08:31:35 Personally tested it on the N4,colleagues have same problem on all their mobile versions Aug 15 08:33:12 anyone know how to structure java classes via a DAO to have a new table that has a child relationship to another table? I'm new to Android dev and trying to modify some open source code Aug 15 08:34:20 SrRaven-work, it's a free app, right? Aug 15 08:34:33 yes Aug 15 08:36:04 was the old version also installed via the play store? Aug 15 08:36:14 yes Aug 15 08:36:29 well yes and no, I didnt cause im the QA Guy here Aug 15 08:36:37 so I have to remove and test it all the time Aug 15 08:36:46 but colleagues used the official play download Aug 15 08:40:59 SrRaven-work, I haven't any other "good" idea anymore. I'd get both the old and new apk, get the AndroidManifest.xml's out of them and compare them as a start. Aug 15 08:42:00 yeh have both of them open Aug 15 08:42:03 full of jibber jabber sadly Aug 15 08:42:12 is there a "proper" way to open it? Aug 15 08:42:52 you can decode it via apktool Aug 15 08:45:02 and dont need any special key or something? Aug 15 08:46:07 no Aug 15 08:46:25 need SDK to run apktool or am I reading this wrong? Aug 15 08:49:32 SrRaven-work, afaik not Aug 15 08:50:36 you need the aapt tool which is part of the SDK but also on the download site of apktool Aug 15 08:54:28 kk Aug 15 08:57:50 well crap I cant install JRE on my machine due to company policy Aug 15 08:59:29 SrRaven-work, if you want, I can check this on my machine quick (I guess this should be no problem if the app is available for free on the play store) Aug 15 08:59:58 you need the two manifest files right? Aug 15 09:00:15 yes, but decoded Aug 15 09:00:27 yeah and you will encode...right? Aug 15 09:01:49 well, you've extracted from the apk which resulted in something rather unreadable Aug 15 09:02:09 using apktool you can decode the whole apk very easy, incl. the manifest Aug 15 09:02:29 however, I don't know if it's possible to only decode the manifest using apktool Aug 15 09:02:44 well,will be worth a try I guess Aug 15 09:23:21 have the strange'ush problem Aug 15 09:24:10 in a ListFragment inside a ViewPager when ever I drag the list to the left or right on top of a row with 3 textviews it doesn't drag Aug 15 09:24:21 if I drag the list anywhere it works Aug 15 09:25:14 so why is my textviews consuming the touch event when they are not clickable, focusable, no listeners just plain size, margins, and that's it Aug 15 09:29:00 selectable? Aug 15 09:29:19 like moving a cursor.. Aug 15 09:38:23 cmaier: I removed the singleLine and maxLines=1 and now the ViewPager drags Aug 15 09:38:35 but why?? Aug 15 10:14:20 why we are using MainActivity.this Aug 15 10:14:24 cant we just use this Aug 15 10:14:26 ? Aug 15 10:14:43 its a context Aug 15 10:15:08 this isnt a context too Aug 15 10:15:10 ? Aug 15 10:15:49 yeah but if you are using a this is a async then it shows error , its like providing a correct address then just pointing to the direction Aug 15 10:18:28 you mean Aug 15 10:18:30 async context ? Aug 15 10:18:35 I dont understand Aug 15 10:19:04 MainActivity.this points to the outer classes this in an anonymous class Aug 15 10:19:22 oh Aug 15 10:19:38 like new onClickListener(){ here}; Aug 15 10:20:31 am I true Aug 15 10:23:33 bilgisayarci: yes, that is an anonymous class Aug 15 10:23:48 thanks guys Aug 15 10:27:56 http://android-developers.blogspot.com.au/2013/08/some-securerandom-thoughts.html Aug 15 10:27:59 my newbie question -> http://stackoverflow.com/questions/18250286/how-do-i-structure-java-classes-for-this-android-project-to-represent-a-child-re Aug 15 10:27:59 :( Aug 15 10:43:52 I have what I think an important question regarding publishing on play store: If I used to sell an apk of I.D. "com.example.app" on account-X and for some banking related reasons, e.g. shifting to another country, I have of course to continue selling the same package ID on a different account-Y. so will the app continue with the updates on the customer phones? Aug 15 10:54:47 no Aug 15 10:55:12 You won't be able to use the same package name on two different accounts Aug 15 11:03:37 you can request that they move an app to another account - i did it before, you just contact them from the current account and the new account and it takes them a couple days or so Aug 15 11:14:56 Hey guys, how do I delete project from Android Studio and make it forget them. Somehow it keeps remembering them! It's so annoying Aug 15 11:23:21 right-click delete? Aug 15 11:23:30 or select and on a mac fn + back? Aug 15 11:26:24 cmaier, when I reopen the app it builds the projects again Aug 15 11:26:33 I've even removed the gradle files Aug 15 11:28:26 Has any of you guys used the "contentDescription" in an xml layout? Aug 15 11:33:54 sja! Aug 15 11:34:26 maybe a strange question, but can i submit my app to the playstore and say it needs to have minimal 720p screen as lower requirement? Aug 15 11:37:54 xlarge screens are at least 960dp x 720dp Aug 15 11:37:54 large screens are at least 640dp x 480dp Aug 15 11:38:03 720 is width i guess? Aug 15 11:44:17 Is it possible to get Licence Test Response from developer account when any APK is published to production? Aug 15 11:44:43 Asmooh: http://developer.android.com/guide/practices/screens_support.html (not sure if what you want is possible) Aug 15 11:44:57 yeah im there already :) Aug 15 11:44:59 :) Aug 15 11:45:09 i dont really get it, when i check the picture Aug 15 11:45:21 it says large goes till 7 inch Aug 15 11:45:28 but normally 4inch and higher is 720p Aug 15 11:45:35 doesnt make sense Aug 15 11:45:36 Asmooh: that depends on screen density Aug 15 11:45:42 how many pixels per inch Aug 15 11:45:54 hm Aug 15 11:46:00 what should 720p be? Aug 15 11:46:04 large or extra large Aug 15 11:46:17 720p is minimum my app supports Aug 15 11:46:28 dp = density independant pixel..... something like pixel * (density/standard_density) Aug 15 11:46:34 yeah Aug 15 11:46:43 but how do i know that for all devices :O Aug 15 11:46:50 i work based on screen res :) Aug 15 11:47:03 well you should adapt to devices Aug 15 11:47:13 what should be same size regardless of density, is in 'dp' Aug 15 11:47:22 hm Aug 15 11:48:06 and if device is smaller, you scale image down, add scrollview... dont be so picky about user devices Aug 15 11:48:20 your goal is to cover as many devices as possible Aug 15 11:48:34 even if experience isnt optimal. i think. Aug 15 11:48:39 well, no not totally Aug 15 11:48:52 my goal is only accept devices with minimal 720p screens and higher Aug 15 11:48:53 :) Aug 15 11:49:12 for now at least Aug 15 11:49:29 how can i check the current activity from activity stack ? Aug 15 11:49:34 Hey guys, how do I delete project from Android Studio and make it forget them. Somehow it keeps remembering them! It's so annoying Aug 15 11:49:34 in android Aug 15 11:50:57 I want to make a service which keeps looking at the activity stack and run a activity Y when the current activity is X Aug 15 11:53:56 hi guys could anyone help me ? Aug 15 12:02:05 is there any way to show an invisible native activity on top of another application? Aug 15 12:03:13 reason I ask is becuase the Xperia Play only accepts input via a NativeActivity which when losing focus means you lose input Aug 15 12:23:50 Hiho Aug 15 12:24:17 i'm currently working on my bachelors thesis with the topic "extending the android's lockscreen" Aug 15 12:24:47 is there anyone who is into that? Aug 15 12:24:57 im trying to understand the whole keyguard stuff Aug 15 12:25:15 but still have some problems.. so sad there isnt any documentation Aug 15 12:29:22 there's code - what more do you need??? Aug 15 12:30:11 i need to open a activity Y when user open a activity X , by a service in background Aug 15 12:36:37 hello Aug 15 12:36:51 how do I group controls? Aug 15 12:37:29 so I can run a command like .Visibility = GONE and all the ontrols would begone Aug 15 12:40:24 add them all to ArrayList controls and then for (View v : controls) { v.setVisibility(View.GONE); } (dont know any magic for that) Aug 15 12:40:40 how can i run a activity X when a activity Y is started by the user (Y) being the calling activity Aug 15 12:40:50 i want to do this with a service Aug 15 12:41:10 like fo example in a language like VB.NET, there is either a view or a grid Aug 15 12:41:32 and there controls are actually INSIDE it Aug 15 12:42:36 if they are all inside same ViewGroup (such as LinearLayout, RelativeLayout,...) you can hide that viewgroup too Aug 15 12:43:12 whats the difference between them? Aug 15 12:49:45 MDTech-us_MAN: http://www.techotopia.com/index.php/Understanding_Android_Views,_View_Groups_and_Layouts Aug 15 12:51:18 i was away and i will repeat my question Aug 15 12:51:21 I have what I think an important question regarding publishing on play store: If I used to sell an apk of I.D. "com.example.app" on account-X and for some banking related reasons, e.g. shifting to another country, I have of course to continue selling the same package ID on a different account-Y. so will the app continue with the updates on the customer phones? Aug 15 12:52:03 i should say, will the app keep updating as usual? Aug 15 12:52:22 superlinux-hp: 13:03 < carbohydrate> you can request that they move an app to another account - i did it before, you just contact them from the current account and the new account and it takes them a couple days or so Aug 15 12:53:06 miha, is the moving free of charge? Aug 15 12:54:51 superlinux-hp: dont know never did that Aug 15 12:55:26 See, my damie, Pootie Tang don't wa-da-tah to the shama cow... 'cause thats a cama cama leepa-chaiii, dig? Ain't come one, but many tine tanies! Aug 15 13:01:00 miha, thank you Aug 15 13:04:54 http://android-developers.blogspot.com.au/2013/08/some-securerandom-thoughts.html if someone missed this Aug 15 13:08:57 can we access the uninstall system activity ? Aug 15 13:11:24 how to check if user is in a perticular system activity through a service Aug 15 13:11:36 Xabster ? can you help ? Aug 15 13:12:15 p_l if you could guide me somewhere ? Aug 15 13:12:26 sd Aug 15 13:14:50 wrong key combination Aug 15 13:15:10 android doesnt get when i make a pic in html5 50x50 that is should be 50x50 and not 81x81 Aug 15 13:27:09 Question: After registration to GCM can I get my canonical reg-id? Aug 15 13:33:21 jan1337z: Not sure what you mean, but maybe gcm = GoogleCloudMessaging.getInstance(this); then regid = gcm.register(SENDER_ID); Aug 15 13:33:40 this = your activity Aug 15 13:35:04 I am just wondering how I can clean my regid list after sending Aug 15 13:35:22 If I have failures I guess I should delete those I ids from the DB Aug 15 13:35:54 yes, you need to check return codes and request a new one if the old one fails. Aug 15 13:50:21 kjeldahl, is there a list of possible return codes and their meaning? Aug 15 13:50:41 jan1337z: I have no idea. Aug 15 13:51:55 jan1337z: But this page probably explains most of it; http://developer.android.com/google/gcm/client.html Aug 15 13:52:51 It seems the registration id is valid until the app gets updated, so I may have misled you.. Aug 15 13:53:39 I want to clean it on the server side Aug 15 13:55:23 Well, that's easy, just add an api endpoint that removes it, similar to what you do when you app "phones home" with it's own regid (when it gets inserted). Or am I missing something? Aug 15 13:55:25 After making my post to http://android.googleapis.com/gcm/send I want to clean my DB with the informations provided by the response Aug 15 13:56:46 I'm having a problem, setting OnScrollListener of an ExpandableListView , it seems it does not get called. Anyone know about this ? Aug 15 13:59:47 check that you're not setting it 2x Aug 15 14:03:17 I think I know where things go awry. I have a hunch at least :) Aug 15 14:06:47 hunch correct. Wee! :D Aug 15 14:18:23 I'm working on a custom AppWidgetHost and wan't to be able to drag the widgets. However, I don't get onTouch/onLongClick events for the AppWidgetHostViews although I register the corresponding listeners. How can I detect when the widget is long clicked or touched? Aug 15 14:26:58 I'm developing mobile website with main action to upload photo. User clicks "Choose file", Android offers different sources for it, chooses Camera and takes picture, uploads it. When i tested on my device, browser got killed by Android while camera was running and when i finished taking photo, browser loaded page again and "Choose file" field was empty Aug 15 14:26:58 Should this be a common behaviour on non-high-end phones? Aug 15 14:34:10 hello Aug 15 14:34:17 how I get featured on Google Play? Anyone has a clue? Aug 15 14:34:45 My rating is above 4.6 and I am top25 in my category in my target countries (mostly in europe) Aug 15 14:34:57 speeder: you need to sleep with a bunch of google engineers Aug 15 14:35:16 Ge0rG: :( Aug 15 14:35:33 seriously, no idea. I suppose Google will contact you if they want to feature your app Aug 15 14:37:56 speeder, you talk to google Aug 15 14:38:10 speeder, there's an editorial team that does that Aug 15 14:38:14 Can I get some advice here... I am interested in learning to write programs for the Android OS, I have moderate experience with BASIC, VB, ASP, C++, Java and HTML ... Obviously I dont even know what I dont know, so what Im asking where should I start I dont want to diver right in to the middle of things I want to get a good foundation of how things work... what advice can you give me, resources to get, and book/sites t Aug 15 14:38:14 o read/view Aug 15 14:38:17 Mavrik: how I do that? Aug 15 14:38:27 uh Aug 15 14:38:36 Mavrik: I've been looking for a way to contact the editorial team since like forever Aug 15 14:38:38 grrrr damn android doesnt get what i want -_- Aug 15 14:39:03 maybe its the phone because on a S4 it worked perfect Aug 15 14:40:22 I even found a brazillian googled, that reviewed my apps and said they are approved to be featured, and then I asked him: "what now?" his reply was: "it is up to the editorial team now, so dunno." Also he said he can only pass his official report to brazillian editorial team, and although I am brazillian living in Brazil, my target market right now is europe (not only france and germany, but Russia, Portugal, etc… too) Aug 15 14:40:40 but when I e-mailed a US googled, he forwarded to the brazillian googler because I am from Brazil Aug 15 14:41:00 (and the Brazillian googler got upset, because he thought that I e-mailed the US googler because I was impatient with him) Aug 15 14:41:19 it is maddening :( Aug 15 14:43:10 It is John Madden'ing Aug 15 14:49:54 j Aug 15 14:52:01 why is the AVD emulator so slow and sluggish? Aug 15 14:53:22 can i do anything to make it faster? im trying to emulate a samsung galaxy s3, and an s4... s4 refuses to run without using the host GPU, and is much slower than the s3 Aug 15 15:01:56 Hello people, is it possible to merge adt and kepler? Aug 15 15:08:05 if i have a custom adapter on a dialoginterface, how can I change the background color of an item once its pressed? Aug 15 15:09:09 the dialoginterface has an onclicklistener, so when something gets clicked on, the item should have already changed the background color when it called th handler Aug 15 15:11:59 heres the code for the dialog box itself, http://www.fpaste.org/32330/76579400/ The setAdapter takes the adapter and a click handler. Here is the code for the adapter, http://www.fpaste.org/32331/57947613/ The rows are alternating in color already. Aug 15 15:17:27 how much advanced java knowledge is it required for android programming? Aug 15 15:17:55 define "advanced" Aug 15 15:18:27 molossus, Aug 15 15:18:39 jan1337z, like building those cools apps in the android store, i mean does that involve deeply knowing advanced java? Aug 15 15:19:24 i know the usual : ifs else, while, for loop, arrays, arraylist, i know how to create objects, inheritance extend classes Aug 15 15:19:52 but for some reason when i see android code i cant seem to put it together like in just plain java , or php programming Aug 15 15:20:03 molossus, you should have a very basic understanding in threading and some knowledge about networking as well Aug 15 15:20:51 i want to be able to write code on my own for android apps without having to look at examples all the time , but seems so different from a plain java application Aug 15 15:20:52 and then deal with the android architecture and get some fundamental knowledge Aug 15 15:21:28 I am an android developer for like 3 years now and I still look at examples Aug 15 15:22:14 google for best practices and stuff Aug 15 15:22:15 jan1337z, how did you start with android programming? was it also confusing at the beginning even if you understood java? Aug 15 15:22:56 What is the difference between ITEM_TYPE_SHORTCUT and ITEM_TYPE_APPWIDGET? I'm dumping info from the laucher SQLite database and I don't understand the itemType field ... which sometimes hold 0 and sometimes hold 1 for different apps on the home screens. Aug 15 15:23:00 I had to modify an app @ my job so I was quite confused … read a book and googled a lot Aug 15 15:24:19 but look back it is very important to know the fundamental elements and have a robust understanding in the basics Aug 15 15:24:24 *looking Aug 15 15:25:17 the big thing is to not get overwhelmed. Looking at a rather large project will be overwhelming, take a look at some smaller example projects that are meant to just demo certain features Aug 15 15:25:29 I started doing Android after only doing pure java and i found it rather easy really Aug 15 15:25:40 also 3 odd years ago Aug 15 15:26:16 Wasn't half as much documentation and stuff back then, just read the developer site and got on with it. It's best to get an understanding of how Android works and move on from there imo Aug 15 15:26:30 is it ok to start by looking at lynda.com building a note app taking ? does anyone had a experience with video training? or are books better ? Aug 15 15:27:34 Hi. I am currently trying to build an app for a website to view its content more comfortably on a phone. To reduce data usage I decided to write a php based API so I only receive relevant information. I now run into the problem though how I handle the loginsystem the website has. I have no access to the database of the website and previously I managed the session, cookies etc. from within the app. A Aug 15 15:27:34 ny ideas? Aug 15 15:28:16 Flaiker, are you using a webview? Aug 15 15:28:36 flaiker you could have the php script send the information to the actual site and recieve the cookies and throw those back to the client also Aug 15 15:29:04 jan1337z: I do not Aug 15 15:29:52 jonc: that seems logical. Ill look into doing it that way thanks Aug 15 15:31:06 Could there be problems because the website receives all these requests from one IP (the api server)? Aug 15 15:31:29 as long as you aren't spamming several a second then it shouldn't be a problem Aug 15 15:31:40 having a problem running avd's Aug 15 15:31:55 i run emulator -avd blah and i get segmentation fault Aug 15 15:32:26 emulator -avd avd -gpu on is what i actually run Aug 15 15:32:34 jonc: okay thx Aug 15 15:32:50 When I made a facebook scraper it took quite a few calls per second to finally get banned for a day Aug 15 15:33:40 had on the order of 100 threads running (most of the time was waiting on IO so figured why not test the limits) hitting facebook to pull public interest data down Aug 15 15:36:05 ok if i run emulator-arm -avd avd it works but the avd window has no window decorations Aug 15 15:36:12 i.e. i cant drag it Aug 15 15:36:33 BullShark, for all intents and purposes, it's fullscreen and you don't have to worry, the rest is window decor Aug 15 15:37:21 why does my avd window not have any window decorations? Aug 15 15:37:31 i have no title bar or close button or any of that Aug 15 15:40:02 my app has GPS usage in an activity. and if my phone auto-rotates from portrait to landscape the GPS service gets killed for no reason. how can I let the GPS resume? Aug 15 15:40:25 are you using the support libraries? Aug 15 15:40:52 jonc, talking to me? Aug 15 15:40:55 and a fragment activity / fragments Aug 15 15:40:56 yeah Aug 15 15:41:11 just a simple activity Aug 15 15:41:22 I know there is a known issue with recreating fragments using the support library sometimes Aug 15 15:41:24 simple form of inputs Aug 15 15:41:34 can someone tell me why my avd window has no decorations? Aug 15 15:41:37 gotcha, check the stack trace? Aug 15 15:41:52 anyway i can simply force the activity to portrait Aug 15 15:41:53 every other window gets them. why does the avd not have a title bar or close button or resize widgets? Aug 15 15:42:25 jonc I have to go outside to test the GPS. I cannot move my box Aug 15 15:42:43 anyone> Aug 15 15:42:48 i mean my PC Aug 15 15:42:49 you can use the last known position for testing Aug 15 15:43:28 simply i don't care.. I always set it to portrait. it's just for calculations. nothing more Aug 15 15:43:41 manager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER) something like that but use GPS_PROVIDER I believe Aug 15 15:43:55 i know. i know Aug 15 15:46:03 can someone please tell me why my avd window has ZERO decorations? Aug 15 15:46:12 i have no title bar so i cannot drag the window Aug 15 15:46:14 i have no close button Aug 15 15:46:17 i have nothing Aug 15 15:46:24 wtf over? Aug 15 15:52:39 can i force the AVD emulator to use more than 1 cpu core? it could be why its so slow Aug 15 15:53:33 the emulator will always be relatively slow, it emulates a different CPU architecture Aug 15 15:53:41 lol that would be a good question, specially as i have 12 ores :) Aug 15 15:54:08 jonc i have a 12 core at 4.7ghz. would be nice if the emulator were to use more than just one core... does it? Aug 15 15:54:46 i mean sluggishly slow and choppy Aug 15 15:54:48 Not sure, but spreading out emulation over many cores would be kind of a pain since for the most part a CPU's instructions are done in order Aug 15 15:55:08 It is because the simulator is simulating an arm processor on an x86 processor Aug 15 15:55:48 can you tell me why my avd has no window decorations? Aug 15 15:55:55 theres no way to move the avd window Aug 15 15:55:56 for quick testing I used virtual box and an android x86 Aug 15 15:56:00 except that it's an emulator, emulating an arm processor - and most people are probably using the virtualised x86 image by now Aug 15 15:56:06 No clue Aug 15 15:56:13 i cannot resize the AVD windows to see the full errors on win7 Aug 15 15:57:05 my avd has a title bar, minimize and close buttons. Aug 15 15:57:45 I440r: why are you running emulator-arm? Aug 15 15:58:46 because when i run "Emulator" it segfaults Aug 15 15:58:56 then fix that Aug 15 15:58:59 emulator -avd avd -gpu on segfault Aug 15 15:59:00 what's odd about your setup? Aug 15 15:59:05 i asked, nobody answered Aug 15 15:59:08 without the gpu on bit? Aug 15 15:59:20 i tried without -gup on and it still segfaults Aug 15 15:59:45 then I'll ask again, what's odd about your setup? Aug 15 15:59:58 also, presumably all your tools are up to date? Aug 15 16:00:06 yea they are. Aug 15 16:00:08 hang on Aug 15 16:00:14 I440r: are you on a mac? Aug 15 16:00:28 dev-util/android-sdk-update-manager 22.0.5 Aug 15 16:00:43 no its a asus rampage iv extreme running gentoo Aug 15 16:00:55 hmm, gentoo Aug 15 16:01:07 no i dont have ricer use flags :P Aug 15 16:01:35 where does it segfault? I assume you've straced it by now Aug 15 16:02:06 didnt think of that, ill do so now hang on Aug 15 16:02:18 wtf Aug 15 16:02:20 emerge strace Aug 15 16:02:44 did strace emulator -avd avd -gpu on and... the emulator window showed up, no segfault yet Aug 15 16:03:01 I440r: which image? Aug 15 16:03:04 but the terminal is puking out lots of stuff about seek/read Aug 15 16:03:09 what do u mean what image? Aug 15 16:03:35 i've experienced the emulator segfaulting some percentage of the time with some images, but run reliably with others Aug 15 16:03:37 this is not segfaulting when run under strace Aug 15 16:03:55 i dont know what you mean by image Aug 15 16:04:04 what system image did you use for your avd? Aug 15 16:04:25 the API target Aug 15 16:04:26 i didnt Aug 15 16:04:28 oooh Aug 15 16:04:30 18 Aug 15 16:05:09 the v18 image is the one that segfaults the emulator for me about half the time Aug 15 16:05:12 try v17? Aug 15 16:05:31 I440r: and you're using an arm image, presumably? Aug 15 16:05:45 (v17 also has an Intel image, which should be a lot faster than ARM, if you use it) Aug 15 16:06:29 its not letting me delete the existing avd, says its running still Aug 15 16:06:40 yet i see no process so i cant kill it Aug 15 16:07:03 just create a new avd Aug 15 16:07:26 i dont want 28654927364592 avd's. i want ONE avd. called "avd" i have that and want to delete it Aug 15 16:07:32 damn github is down Aug 15 16:07:33 how do i KILL that running avd Aug 15 16:08:02 -9 presumably Aug 15 16:08:08 I440r: you'll probably want more, later, for testing at least Aug 15 16:08:14 i just name mine by API level Aug 15 16:08:21 leeds i see NO emulator processes in ps -aux Aug 15 16:08:22 nothing Aug 15 16:08:28 im always forced to X out the avd emulator window, or else it stays on the "Shutting Down" animation forever Aug 15 16:08:39 so i cant kill anything yet the avd manager wont delete my avd because its running Aug 15 16:08:46 unless its going by a PID file Aug 15 16:08:56 that didnt get deleted whe i ^c'd out of the avd Aug 15 16:09:21 I'd just rm -rf the avd and make a new one Aug 15 16:09:21 rjp421: that's normal - it doesn't have the actual 'hardware' to complete a shutdown, I think Aug 15 16:09:22 been as i have no title bar or close button or any other window decorations on the avd doing ^c is the only way to quit out of it Aug 15 16:09:44 either it's running or it isn't Aug 15 16:09:45 if it's running, kill it Aug 15 16:09:56 if it's not running, delete the bloody avd and make a new one Aug 15 16:09:58 Leeds, so its safe to just close it? i wont have to worry about corrupting the files? Aug 15 16:10:01 hell... just make a new avd Aug 15 16:10:33 leeds k Aug 15 16:10:35 rjp421: it's a debug tool - what's the worst that could happen? Aug 15 16:10:40 im not emotionally attached to it lol Aug 15 16:10:56 why can i do rm -rf .android/avd/* yet the avd manager CANT? Aug 15 16:11:06 ok thx, just making sure Aug 15 16:11:15 I440r: you know what... I don't really care anymore Aug 15 16:11:22 and why does google release an unusable emulator for api level 18? Aug 15 16:14:11 do i need to do anything special to allow avd's to use > 768MB of ram on win7 64bit? i either get crashes or it just fails to start Aug 15 16:17:21 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. <-- how do i fix that? Aug 15 16:17:31 emulator: ERROR: Could not load OpenGLES emulation library: libOpenglRender.so: cannot open shared object file: No such file or directory Aug 15 16:17:42 im being forced to enable host GPU emulation Aug 15 16:17:56 at least on the high DPI screens Aug 15 16:18:05 like galaxy s4 and htc one Aug 15 16:19:18 the ppi on the emulators start window with the "scale to actual size" option never goes above 320, so im assuming it doesnt support retina yet Aug 15 16:21:55 please stop calling that "retina" Aug 15 16:22:58 ok i have libOpenglRender.so in tools/lib - why do my avd's not see it there? Aug 15 16:28:37 Hello Aug 15 16:28:51 anyone know how to auto reject call? Aug 15 16:29:04 retina? Aug 15 16:29:09 i'm looking for reference Aug 15 16:29:12 hello in here, all right ? Aug 15 16:29:28 blame apple Aug 15 16:29:45 birbeck: it's like a kid calling every TV an "LG", because the first one they had seen had the logo Aug 15 16:29:50 did anybody get ever an ap using fragments to work properly ? Aug 15 16:30:14 p_l: or calling every Android device a Samsung Aug 15 16:30:28 How to make a service which can check the activity stack ? Aug 15 16:30:30 birbeck: That's like 90% true tho Aug 15 16:30:41 SimonVT: more like 50% Aug 15 16:30:42 p_l: other annoying things is appls ipad apps being called "HD" and everyone going "oh look, its HD!" Aug 15 16:30:53 yeah Aug 15 16:31:11 SimonVT: but i guess they have the majority share, so its half true Aug 15 16:31:14 anyone knows how to block calls? Aug 15 16:31:16 50% of the time it's true every time Aug 15 16:31:26 I want my app to block calls Aug 15 16:32:14 i am trying a tutorial on vogella.com , using fragments, and i crashes all the time..... are there known bugs regarding fragments ? Aug 15 16:32:29 icbytes: yes, but I doubt that's what you're seeing Aug 15 16:32:47 icbytes: a pastebin of the code and/or stacktrace would help Aug 15 16:32:52 i see crashes, in log console .... going down to zygote Aug 15 16:33:02 icbytes: pastebin them Aug 15 16:33:14 bha: sounds like you need a BrodcastReciever to find out when someone is calling then to use something like this http://stackoverflow.com/questions/7347871/how-to-reject-a-call-programatically-in-android Aug 15 16:33:25 ty Aug 15 16:34:06 let me smoke a cigarette, then i go to my dev pc and i will again, start the tutorial from the beginning. it is this :http://www.vogella.com/articles/AndroidFragments/article.html Aug 15 16:34:28 hi , is there a way to detect a system activity via my own service ? Aug 15 16:34:33 the first exercise, where he uses only a button, a textview and two fragments Aug 15 16:34:46 a Aug 15 16:35:14 and another question is : did adt stop to support bluestacks deployment in the latest release ? Aug 15 16:35:45 how can i detect a system activity via service ? Aug 15 16:36:45 the latest version of adt just does not see my bluestack vm Aug 15 16:37:02 does anybode experience this, too ? Aug 15 16:37:04 i want to detect if user is opening com.android.settings.DeviceAdminSettings Aug 15 16:37:14 through my service ? Aug 15 16:37:20 is it possible if yes how ? Aug 15 16:37:34 chinu__: registerReceiver() Aug 15 16:38:26 for that, you would need to check with the package manager, its not going to publish a broadcast you can receive Aug 15 16:38:55 birbeck : how to use this ? how can i check if the user is opening that service ? Aug 15 16:39:21 i am using package manager to check all the activities installed in the device Aug 15 16:40:33 chinu__: sorry, not package manager, use application manager Aug 15 16:41:10 activity* Aug 15 16:41:17 i cant think/type today Aug 15 16:50:30 why does my app make my pictures bigger than they should be, i had them 81x81px and that gave problems, so i resized them to 51x51 and now they are still 81x81 -_- Aug 15 16:51:22 are you setting the layout_width and layout_height to be 51px (bad) or is that the physical image dimensions? Aug 15 16:51:59 its app icons, for some reason at 720p i dont have problems, but everything under 720p give issues Aug 15 16:52:12 if that is the physical image dimension, you probably have it in the wrong resource folder (ie in mdpi and viewing it on xhdpi) Aug 15 16:52:29 but the screen is let me see Aug 15 16:52:33 its a sucky phone Aug 15 16:52:50 240 x 320 pixels, 3.0 inches (~133 ppi pixel density) Aug 15 16:52:59 so should be ldpi? Aug 15 16:53:36 i dont know if that falls into ldpi or mdpi Aug 15 16:53:52 but still, i link to my source dir Aug 15 16:53:55 css/images Aug 15 16:54:03 should work, right? Aug 15 16:54:04 birbeck , is it activity manager ? Aug 15 16:54:12 chinu__: yes Aug 15 16:54:28 Asmooh: you're loading it in a webview? Aug 15 16:54:28 that i should use to see if settings activity is opened ? Aug 15 16:54:47 yes, html5 app Aug 15 16:54:48 chinu__: that will tell you if the activity is open, not when it is being opened Aug 15 16:55:05 Asmooh: hmm, cant help you with that Aug 15 16:55:37 but i want is , like if the user is in the home screen , so as he enters the setting activity i want to fire a own activity of mine Aug 15 16:58:25 chinu__: that sounds like a very bad idea. there would be a way to do it (i think) but im not going to help with replacing system settings with another app Aug 15 16:58:33 build a rom :) Aug 15 17:01:45 i need a fester emulator woking with adt. what is most recommended ? Bluestacks, enabling HAXM Aug 15 17:03:41 haxm is not really working fast on this pc where i am now at, and bluestacks is not being recogbized on both ports offering, does anybody have a good and perhaps inofficial alternative ? Aug 15 17:06:19 Ello ello Aug 15 17:06:34 Hi. Aug 15 17:06:45 Hello android-devs! I have a question how to organized activity's? I know it's using "Avtivities" but can anyone show me a tutorial for it? a video tutorial is prferable, Thank your android-devs! Aug 15 17:06:57 go to vogella.com Aug 15 17:07:23 ok, Ill try that Aug 15 17:08:01 hello Aug 15 17:08:51 hi on vogella.com there is no tutorial on managing activities? Aug 15 17:09:12 Im using my own class that implements LocationListener to listen to the location Aug 15 17:09:23 Hi! I'm using ActionBarCompat but I'm facing a problem with menu itens that have a submenu on old devices (testing on API-7). After starting the activity, sometimes the menu works just fine, other times the menu do nothing. Aug 15 17:09:27 does my project have to meet several criteria in order to ALWAYS run on bluestacks ? like minimum supported api ? It seems as if bluestacks is 2.3.4 android Aug 15 17:09:42 how do I find if getting the location failed Aug 15 17:09:52 androidnewb: Google is your friend: http://developer.android.com/training/basics/activity-lifecycle/index.html Aug 15 17:10:11 Is there something I need to do? Aug 15 17:11:22 birbeck i get it its a bad idea but it is something i want to try in my device Aug 15 17:11:28 icbytes: Bluestacks was running on 2.3.x when I tried it many moons ago. Aug 15 17:11:37 I mean, when I click the action item, the submenu should appear. But sometimes, when I enter the screen, it doesn't work. Aug 15 17:12:07 k Aug 15 17:12:51 Im using my own class that implements LocationListener to listen to the location Aug 15 17:12:52 how do I find if getting the location failed Aug 15 17:13:27 I cant imitate it on the emulater and I dont have an android phone to try Aug 15 17:13:39 MDTech-us_MAN: set a timeout using Handler Aug 15 17:14:02 using what? Aug 15 17:16:02 and how do I handle a timeout? Aug 15 17:17:40 MDTech-us_MAN: http://developer.android.com/index.html#q=Handler Aug 15 17:17:59 handle the timeout however you want (e.g., stop listening, show an error to the user) Aug 15 17:18:56 no I mean whatdo I need to overwrite Aug 15 17:19:08 what subroutine? Aug 15 17:19:47 I'm not going to write your code for you. I'm showing you how to fish :) Aug 15 17:20:11 to handle like this: @Override public void onLocationChanged(Location loc Aug 15 17:21:04 evanc: But I don't wanna fish, I wanna program D: Aug 15 17:21:27 lol Aug 15 17:21:38 i love you guys Aug 15 17:22:43 I believe that there is no built in timeout for location. What you could do is create your own scheduled task that checks if the location services has given you a location yet (shared object). Aug 15 17:23:01 that should be enough for you to figure out how to make it work Aug 15 17:23:20 hey please can anyone tell me if its able to openup the settings of the google calendar app within my own app?>?? Aug 15 17:23:30 jonc how can i check if a user is opening a system activity ? Aug 15 17:23:48 seitensei ? Aug 15 17:24:15 You are right, Bluestacks seems not to be found, when i flag wrong api version in the project Aug 15 17:24:25 on my pc here haxm is f..k Aug 15 17:24:38 is it even possible to do that? Aug 15 17:24:42 but all under 10 have the old fragment implementations Aug 15 17:24:43 what is the vaiable I need to set to change the timeout in LocationListener!? Aug 15 17:24:47 haxm :x Aug 15 17:24:56 MDTech-us_MAN: whatever you want Aug 15 17:25:04 chinu__, no idea to be honest. Have only been doing android native for about 6-7 weeks now, mostly a server side java dev with some AI experience. Small start-up = many roles Aug 15 17:25:13 chinu__: don't do that. Aug 15 17:25:16 BulleTTime: don't do that. Aug 15 17:25:25 so, the old fragments implementation.... are they still working on ALL older android os's ? Aug 15 17:25:36 evanc i think its the only possibility to get what i want Aug 15 17:25:54 i want to disable alerts of the calendar from my calendar app Aug 15 17:25:57 BulleTTime: I don't know what you're trying to do, but still don't do that Aug 15 17:26:15 coding is hard enough without trolls Aug 15 17:26:18 ! Aug 15 17:26:18 evanc ? Nice answer :-P Aug 15 17:26:29 evanc i am doing it for my device i have something very important Aug 15 17:26:40 what is the variable I need to set to change the timeout in LocationListener!? Aug 15 17:26:41 so could you please help me Aug 15 17:27:17 evanc in the settings of the calendar there's a option to fully disable the alerts. I want to set this value to off. i tried to do this with sharedPreferences but that wont work Aug 15 17:27:24 MDTech-us_MAN: as we've been trying to tell you, there isn't one. You have to define that yourself. There is not a LocationClient.doWhatMDTechus_MANWants() method Aug 15 17:27:28 MDTech-us_MAN, as I stated, I don't believe the locationlistener supports an actual time out, you will have to make your own timeout task and check if a shared object has been filled with location data by the location listener Aug 15 17:27:32 icbytes: yes Aug 15 17:27:42 Jake ? What "Yes" ??? Aug 15 17:27:54 you asked a question Aug 15 17:27:57 yes is the answer Aug 15 17:28:09 BulleTTime: just tell the user that they will have to do this in order to . Don't try and spy on their activities to make sure that they do. Maybe have a button that takes them there (if that's possible) Aug 15 17:28:23 evanc could you help me ? Aug 15 17:28:24 ah, implementation of fragments, the old style ..... Aug 15 17:28:28 Jake? Aug 15 17:28:29 you are my last hope Aug 15 17:28:45 icbytes: not ALL, since I don't think it goes back to 1.0, but no one runs 1.0 so ... Aug 15 17:28:50 tell me, are fragments the right apporach to create activities at runtime ? Aug 15 17:29:09 no, nut under, only above os's are relevant for me .... Aug 15 17:29:14 fragments are management containers around a view or dialog Aug 15 17:29:17 evenc that would be good, but i think that is not possible... so but i must do this in order to archive what i want Aug 15 17:29:31 activities are managements containers around a window into which you can place views and dialogs Aug 15 17:29:37 so, as i read, activities cannot be added and deleted at runtime Aug 15 17:29:39 chinu__: You need to watch the activity stack and check for the top-most activity. Please find out how to do that on your own, it's really not difficult. However, this solution is dumb and I recommend that you rethink what you're doing. Aug 15 17:29:57 i have no idea what you mean by "added" and "deleted" Aug 15 17:30:19 BulleTTime: I'm still telling you to not do that, but don't let me stop you from shooting your users in the foot Aug 15 17:30:30 so i choose to use fragments upon one dummy activity, because i get data from db and this metadata says me, how much "parentforms" i have to create and which ui elements on them are located where, and so on...... Aug 15 17:31:28 so you have to create views dynamically Aug 15 17:31:37 doesn't matter if it's in an activity or fragment Aug 15 17:31:56 Why not create the view that you want to show and pass it as a parameter to the activity that you want to show? Aug 15 17:32:22 evanc i have looked into the source code of the calendar and the option is availble for every sdk that has the calendar Aug 15 17:32:29 i mean, activities must be defined at design time and cannot be added ( instantiated ) or deleted at runtime... and also changing manifest at runtime is forbidden.... right , i need to create" parent forms" at runtime and then place elements in them..... are fragments te right apporach ? I got that recommendation on androidpit. Aug 15 17:32:34 so why not disable it? Aug 15 17:33:37 what would be a good, stable and from 2.3 until now suported recommendation in here ? Aug 15 17:34:07 if you use the fragments from the support library 2.3+ will be fine (pretty much all versions will be) Aug 15 17:34:15 BulleTTime: I'm not saying you shouldn't have the user disable the option. I'm saying you shouldn't spy on what they're doing to try and force them to do it. Aug 15 17:34:45 i am here Aug 15 17:34:53 now you must pay the troll toll Aug 15 17:35:19 jonc? Aug 15 17:36:22 so, the good old fashioned fragments will help ? The fragment itself, it will be a container, where i can place my ui elements inside and then "projecting" this on the one and only dummy activity ? Aug 15 17:36:44 right ? Aug 15 17:38:45 hey guys Aug 15 17:38:48 * gummylick nod Aug 15 17:40:15 basic question about AS before I try it; lets say I hand-write my gradle.build file, presumably i need to import this into AS so comprehends the project. can I continue to edit the build.gradle and does AS see this automatically? Aug 15 17:41:44 in other words, is the relationship between build.gradle and AS round-trip Aug 15 17:42:19 g00s: you know all that and you haven't yet tried AS ? Aug 15 17:42:20 what's the syntax to inflate a linearlayout from a template.xml? Aug 15 17:42:37 oh I guess you were using IDEA Aug 15 17:42:58 yeah, plain idea Aug 15 17:43:03 jonc ? Aug 15 17:43:10 are you still in here ? Aug 15 17:43:19 in IDEA, Gradle plugin would pull in build configurations from gradle just fine Aug 15 17:43:42 I suspect that as long as you don't break available tasks, the Android plugin in AS should work Aug 15 17:45:21 currently using: RelativeLayout tmp = (RelativeLayout) getLayoutInflater().inflate(R.layout.category_template, null); LinearLayout newCat = (LinearLayout) tmp.findViewById(R.id.new_category); Aug 15 17:45:55 where do I specify what function is started by the timer? Aug 15 17:46:07 in the TimerTask? Aug 15 17:46:18 don't use a TimerTask Aug 15 17:46:19 java docs Aug 15 17:46:24 use a Handler, as I told you before Aug 15 17:46:43 I will need this for something else Aug 15 17:46:52 if you read the javadocs and still don't know what to do, please google "android handler tutorial" Aug 15 17:46:58 MDTech-us_MAN: you should still use Handler Aug 15 17:47:17 :@@@ Aug 15 17:47:46 im going to go to my pool to cool off Aug 15 17:48:15 Many of you have probably already seen this, but just as a PSA: http://android-developers.blogspot.de/2013/08/some-securerandom-thoughts.html Aug 15 17:50:15 they should have given some thoughts to securerandom before this mess! Aug 15 17:54:46 another question is : can fragments be "resized" at runtime ?? Aug 15 17:55:48 ahh, nevermind, i need to figure out how to add a View to 2 different parents. Is there a clone method, or do I need to create 2 different views for this? Aug 15 17:56:16 you have to create two views Aug 15 17:56:25 bleh, alright Aug 15 17:56:34 icbytes: sure Aug 15 17:57:14 Komak57: its like real life, you can only have one parent Aug 15 17:57:16 why do I get "Handler cannot be resolved to a type" Aug 15 17:57:16 my requirements is "entire application" created at runtime from metadata out of db. So fragments is the way to go,right ? Aug 15 17:57:29 when I try to implement it Aug 15 17:57:29 MDTech-us_MAN: you did not import handler? are you using eclipse? Aug 15 17:57:42 try command + shift+ o Aug 15 17:57:44 yes Aug 15 17:58:01 mikedg ? Am i going the right way ? Aug 15 17:58:01 that should add missing commits for you Aug 15 17:58:03 intents Aug 15 17:58:14 command = what in windows? Aug 15 17:58:23 control Aug 15 17:58:27 ok Aug 15 17:58:31 or just buy a mac, its easier Aug 15 17:58:43 and you can do ios dev too Aug 15 17:58:45 and rape in the money Aug 15 17:59:00 no way! Aug 15 17:59:12 as long as you have an intel cpu you can run osx in a virtual machine Aug 15 17:59:25 my response to fragments: http://i.imgur.com/8M0aa.jpg Aug 15 17:59:27 first I earn a thousand in android then im buying a mac Aug 15 17:59:40 I get "0 impots added Aug 15 17:59:41 " Aug 15 17:59:46 imports Aug 15 17:59:47 interesting Aug 15 17:59:55 I know Aug 15 18:00:11 trying using android.os.Handler Aug 15 18:00:11 mac, hah Aug 15 18:00:13 and see what's up Aug 15 18:00:25 ok Aug 15 18:00:52 mac is nothinh, except of making beats.... all windows users, which tweaked it, all linuxers ad all android users will miss some stuff in order to "tweak" the ios to their needs Aug 15 18:00:57 mac is easier because the hotkeys say 'cmd' so I definitely need an overpriced laptop for "this stuff" Aug 15 18:01:01 The type Handler cannot be a superinterface of LocationListenerTimeout; a superinterface must be an interface Aug 15 18:01:30 ... wat Aug 15 18:01:40 MDTEch ? AFAIK all interfaces deriving must have interface as super Aug 15 18:01:55 i would so like to see that source code :D Aug 15 18:02:09 MDTech-us_MAN: don't take this the wrong way, but I really suggest that you learn to java at some point :/ Aug 15 18:02:11 there is no possibility of myinterface extends superclass Aug 15 18:02:34 evanc: I know Aug 15 18:02:57 one thing is good about java : its oo imlementation is really almost perfect. Aug 15 18:03:13 e Aug 15 18:03:14 private class LocationTimeout implements android.os.Handler { Aug 15 18:03:19 that is what I use Aug 15 18:03:20 two not so good things : no pointers and no function pointers.... am i right ? Aug 15 18:04:15 because the function pointers i am missing are the eventhandler assignment, as e have them in c# Aug 15 18:04:36 icbytes: function pointers are coming in half a year Aug 15 18:04:43 sorta Aug 15 18:04:57 i guess android will take much longer to adopt java 8 syntax though Aug 15 18:04:58 is my declaration correct: "private class LocationTimeout implements android.os.Handler {" Aug 15 18:05:16 ? Aug 15 18:05:17 Xabster ? Really ? Aug 15 18:05:35 icbytes: yes Aug 15 18:05:41 MDTech-us_MAN: depends on where that is Aug 15 18:05:43 Linkandzelda: Fragments are fantastic! Aug 15 18:05:44 is it java related or only android related ? Aug 15 18:05:48 is it an inner class/nested class? Aug 15 18:05:53 icbytes: is what? Aug 15 18:05:54 in the Main class Aug 15 18:06:00 FUnction pointers Aug 15 18:06:09 you're declaring an inner class inside Main class? Aug 15 18:06:12 i suppose jva, right ? Aug 15 18:06:24 Xabster: yup Aug 15 18:06:28 icbytes: java 8 will have a Function class to represent a function and you pass it as a reference Aug 15 18:06:35 MDTech-us_MAN: then it looks fine Aug 15 18:06:50 Diz eez yava. Que esta un pointer? Aug 15 18:07:23 a function class ? An interesting approach.... was thinking of the same as i wanted to invent generic eventhandlers in order to get rid of inline assignment Aug 15 18:07:25 yiati: sorry? Aug 15 18:07:27 MDTech-us_MAN: except Handler isn't an interface ... Aug 15 18:07:49 Xabster: It's all good, I excuse you. Aug 15 18:07:50 icbytes: anonymous inner classes for event handlers will be simplified too Aug 15 18:07:54 not sure which approach they will take Aug 15 18:08:05 can you remind me the alternative of implements for clases? Aug 15 18:08:13 extends? Aug 15 18:08:19 ok Aug 15 18:08:28 the demand seems to be huge, because function pointers are really necessary in order to encapsulate the stuff much better Aug 15 18:08:33 * Brian|CS is still waiting for evanc's fishing lessons Aug 15 18:08:59 jonc: thanks it works Aug 15 18:09:18 inner classes for evebt handlers ? Could You explain a little bit or post a link ? Aug 15 18:09:37 icbytes: i don't think they know themselves how exactly it's gonna be in the end Aug 15 18:09:45 they postponed java 8 to Q1 2014 Aug 15 18:09:55 Brian|CS: I told him to google "android handler tutorial" instead of trying to have someone in here spoon-feed him :( Aug 15 18:09:56 I have a service but the service stops when i am closing the app , i want it to run continously in background what should i do ? Aug 15 18:10:07 what ? Aug 15 18:10:31 how could they NOT know? ( You are talkig about the dev.-team, right ) Aug 15 18:10:50 yes, i don't know if they know Aug 15 18:10:53 but, here: http://www.javabeat.net/2012/05/using-lambda-expressions-of-java-8-in-java-fx-event-handlers/ Aug 15 18:10:53 nice Aug 15 18:10:56 that is the minimum that will happen Aug 15 18:10:58 chinu__: are you just binding and unbinind?g Aug 15 18:11:03 that is using lambdas to simplify it Aug 15 18:11:04 maybe you device is out of memory Aug 15 18:11:04 thx, Xabster Aug 15 18:11:22 Xabster Do You devlelop android apss for a long time ? Aug 15 18:11:27 no Aug 15 18:11:29 i do java Aug 15 18:11:36 no android ? Aug 15 18:11:39 not much Aug 15 18:11:43 ok, Aug 15 18:11:46 1 incomplete app so far :) Aug 15 18:11:46 Physical memory is finite, but virtual memory.... virtual memory is forever......... Aug 15 18:11:56 like me Aug 15 18:11:57 yes Aug 15 18:12:20 no, i have 3 already, and 3 ppty's Aug 15 18:12:37 mikedg : yes i am binding it then unbinding , but when i bind it and go to home screen and back to app it is unbinded automatically Aug 15 18:12:51 thats why its being killed Aug 15 18:12:56 you are basically telling it, i have no use for this Aug 15 18:13:08 when everything unbinds Aug 15 18:13:18 explicitly start the service Aug 15 18:13:37 startService(mIntent); Aug 15 18:13:38 Hi everyone, why I got somthing like "DexOpt: illegal method access" while using multiple dex classes ? Thanks. Aug 15 18:14:23 mikedg i am doing this startService(mIntent) Aug 15 18:14:26 how do i disable a word highlight in android studio? Aug 15 18:14:32 are you also doing stopservice? Aug 15 18:14:37 right now the word url is highlighted throughout my class Aug 15 18:14:37 no Aug 15 18:14:51 but on going to home screen it auto stops the service Aug 15 18:15:58 hey everyone! I have the following problem: I need to place two drawables on my ImageView and they should exist in one of two conditions - 1) background drawable is visible, foreground is invisible 2) background alpha is 50%, foreground is visible. I'm trying to realize it usin LayerDrawable, but meeting to much problems on my way if there's a better practise to realize it? Aug 15 18:16:16 mikedg i am not doing stopService(mIntent) but on moving to home it auto stops the service Aug 15 18:16:31 is your phone a piece of shit? Aug 15 18:16:37 how do you know it stops the service? Aug 15 18:17:39 well i have 3 buttons , 1 start service one stop service and another to toast a message , it toast a message when service is running , so i start service move to home screen come back and then no toast mikedg Aug 15 18:17:45 is it a fault of device ? Aug 15 18:19:27 chinu__: why would you get another toast? Aug 15 18:19:56 chinu__: why not just show us your Service? http://pastebin.com/ Aug 15 18:19:57 because i am pressing the toast button again , if the service is running then there should be a toast ? Aug 15 18:20:19 chinu__: are you binding to it again? Anyway, just show us the source of the service and maybe the activity. Aug 15 18:20:33 ok wait Aug 15 18:21:53 hey SimonVT im using your calendarview, why might the numbers(each date) not being shown, like they are transparent. I can scroll though and the month changes, but the dates are not displaying Aug 15 18:22:11 (also note I had to use flash-ua's solution here to fix the NPE in case it helps important https://github.com/SimonVT/android-calendarview/issues/3) Aug 15 18:22:21 by the way, does anybody have a nice pattern to assign evebthandlers a little bit more "elegant" ??? Aug 15 18:22:47 No idea Aug 15 18:22:54 I don't use it, and I don't maintain it anymore Aug 15 18:23:00 no problem Aug 15 18:23:13 Works in the samples! (i think) Aug 15 18:23:16 yes it does Aug 15 18:23:36 i am using it in a fragment, perhaps its something to do with this Aug 15 18:23:46 Nah Aug 15 18:23:52 Views don't know they're in fragments Aug 15 18:24:00 ok Aug 15 18:24:36 can i have AS and vanilla idea installed at the same time? do they clobber each others' state / prefs / etc Aug 15 18:25:08 SimonVT, is there something else similar to your calendar view? i need to go back to about api level10 Aug 15 18:25:30 isn't there one in aosp ? Aug 15 18:25:54 Square made one iirc Aug 15 18:25:58 Check their github Aug 15 18:26:03 ok thanks Aug 15 18:26:08 g00s, it doesnt go back that far Aug 15 18:26:11 not the calendar Aug 15 18:26:49 http://github.com/square/android-times-square Aug 15 18:26:56 ^ Aug 15 18:27:12 That's prettier than CalendarView Aug 15 18:27:14 thanks JakeWharton Aug 15 18:28:01 JakeWharton: What's up with the Samsung device? Aug 15 18:28:04 JakeWharton: Is it wrong that I want to come work on Square just cause I respect you so much? Aug 15 18:29:27 Brian|CS: come work for Roundarch Isobar, we have at least 3 people named Jake Aug 15 18:29:38 Lol Aug 15 18:29:44 That is a compelling argument I suppose... Aug 15 18:29:50 Do you have Tuxedo Fridays? Aug 15 18:29:56 and Tuesdays Aug 15 18:29:59 (Is that even a real thing? If not, I want it to be) Aug 15 18:30:33 and pom file thursdays Aug 15 18:31:12 Oh god Aug 15 18:31:16 I'm calling in sick on Thursdays Aug 15 18:31:29 Soon to be replaced by gradle.build thursdays Aug 15 18:31:31 evanc http://pastebin.com/sN6rhBrF Aug 15 18:31:38 mikedg http://pastebin.com/sN6rhBrF Aug 15 18:31:47 Can we have Context Leak Wednesdays? Aug 15 18:32:44 contexts are always leaking Aug 15 18:32:57 chinu__: lol that doesn't help us at all Aug 15 18:33:46 chinu__: also, startService(..) doesn't return what you think it does. I suggest you check the documentation again. Aug 15 18:33:49 http://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent) Aug 15 18:34:33 TIL startService returns something Aug 15 18:34:45 TIL SimonVT doesn't know everything Aug 15 18:34:50 Dreams shattered. Aug 15 18:35:16 evanc then how to check if a service is running ? Aug 15 18:35:42 chinu__: https://www.google.com/search?q=android+how+to+check+if+service+is+running Aug 15 18:36:27 chinu__: most cases you dont really care if the service is running Aug 15 18:36:41 if you are bound, then you know it's running Aug 15 18:37:13 Brian|CS: Guess I haven't had the need to start services blindly without knowing if they exist Aug 15 18:37:28 does android java offer to deflate or gzip ( both unzipping ) data ? Aug 15 18:37:37 icbytes: yes Aug 15 18:37:51 by board ? Aug 15 18:37:53 SimonVT: You don't YOLO very hard then Aug 15 18:37:54 :P Aug 15 18:38:01 standard libs ? Aug 15 18:38:17 https://developer.android.com/reference/java/util/zip/GZIPInputStream.html Aug 15 18:38:21 yes, both manually if you want to, and if you use the right networking code, it'll do it for you Aug 15 18:38:32 https://developer.android.com/reference/java/util/zip/DeflaterInputStream.html Aug 15 18:38:42 what means right nw code in this case ? Aug 15 18:39:04 icbytes: http://developer.android.com/training/basics/network-ops/connecting.html Aug 15 18:39:09 any way to programmatically generate a button with a w1:h1 ratio while using weights to resize? Aug 15 18:39:57 I'm looking to generate 4 buttons per row that are perfect squares, and fill the row neatly Aug 15 18:39:58 HttpUrlConnection is the right thing to use if your server compresses the data Aug 15 18:39:59 menice, thx Aug 15 18:40:02 nice Aug 15 18:40:14 Komak57: that sounds ugly Aug 15 18:40:24 but necessary Aug 15 18:40:28 i will get flat encrypted zipped data , so this should be the right way, i suppose Aug 15 18:40:38 so like on a wide screen 60" tv yo want some big floppy buttons all up in there Aug 15 18:40:49 yush! Aug 15 18:40:57 I love me some big floppy buttons Aug 15 18:40:58 lol Aug 15 18:40:59 of course, the user can customize how many per row Aug 15 18:41:12 which will shrink them to a desired level Aug 15 18:41:27 Komak57: Use weighted views inside of a linear layout? Aug 15 18:41:28 Idk Aug 15 18:41:34 Just throwing out thoguhts Aug 15 18:41:39 didnt really read all of what you said honestly Aug 15 18:41:40 weighted buttons inside a linear layout Aug 15 18:42:06 i will create several .xml files with my app. How can I hide them ( against usage of browsers like astro .... ) ? Aug 15 18:42:22 or, if i can, I would much prefer standard button sizes that are evenly spaced in the layout parent Aug 15 18:42:51 icbytes, put them in you apps private area Aug 15 18:43:10 Komak57: Linear layout containing weighted relative layouts containing centered buttons that are sized appropriately? Aug 15 18:43:36 how to do that ? Aug 15 18:44:16 icbytes: anything you write inside your app's dir is hidden by default Aug 15 18:44:24 Brian|CS: ViewFlipper containing Systematically created layouts containing horizontally centerred buttons with a constant aspect ratio or size Aug 15 18:44:26 really ? Aug 15 18:44:31 icbytes: yes. Aug 15 18:44:47 how is this dir created ? and where ? Aug 15 18:45:01 by google play store installation ? Aug 15 18:45:18 icbytes: Context#getDir(..) or Context#getFilesDir() Aug 15 18:45:44 no no no, what is the mechanism, which creates this hidden files in the special dir ? Aug 15 18:46:01 ... er, the operating system? Aug 15 18:46:16 and when , what is the trigger ? Aug 15 18:46:22 it's not like there's anything special about hidden files; they're just chmodded so only your app can see them Aug 15 18:46:24 INstalling from play store Aug 15 18:46:31 it's also not a special directory Aug 15 18:46:44 it's just a directory that only your app (or system/root) can read Aug 15 18:47:04 when will my app gain root privileges ? Aug 15 18:47:08 never Aug 15 18:47:20 so, how then can this app read the files ? Aug 15 18:47:28 because it can Aug 15 18:47:44 on android every app is given it's own uid Aug 15 18:47:46 it's just the standard linux filesystem permission system Aug 15 18:47:54 nice, i am linux user and i need some hints, how this can be done Aug 15 18:48:01 and when installing an APK a data directory is create that is owned by that UID and can be used for private app data Aug 15 18:48:09 aha Aug 15 18:48:18 this was my question Aug 15 18:48:25 and this is a good answer Aug 15 18:48:37 the os takes care about apk installation Aug 15 18:50:02 do I have to implement special techniques to gain this benefit ? Aug 15 18:51:16 So, I'm just starting out with the ADK, and I was wondering why a context has to be a paramater Aug 15 18:51:28 http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int) (likewise there is getFilesDir that evanc already mentioned) Aug 15 18:55:50 a new book on android tools http://shop.oreilly.com/product/0636920025320.do Aug 15 18:56:02 "AS to Zipalign" hehe, i like that Aug 15 18:56:18 http://developer.android.com/training/basics/firstapp/starting-activity.html Aug 15 18:56:22 like in the example code here Aug 15 18:56:35 Intent intent = new Intent(this, DisplayMessageActivity.class); Aug 15 18:56:47 why does this, or any context have to be a parameter? Aug 15 18:57:57 g00s: before I noticed oreilly.com, I thought it was japanese getting funny with names again :> Aug 15 18:58:10 heh Aug 15 18:58:40 wow, i just saw a whole book on lighting for beer photography :| Aug 15 18:59:34 hi, we have a bunch of js-code that is need to be executed in a webview.. is there a way to store a js-file in resources and then have R include it in its strings? Aug 15 18:59:47 hello! i`m trying to get a webpage into a string by downloading its content but only a part of the src code gets into the string . i`m doing like this http://pastebin.com/BTR9nvaF Aug 15 18:59:53 any idea why it behaves like that Aug 15 19:00:21 vvu|Mobile: http://stackoverflow.com/questions/9966760/how-i-get-page-source-from-webview Aug 15 19:01:18 "How to light beer" http://www.peachpit.com/store/how-to-light-beer-a-photographers-guide-to-working-9780133549386 Aug 15 19:03:00 ohcibi: mmhmh i still want to find out my issue there Aug 15 19:03:44 hey all. im trying to write an app that does real-time gps tracking. one of the issues im running into is the calculated heading jumps around alot because of gps error. i cant seem to find good ways to address this... anyone have any advice? Aug 15 19:04:07 you can't using GPS only Aug 15 19:04:23 you need to use gyro and compass too Aug 15 19:04:33 i can't guarantee that the end user's device has a gyro and compass though Aug 15 19:04:59 only show heading when going faster than x then. Aug 15 19:05:18 and heading is a lie. Aug 15 19:05:30 it's course over ground Aug 15 19:06:23 alright, i'll use 'course' to describe it then Aug 15 19:06:27 canurabus: google gps smoothing.. there are ways to approximate a curve that goes kinda straight trough a bunch of points Aug 15 19:06:37 without compass and gyro Aug 15 19:06:42 ohcibi, can't do that for real time Aug 15 19:07:10 basically, cutting off when going slowly is the best you can do with general GPS hardware. Aug 15 19:07:27 yes.. Aug 15 19:07:30 and it may be quite inaccurate in some cases Aug 15 19:07:53 i also drop points that cut the accuracy radius with their accuracy radius from the last point Aug 15 19:08:26 Hi everyone, why I got somthing like "VFY: unable to resolve virtual method" while using multiple dex classes ? Thanks. Aug 15 19:10:55 do all gps receivers provide speed data? Aug 15 19:15:28 I may or may not have used my lunch break to play guitar hero 2. Was worth. Aug 15 19:15:39 Brian|CS: tried Rocksmith? Aug 15 19:16:57 Could a mismatched targetSdkVersion between AndroidManifest.xml and build.gradle cause build issues? Aug 15 19:17:06 Brian|CS: doesn't sound like a memorable experience ;) Aug 15 19:17:37 lol Aug 15 19:17:37 hey guys, when trying to build to a 2.3 device I'm getting Failure [INSTALL_FAILED_OLDER_SDK]. my target and min sdk version is both set to 9 Aug 15 19:17:39 it was fun Aug 15 19:17:42 I used to be so good, I suck now Aug 15 19:17:46 yiati can't see how it would help :P Aug 15 19:17:47 I even missed a note on monkey wrench Aug 15 19:17:52 I don't remember the last time I didn't 100% that song Aug 15 19:17:53 >.> Aug 15 19:17:56 but the gradle should override the manifest Aug 15 19:18:34 g00s: It definitely won't help, but I am trying to figure out why my project will build on my machine, but not on a CI server Aug 15 19:19:06 It's awkward that the sdkVersion is declared in 2 places Aug 15 19:19:14 yeah! don't do that :P Aug 15 19:19:15 The Pragmatic Programmer would not be happy with that Aug 15 19:19:23 just put it in one place Aug 15 19:20:27 obvious goos is obvious :D Aug 15 19:22:58 Hi is there such a thing as public preferences? I'm trying to store none-sensitive information i'd like multiple apps to be able to read Aug 15 19:23:04 is there another channel i could go to with my question? Aug 15 19:23:27 or anywhere else i can ask? Aug 15 19:26:30 GreySyntax: you'd have to expose it by some means on your own, probably a content provider Aug 15 19:26:45 kevinb: thanks :) Aug 15 19:28:52 i have a problem setting-up push notifications (register the mobile on GCM). I'm using cordova 3.0.6 with this plugin: https://github.com/marknutter/GCM-Cordova. In the logging i see the line "V/GCMRegistrar(31253): Registering app com.owello.hetinteractievescherm of senders XXXXXXXXXX" but i dont see any loglines that receives the callback with the key. Im not sure which information i need to supply, so if you need any info, just ask Aug 15 19:32:23 Does the new build system support referencing local .aar files as dependencies, or do I have to install the .aar into a local maven repository? Aug 15 19:32:30 f2prateek, must install Aug 15 19:32:41 why have local .aar... Aug 15 19:32:52 easier to setup a maven repo than support local distribution Aug 15 19:33:20 f2prateek see the repo example in gradle-examples Aug 15 19:33:24 It's just like having a jar isn't it Aug 15 19:33:48 It's not my ibrary anyway, https://github.com/astuetz/PagerSlidingTabStrip Aug 15 19:34:45 Ronnie: You need your sender_id, essentially the "project number" (see the docs on GCM for Android). Call GoogleCloudMessaging.register(sender_id) and you will get a register_id back. I have no idea how Cordova does this, but from java it's the way I described. You need to set up API access in the Google API console as well of course. Aug 15 19:34:52 f2prateek maybe its on maven central already Aug 15 19:35:04 but the author to release to maven central Aug 15 19:36:03 f2prateek, it's not like just having a jar Aug 15 19:36:39 pfn: I mean it should be, I thought that's why they had aar over apklib Aug 15 19:36:55 it's smarter than apklib, but it's not like just having a jar Aug 15 19:37:00 it has to work in a similar fashion, functionally Aug 15 19:37:03 but without sources Aug 15 19:37:26 https://gist.github.com/pfn/6238004 Aug 15 19:37:35 so, I setup an sbt build to pull in volley seamlessly Aug 15 19:37:38 now to turn it into a plugin Aug 15 19:38:32 f2prateek: ignore pfn. it's exactly like a jar. you shouldn't be wanting to use local dependencies though Aug 15 19:38:49 JakeWharton, no, it's not exactly like a jar Aug 15 19:38:54 you can't add it to your classpath like a jar Aug 15 19:39:00 sure you can Aug 15 19:39:01 you can't just dex it like a jar Aug 15 19:39:17 you have to unpack it and extract the classes.jar out first Aug 15 19:39:29 the behavior is nothing like a jar Aug 15 19:39:40 so it doesn't behave like a zip file? Aug 15 19:39:48 because a jar is a zip file... and an aar is a zip file Aug 15 19:39:49 who said anything about a zip file Aug 15 19:39:53 a jar has meaning attached Aug 15 19:39:58 so does an aar Aug 15 19:39:59 a java archive, thus containing classes Aug 15 19:40:07 an aar is a zip Aug 15 19:40:09 but it's not a jar Aug 15 19:40:15 a jar is a zip Aug 15 19:40:17 but it's not an aar Aug 15 19:40:24 right Aug 15 19:40:30 so an aar isn't just like a jar Aug 15 19:40:36 you can't treat it just like a jar Aug 15 19:40:38 they're both zips Aug 15 19:40:42 you can shove them into libs Aug 15 19:40:44 you can treat it like a zip Aug 15 19:40:47 the build system noms both Aug 15 19:40:47 you can't shove them into libs Aug 15 19:40:52 you can Aug 15 19:41:06 kjeldahl: i have the sender id and activated the "Google Cloud Messaging for Android". In https://play.google.com/apps/publish/ i have attached that sender_id. The last relevant logline i see is: com.google.android.gcm.GCMRegistrar.java - Registering app com.owello.hetinteractievescherm of senders XXXXXX ||| where XXXXXX is my sender_id Aug 15 19:41:19 you can't just say dependencies ( files("libs/foo.aar")) Aug 15 19:41:21 it won't build Aug 15 19:41:42 i'm doing it Aug 15 19:41:59 unzip -t your.aar Aug 15 19:42:14 winzip? Aug 15 19:42:26 you don't have unzip? for shame Aug 15 19:42:53 kjeldahl: https://github.com/marknutter/GCM-Cordova/blob/master/src/com/google/android/gcm/GCMRegistrar.java#L216 Aug 15 19:43:04 i have a handler which runs a h.postDelayed in a service but even the service is stopped the postDelayed is still running , how to stop that ? Aug 15 19:43:09 here is my code Aug 15 19:43:20 With the new build system project structure what directory does the local.properties go in? Still the root directory? Aug 15 19:43:31 http://pastebin.com/yRyUghTX Aug 15 19:43:41 code for servicee onCreate Aug 15 19:44:09 JakeWharton: so why shouldn't I be wanting use local dependencies? The library isn't on central so I have to build it and attach it locally right? Aug 15 19:44:30 evanc can you take a look at my problem Aug 15 19:44:33 http://pastebin.com/yRyUghTX Aug 15 19:44:39 on windows 7zip is nice Aug 15 19:45:02 local dependencies (in-project) don't participate in dependency resolution the same way which means multiple modules can't depend on the same artifact without headaches Aug 15 19:45:29 https://gist.github.com/pfn/6244130 Aug 15 19:45:45 you should always, always, always want to pull dependencies from a remote source so they go through this resolution process Aug 15 19:45:52 so the gradle android plugin processes local jar dependencies as aars? Aug 15 19:46:02 that's interesting if so Aug 15 19:46:18 JakeWharton: so I should just pester the author to relese it on central Aug 15 19:46:28 is there a better way than just saving in a list which networks were enabled before calling WifiManager.enableNetwork(id, true) in order to re-enable the networks that were enabled before you disable all of them? Aug 15 19:46:31 well you should always be doing that Aug 15 19:46:43 f2prateek it also take like 2 minutes to install the coordinates in ~/.m2 Aug 15 19:46:49 but you can do things like install it locally Aug 15 19:46:58 2 minutes? it should take two seconds Aug 15 19:47:05 git clone ; mvn install Aug 15 19:47:06 2 minutes if you have to get mvn :D Aug 15 19:47:17 evanc any help Aug 15 19:47:18 http://pastebin.com/yRyUghTX Aug 15 19:47:20 brew instal maven && mvn install Aug 15 19:47:25 brew install gradle && gradle install Aug 15 19:47:29 JakeWharton, you have brew but you don't have unzip? Aug 15 19:47:31 * pfn headscratches Aug 15 19:47:57 mvn has to get a lot the first time its run. if you are using smoke signals for interwebs like pfn, it could take 2 minutes Aug 15 19:48:17 :) Aug 15 19:48:18 g00s, JakeWharton: sweet thanks for the tips Aug 15 19:48:25 I just got a nexus S for dev purposes, and when I connect it to my macbook it doesn't display "usb debugging mode" in the status area, and the macbook doesn't detect it. Is there something else I should try or is the phone probably bad? Aug 15 19:48:39 (usb debugging is enabled) Aug 15 19:48:49 get another cable Aug 15 19:49:01 pfn: this cable works fine with my other android phone Aug 15 19:49:09 Ronnie: Not sure what that module does, considering it deals with multiple sender ids. Could be some kind of server. Anyway, here's the official Google docs for GCM on Android: http://developer.android.com/google/gcm/client.html Aug 15 19:49:19 my cable worked fine with my galaxy nexus, but it didn't work with my nexus 7 Aug 15 19:49:28 swap cable out for a better oem cable and it worked fine Aug 15 19:49:33 Ronnie: Why a _client_ would need multiple sender ids I do not know, so maybe the Cordova thingy actually is a server as well. Aug 15 19:49:38 hmm… good point. is there some kind of cable I should look for? Aug 15 19:49:47 usually oem cable with the phone works fine Aug 15 19:49:57 they seem to be better crafted than some generic cables Aug 15 19:50:06 the cable I'm using is an OEM cable. Not sure where I'd get another one Aug 15 19:50:31 alternatively, su and adb over wifi Aug 15 19:50:48 I didn't know you could do that… how do you set that up? Aug 15 19:52:16 kjeldahl: Thx, looks like i need to write some java after al. Tried to avoid it by using plugins. But probable the plugin is too old Aug 15 19:52:23 setprop service.adb.tcp.port 5555 ; kill `ps | grep adbd | cut -d\ -f2` Aug 15 19:52:33 adb connect your-device-ip Aug 15 19:53:13 pfn: thanks! I need to use 2 devices though… it won't still work with usb then will it? Aug 15 19:53:18 the first line on-device, the second command on your pc Aug 15 19:53:24 nesoi, it'll show up as another device to adb Aug 15 19:53:52 cool… um, how do I get into a command line on my device? :) Aug 15 19:53:58 connectbot -> local Aug 15 19:54:02 then su Aug 15 19:54:04 then have at it Aug 15 19:54:07 how to stop a post delayed handler ? Aug 15 19:54:10 connectbot? Aug 15 19:54:15 chinu__, removeCallbacks Aug 15 19:54:30 hmm, no cut on android shells, bummer Aug 15 19:54:32 what's connectbot? Aug 15 19:54:34 what should be the argument in it ? runnable ? Aug 15 19:54:49 I don't think my device is rooted, is it? stock device? Aug 15 19:55:05 nexus devices don't ship with root enabled Aug 15 19:55:14 http://pastebin.com/yRyUghTX well here is my code and i want to stop this postdealyed in OnDestroy , so what should i do ? pfn ? Aug 15 19:55:15 hm, im making small app for a shoutcast... im trying to retrieve the song title which loads into a webpage via js. when i click a button, i pop up the song title.. Aug 15 19:55:25 but it seems the page is still loading? is there a way for it to wait Aug 15 19:55:27 ? Aug 15 19:55:30 (httpget to wait) Aug 15 19:55:42 chinu__, you passed it a runnable, why can't you removeCallbacks with that runnable? Aug 15 19:55:52 pfn so I have to root it to get this to work, right? Aug 15 19:55:58 chinu__, and, yes, if you don't have a reference to your runnable, make one Aug 15 19:56:07 nesoi, to enable adb over wifi on-device, yes Aug 15 19:56:16 but runnable cannot be instantiated Aug 15 19:56:16 over usb it doesn't require special perms Aug 15 19:56:19 ... Aug 15 19:56:43 chinu__, learn moar java... Runnable r = new Runnable() { ... } ; h.postDelayed(r, 5000); later, h.removeCallbacks(r) Aug 15 19:57:34 pfn so just download a root thing from xda developers or something Aug 15 19:57:46 nesoi, I suppose Aug 15 19:57:55 with a nexus device, rooting is trivial Aug 15 19:58:01 if you can connect via usb Aug 15 19:58:12 of course, you lose all data.... Aug 15 19:59:12 I don't have any data… and I can't connect it by USB: catch 22! Aug 15 19:59:14 Can anyone confirm that on 4.3 you can no longer pass an environment via Runtime.exec(cmd, ENV) ? Aug 15 19:59:22 thanks a lot pfn Aug 15 19:59:32 I successfully rooted my nexus 4 without losing data recently. I don't know if it still works in 4.3 though Aug 15 19:59:40 this is 4.1.1 Aug 15 19:59:44 but… no USB Aug 15 20:00:00 it was just adb commands, so I think it should be theoretically possible over wifi adb Aug 15 20:00:12 jamuraa, can't enable wifi-adb without usb or root Aug 15 20:00:50 true. :/ Aug 15 20:01:08 and usually can't root without usb either Aug 15 20:01:20 pfn i want to check the activity stack with my service , is continuous timer is best choice for it Aug 15 20:01:22 I think this device is going back to the seller Aug 15 20:01:33 kjeldahl: im stuck at step1: To write your client application, use the GoogleCloudMessaging API. To use this API, you must set up your project to use the Google Play services SDK, as described in Setup Google Play Services SDK." with the command "android sdk" i downloaded the google play services, but how do i link the library to my project? Aug 15 20:01:44 chinu__, a continuous timer is not a good choice for anything Aug 15 20:02:28 http://developer.android.com/tools/projects/projects-cmdline.html#ReferencingLibraryProject ==> i see the android update project command, but whats the and where can i find path/to/library_projectA ? Aug 15 20:03:04 then how should i check if user is opening message activity ? Aug 15 20:03:18 and ask for a password protection Aug 15 20:03:23 Ronnie, you only set path if you have a library project Aug 15 20:03:29 Ronnie, target id is the output of android list targets Aug 15 20:03:48 oh, play gms Aug 15 20:03:50 in ant Aug 15 20:03:51 pain Aug 15 20:03:52 * pfn shrugs Aug 15 20:05:31 no idea where to get a USB cable around here… I'm traveling Aug 15 20:05:33 grr Aug 15 20:06:29 What is the out directory in my project? Is it a by product of the build process (i.e. Can I delete it from my git repo?) Aug 15 20:07:03 nesoi: Wal-Mart Aug 15 20:07:08 Ronnie: That depends on which tools you use. It's different in Eclipse and Android Studio for instance. For the latter, you add a line " compile 'com.google.android.gms:play-services:3.1.36' Aug 15 20:07:18 " in the dependenies section in the build.gradle file. Aug 15 20:07:47 kjeldahl: i use the commandline Aug 15 20:08:00 For Eclipse, you need to add it as a "library project" dependency using the GUI tools. Don't ask me how; I've surpressed all the Eclipse stuff. Aug 15 20:08:12 Ronnie: Command line as in "./gradlew"? Aug 15 20:08:22 kjeldahl: jup Aug 15 20:08:32 Ronnie: If so, the instruction I gave for Android Studio is the same. Just add that line to the build.gradle file. Aug 15 20:08:48 pfn then what should be the best practice if i want to chek if user is opening the message activity Aug 15 20:08:52 pfn: you think a cable purchased from an ATT store is likely to work? Aug 15 20:09:11 chinu__, opening what? Aug 15 20:09:18 nesoi, probably Aug 15 20:09:37 pfn : if user is opening the Systems message activity Aug 15 20:09:40 ok, I'll go over there. they said I could try it before paying their exorbitant price Aug 15 20:09:47 chinu__, why do you want to do that... Aug 15 20:10:01 I am making a message lock app Aug 15 20:10:05 for my device Aug 15 20:10:09 Ronnie: You probably need to adjust the version of the library to match what you've got. It's gotten a couple of updates. Aug 15 20:10:19 chinu__, to do what? Aug 15 20:10:56 so when anyone else open a message app from my device i show them a image on pressing at a perticular position on that image the lock unlocks Aug 15 20:11:47 does anyone know of any good FREE flowcharting software Aug 15 20:12:07 chinu__, why don't you just lock your device.... Aug 15 20:12:10 graphvix :) Aug 15 20:12:17 jr3 graphviz :D Aug 15 20:12:35 but i want to lock only messages not device so that i can pass my device if anyone want to play games Aug 15 20:12:44 Ronnie: 3.2.25 is the latest one at my end at least, revision 10 it's called. Aug 15 20:12:45 g00s: thanks ill check it Aug 15 20:12:47 or listne music Aug 15 20:13:45 kjeldahl: revision 10 here also Aug 15 20:13:57 k Aug 15 20:13:58 so, im trying to use httpget to open a htm file that has an embedded js file in it. httpget retrieves the file fine, but the js just says loading... Aug 15 20:14:08 pfn can you help in that Aug 15 20:14:10 anything i can do make it wait or.. Aug 15 20:14:38 chinu__, better to write/modify an existing messaging app to add a lock mode Aug 15 20:14:54 any open source in your mind Aug 15 20:15:11 the stock one? android is open source Aug 15 20:16:13 gummylick: are you using a WebView to display this? Or are you just downloading it? Aug 15 20:16:49 ah actually just using toast message Aug 15 20:17:00 should i do a text view or something? Aug 15 20:17:06 its just a little pop up message that says song title Aug 15 20:17:19 but i had to get the songtitle with a js provided by the autodj/centovacast Aug 15 20:18:08 And how/where is the js executed? Aug 15 20:18:21 i just put it in a regular html on my webhost Aug 15 20:18:33 i didn't wanna do a direct call to it because the radio host keep flaking out on me Aug 15 20:19:09 so, i put it in a html, you go to the link it shows you the song title no problem. i can parse it if i need to (and plan to) to clean it up from teh source Aug 15 20:19:19 but.. i just keep getting "loading..." in place of the div Aug 15 20:19:26 the js replaces loading w/ the songtitle Aug 15 20:20:10 Right, but you do know that js is clientside, not serverside, right? So if you're contacting a webserver from android, the js would have to execute somewhere on your device, right? Aug 15 20:20:25 aaaaaah Aug 15 20:20:28 damn it Aug 15 20:20:42 hence the loading... Aug 15 20:20:48 im guessing? Aug 15 20:20:54 especially if its in a toast box Aug 15 20:20:57 damn it Aug 15 20:21:11 have the server send up a json object and use GSON to parse it to an object Aug 15 20:21:34 not familiar at all with either Aug 15 20:21:43 hm Aug 15 20:21:49 a lot of api's use json Aug 15 20:22:23 rather easy to understand and pretty much all web languages (be it serverside or clientside) support JSON in some form Aug 15 20:22:42 have any examples i might be able to follow for this? Aug 15 20:23:52 or a phrase i can google Aug 15 20:24:04 i am creating Aug 15 20:24:20 pfn how to check if user is pressing system message app ? Aug 15 20:24:31 you don't Aug 15 20:24:54 there is no method to do that ? Aug 15 20:25:12 so i have to make a timer and scan activity stack every second ? Aug 15 20:25:30 ... Or just modify the app Aug 15 20:25:41 just replace the system app with one that supports a lock Aug 15 20:25:48 and really? you care about your sms that much? Aug 15 20:25:51 what about everything else Aug 15 20:25:51 how so thorbear? Aug 15 20:26:23 pfn , it is something i really wnt to built by myself Aug 15 20:26:25 would i display the message in a little webview or something? Aug 15 20:26:29 so could you help a little Aug 15 20:26:31 no Aug 15 20:26:37 not interested in hacky apps Aug 15 20:28:54 gummylick: if you want to have a Toast message, you might want to do as jonc suggested, create a json api on your webserver (php json api is a nice google phrase for that, and perhaps php curl to get the information from the unstable server) Aug 15 20:30:30 well.. Aug 15 20:30:34 lemme google that Aug 15 20:30:43 but in the future i hoped to google search the song title for lyrics Aug 15 20:30:57 that being the case, would webview be the better route? Aug 15 20:31:34 a WebView is just a GUI element used to display normal HTML pages in your app Aug 15 20:32:07 Hi, I am developing an application that checks users Prepay mobile credit. I want to warn the user when their credit is about to expire (based on fetched and cached usage data). Should I use an AlarmManager to perform this? Aug 15 20:32:28 gummylick: The reason I asked if that was what you used is that you need to explicitly allow javascript if you use a WebView Aug 15 20:32:53 ALso I see no many different solutions, some directly use notification alerts from a BroadcastReciever, others spawn a Service which does the same. Is a service even necessary? Aug 15 20:33:04 I have a quick question regarding sensor event listener, can I have it run on a separate thread? Aug 15 20:33:06 *so many Aug 15 20:33:34 http://stackoverflow.com/questions/18260232/failure-install-failed-older-sdk if anyone has an answer to this that would be great Aug 15 20:34:07 ooooo ok Aug 15 20:34:18 hmm looking up php json ai, seems doable too Aug 15 20:34:27 a Aug 15 20:34:36 thanks for the help, lemme see which will workout best for me! Aug 15 20:34:39 How can i print in a text view with a service Aug 15 20:36:21 k Aug 15 20:38:43 hmm, my gradle build works fine from the command line but fails in AS. Aug 15 20:39:19 awesome Aug 15 20:39:25 one thing i notice already; gradle is slow - but from command line & using daemon mode its OK; gradle builds from AS are unbearably slow Aug 15 20:39:52 daemon mode is the only way to make gradle remotely usable Aug 15 20:39:59 AS doesn't use daemon mode by default Aug 15 20:40:01 you have to enable it Aug 15 20:40:04 OH NOES Aug 15 20:40:12 should be in the plugin settings Aug 15 20:40:18 but i have it it my ~/.gradle … ok Aug 15 20:40:21 lemme check , thx Aug 15 20:40:41 dunno about gradle, but intellij's plugin settings for other things controls server mode, I assume it'd be the same for its gradle plugin Aug 15 20:40:57 https://gist.github.com/pfn/6238004 Aug 15 20:41:00 this is looking much nicer... Aug 15 20:41:34 guys, you's any suggestions for my question above? Aug 15 20:41:46 or does #android take these kid of questions also/ Aug 15 20:42:04 you never asked a question Aug 15 20:42:16 you spewed a fragment Aug 15 20:42:31 <|0xD34D|> there were two questions in those spewed fragments :P Aug 15 20:42:43 i don't see daemon mode in AS gradle properties Aug 15 20:42:51 g00s, guess it doesn't support it :-/ Aug 15 20:43:00 VM options … Aug 15 20:43:07 lemme see if i can do it that way Aug 15 20:43:45 [21:32] Hi, I am developing an application that checks users Prepay mobile credit. I want to warn the user when their credit is about to expire (based on fetched and cached usage data). Should I use an AlarmManager to perform this? Aug 15 20:43:49 [21:32] ALso I see no many different solutions, some directly use notification alerts from a BroadcastReciever, others spawn a Service which does the same. Is a service even necessary? Aug 15 20:43:58 [21:33] *so many Aug 15 20:46:24 I have a question about activities and fragments. I'm having a problem in that I'm using a fragment transaction to add an initial fragment in my activity onCreate() method. However when the activity is later re-created on a configuration change, the fragment is added again and screws up UI. Is onCreate() the wrong place to add the initial fragment? Aug 15 20:46:51 pfn that snippet you posed above, is that what a typical sbt build looks like ? Aug 15 20:46:57 g00s, no Aug 15 20:46:59 phew Aug 15 20:47:05 g00s, the ArbitraryProjectPlugin is a new plugin I'm writing Aug 15 20:47:14 the first part is pretty much typical, but super-advanced Aug 15 20:47:25 anyone have a recommendation for capturing and recording android video from a device? Aug 15 20:47:40 I saw this black magic design stuff but I read somewhere that it only works in portrait (not sure how old that info is) Aug 15 20:47:43 g00s, basically, the first part lets you pull volley from aosp, and build it as a library project and automatically import it into the output project apk Aug 15 20:47:53 (the samplebuild object) Aug 15 20:48:19 g00s, you can't do that with any other build system Aug 15 20:48:23 period Aug 15 20:48:35 cool Aug 15 20:49:50 the second object is the "plugin" I'm writing to enable it Aug 15 20:51:17 sounds like emerge :) Aug 15 20:51:48 'cept you can't build android apps with emerge Aug 15 20:54:30 yey, i added '--daemon' to the AS gradle plugin args; and the tools spew out a GradleConnectionException Aug 15 20:54:38 yeah, fuck this Aug 15 20:54:48 i'll check in 6 mos from now Aug 15 20:54:48 * pfn says sbt... Aug 15 20:54:58 you could be using sbt happily now Aug 15 20:57:30 nobody likes Ant and macrodefs to manage third party repos? Aug 15 20:57:35 nseidm1, why? Aug 15 20:57:41 you can't even build with aars with ant Aug 15 20:58:07 I use ant and update libs with git pulls using macros Aug 15 20:59:45 Thorbear - it worked!! Aug 15 20:59:47 nasty Aug 15 20:59:53 naw Aug 15 20:59:57 nseidm1, you sound like a good sbt candidate, try it Aug 15 21:00:03 :-) Aug 15 21:00:03 i'm just gonna use a webview and launch a small custom lyric search in there Aug 15 21:00:09 but for now gotta head home Aug 15 21:00:10 thanks! Aug 15 21:02:46 pfn thanks for the tip! the ATT cable worked. Aug 15 21:02:57 like magic Aug 15 21:03:03 yeah... I dunno why, microusb cables are super shitty Aug 15 21:03:06 they fail so quickly Aug 15 21:03:24 the connectors are supposed to be rated for some insane number of insertions.... Aug 15 21:05:18 well the actual cable of this one seems like it won't last long. It's really stiff and holds a bend as if it's made of solid wire Aug 15 21:05:41 I doubt it's the cable, I think it's the connector, but who knows Aug 15 21:06:06 well, it was a good tip anyway. Dunno why it works for my HTC though and not the nexus s Aug 15 21:06:28 * pfn shrugs Aug 15 21:06:39 maybe the nexus s' connector is stricter Aug 15 21:06:41 and it's failing Aug 15 21:11:45 nexus s is older, it undoubtedly has gone through more insert cycles Aug 15 21:15:44 trying to replace a RelativeLayout in my activity using "content = (RelativeLayout) getLayoutInflater().inflate(R.layout.browser, null);" but it doesn't seem to be doing anything, much less erroring. recommendations? Aug 15 21:16:41 maybe true pfn Aug 15 21:16:49 no idea how old this one is… just got it off ebay Aug 15 21:17:32 Komak57, content = inflate won't replace anything... Aug 15 21:17:52 hmmm Aug 15 21:20:28 Major newb here. Couple of questions, I have a basic hello world ANdroid project. 1. I keep reading that a build.xml file should have been generated but I don't see one. 2. Is it possible to have the build system pickup source files outside of src? Perhaps in a relative directory beneath the Android project's folder? Aug 15 21:20:51 palithius, android update project will create build.xml Aug 15 21:21:12 palithius, project.properties, src.dirs accepts (semi-)colon delimited paths Aug 15 21:21:35 or was it source.dir Aug 15 21:21:36 I forget Aug 15 21:21:44 anyway, having multiple source directories is asking for trouble Aug 15 21:21:44 ok I'll Google that! thanks! Aug 15 21:21:48 why? Aug 15 21:21:53 because, it is Aug 15 21:22:10 good bye, will return in 10 hours approximately, so, til now: thx for all Your time and affort, this channel is really friendly and not so "read more" orientated ( though it is right ) keep on, i am going forward to like java more and more ( and this is from a c/c++/c sharp developer)....god night Aug 15 21:22:14 +o Aug 15 21:22:26 if you develop in c# Aug 15 21:22:29 there is nothing to like in java Aug 15 21:22:33 seriously Aug 15 21:22:51 java is such a stagnant language, and it's unbelievably cumbersome Aug 15 21:22:53 the oo approach is well implemented Aug 15 21:23:04 +1 @pfn Aug 15 21:23:09 the rt library is its only redeeming quality Aug 15 21:23:14 barely Aug 15 21:23:36 iimagine, i am used to use .net vb, .net c sharp , abao Aug 15 21:23:41 abap Aug 15 21:23:45 c# is awesome Aug 15 21:23:59 if you are well-versed in c#, you really have nothing positive to look forward to in java Aug 15 21:23:59 c sharp is really nice Aug 15 21:24:13 i MUST develop in java Aug 15 21:24:18 so you say Aug 15 21:24:24 xamarin is, in this case, no benefit Aug 15 21:24:24 * pfn avoids it when possible Aug 15 21:25:13 java is not just an iland, is a book title Aug 15 21:25:29 huh Aug 15 21:25:32 thex missed : it is also a disease Aug 15 21:26:40 pfn: I'm a bit confused. Is Eclipse using ANT to build the Android package? It builds the package, and yet there is no build.xml. I understand what you're saying about generating the xml in the command line, but I figured Eclipse was creating build.xml and then spwaning ant. Aug 15 21:26:58 palithius, no, eclipse builds using its own thing Aug 15 21:27:05 eclipse does not build with ant Aug 15 21:27:06 let us come back to facts. runtime is bad. function pointers are missing, package organization is strange, one class per file is limiting encapsulation, BUT after all it is cool ... :-P Aug 15 21:27:13 pfn: ah, ok! thanks Aug 15 21:27:16 java runtime is not bad Aug 15 21:27:19 patently false Aug 15 21:28:00 package organization isn't strange, nor is the one-class-per-file Aug 15 21:28:05 and it's only one-public-class-per-file Aug 15 21:28:10 and a top-level one at that Aug 15 21:28:27 runtime is bad. like flash. while bringing a not developed embryo to the world ? Aug 15 21:28:36 while = why Aug 15 21:28:41 huh Aug 15 21:28:47 there is no runtime that competes with the jvm Aug 15 21:28:48 period Aug 15 21:28:58 so no, runtime is not bad Aug 15 21:29:09 .net/clr, meh Aug 15 21:29:17 ok ok ok , i must admit : java on dalvik is f....ed up Aug 15 21:29:39 dalvik is a different story, and java is not the only language that runs on dalvik Aug 15 21:29:47 and you're confusing issues now Aug 15 21:30:01 could be Aug 15 21:31:04 but java is really good developed LANGUAGE, PARADIGM, IMPLEMENTATION ON OO, but a bad runtime box Aug 15 21:31:15 ok, now you're completely wrong Aug 15 21:31:18 you have it backwards Aug 15 21:31:23 what ? Aug 15 21:31:31 java is a terrible language, paradigm, and implementation of OO, but the best VM runtme Aug 15 21:31:43 so You are very wrong Aug 15 21:32:03 so says mr vb# developer Aug 15 21:32:17 and the comments from being "acquainted with c#" Aug 15 21:32:23 yeah, you're not right Aug 15 21:32:30 see you in 10 hours, kthxbye Aug 15 21:32:43 in the implementation i am only missing function pointers and pointers Aug 15 21:34:08 I wonder if and when Android will support java 8. Aug 15 21:34:10 lets talk in 10 hours ( and do not think , that i love java..... i hated it for 7 years.... and now i MUST deal with it, I avoided it all the time ). Good night, pfn Aug 15 21:34:31 TheTrash, what does it matter? Aug 15 21:34:58 It'll kinda have function pointers And other fancy constructs. Aug 15 21:35:04 First class functions, anyhow. Aug 15 21:35:07 hello anyone used https://github.com/chrisbanes/ActionBar-PullToRefresh ? Aug 15 21:35:07 it doesn't support any java7 features Aug 15 21:35:21 don't hold your breath for java8 Aug 15 21:35:34 I'm not, believe me :P Aug 15 21:35:57 and if you want java8 features, there are alternatives available today that completely eclipse java8 features Aug 15 21:36:05 that run on android Aug 15 21:51:13 as Aug 15 21:51:32 How can i go to a BaseActivity from my activity Aug 15 21:54:39 next version of Android will be Java 7 if AOSP is to be believed Aug 15 21:55:04 yay... for unusable code Aug 15 21:55:39 so if AS crashes, i wonder if I should submit a bug report with the crash log? or are they already collecting those metrics like FF ? Aug 15 21:55:41 does java 7 even have any features? Aug 15 21:55:49 dunno which require new bytecode Aug 15 21:55:56 there's only one new bytecode Aug 15 21:56:02 invokedynamic, multi-catch, string-switch Aug 15 21:56:06 you can switch on string and multi catch without Aug 15 21:56:44 Hi Jake, I use your lib in my project :-) Aug 15 21:57:16 pfn i have a RunningTaskInfo i want to open the activity which is in the getTask(2) how can i open this activity , i hope you could help me in this Aug 15 21:57:23 there is Try Resource also yeah? Aug 15 21:57:26 JakeWharton: stuff in the library Aug 15 21:58:10 p_l can you tell me how can i open a activity from my activity when i have it as recentTasks.get(3).topActivity Aug 15 21:59:26 JakeWharton: you happy enough with your lib been mentioned on the main README.md? https://github.com/DamienOReilly/My3Usage Aug 15 21:59:53 JakeWharton if my gradle build does a println, where can i see that in AS ? Aug 15 22:00:16 p_l Aug 15 22:00:20 g00s: maybe the event log Aug 15 22:00:22 dunno Aug 15 22:00:29 Damo2k: that's awesome. thanks Aug 15 22:00:34 Oh and I'm also going for the OCJP6 -> OCJP7 upgrade cert, so I have to learn about all the new features in Java 7 Aug 15 22:01:35 JakeWharton: no problem, I also noticed Google HangOuts and Google Play Music use your library!! Aug 15 22:01:45 Can anybody help me in opening a activity with this info recentTasks.get(0).topActivity Aug 15 22:03:11 anyone Aug 15 22:03:51 JakeWharton: java 6 language does not support switch on strings and multi-catch, surely? Aug 15 22:04:05 correct Aug 15 22:04:11 Xabster: but did those require new bytecode? Aug 15 22:04:16 or just a smarter compiler? Aug 15 22:04:20 i don't think they do Aug 15 22:04:25 also correct Aug 15 22:04:42 try-with-resource doesn't need new byte code, does it? Aug 15 22:04:51 it's just a syntax for autoclosable Aug 15 22:05:07 i'm unsure of that one, but sounds reasonable Aug 15 22:05:47 chinu__: want to learn something? Aug 15 22:06:36 JakeWharton: did google contact you about your ActionBar library ? Aug 15 22:06:43 nope Aug 15 22:07:28 still pretty cool they used it. I believe they are working on their own ActionBar compatibility library? Aug 15 22:07:42 yeah it came out a few weeks ago Aug 15 22:07:45 they've already released it Aug 15 22:08:03 JakeWharton: http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities Aug 15 22:08:21 I doubt its any way near stable enough for them to use it in their trademark apps though Aug 15 22:08:46 It must be a good feeling though to know they used your library though ? Aug 15 22:08:48 Damo2k: or maybe different teams operate on different release cycles Aug 15 22:08:57 evanc: true Aug 15 22:09:29 Damo2k, appcompat-v7 Aug 15 22:09:41 i don't see any mention of the syntax differences, instead only bugs/unexpected behaviour because some things act differently Aug 15 22:09:41 * pfn has been using it pretty well Aug 15 22:10:43 supporting pre-API 14 is a younger man's game Aug 15 22:10:46 Xabster: maybe you will like: http://radar.oreilly.com/2011/09/java7-features.html Aug 15 22:10:59 Damo2k, huh Aug 15 22:11:15 java 7 language enhancements Aug 15 22:11:30 we know about them, have you read what we talked about? Aug 15 22:11:49 Can i ask a question? Aug 15 22:11:59 that's kinda the point of this channel Aug 15 22:12:02 mossypne: everyone gets one question, so I guess that one was yours. Aug 15 22:12:05 too bad! Aug 15 22:12:18 Xabster: I can.. maybe Aug 15 22:12:27 Damo2k: can what? Aug 15 22:12:48 read what we talked about Aug 15 22:13:21 I'm new to android dev and was wondering if its possible for me to provide an option for the user to be taken to the amazon store to purchase a product they have chosen, but be taken using my affiliate link. Like i want them to be able to select like a book and then the app will give them the option to go to the amazon store Aug 15 22:13:36 ok, my sbt plugin happily works on sbt-0.13, too... time to pull a nice espresso shot Aug 15 22:19:52 I need to load an image dynamically from my resource folder, and i have a string representing the name. I was hoping to do: "Drawable d = Drawable.createFromPath("res/drawable/"+key.toLowerCase()+".png");" but no luck. suggestion? Aug 15 22:20:31 that's not how it works Aug 15 22:20:53 Resources#getDrawable(int) Aug 15 22:21:02 get your resources with Context#getResources() Aug 15 22:22:25 and what if I need to obtain a Drawable resource by name? Aug 15 22:22:36 in the res/drawable hierarchy Aug 15 22:23:59 Map Aug 15 22:24:22 you know all the drawables at compile-time so just map them to their string representations Aug 15 22:24:36 less error-prone than actually looking up by string Aug 15 22:25:06 I've been trying for a few days to use this in my app https://github.com/NightWhistler/HtmlSpanner Aug 15 22:25:09 I'm creating a universal template for drag-and-drop friendliness Aug 15 22:25:25 lazy use Resources#getIdentifier() Aug 15 22:26:34 I've finally been able to build a jar, but when I run my app, nothing appears in the activity using it, and in the logcat, there's several warnings on the form VFY: unable to resolve virtual method (...) Aug 15 22:29:50 I've tried searching for information on it, but most solutions are just shooting in the dark Aug 15 22:30:07 com.google.android support-v4 r7 Aug 15 22:30:23 any way i can easially have maven pull down newer version for me? Aug 15 22:30:29 r7 seems to be latest in public repos Aug 15 22:31:04 sweet, works now, thanks Aug 15 22:31:23 could the fact that the external jar I'm using is compiled with maven be the cause of this? Aug 15 22:36:19 How do people type fancy lines to show their project structure on Stackoverflow? Aug 15 22:36:32 Is there some awesome website that does it for me? Aug 15 22:39:39 hi how can i open a System Message activity from a button in my app ? Aug 15 22:42:55 chinu__: that makes no sense Aug 15 22:43:59 evanc i mean like i have a button saying send message in my activity so how should i open the message app with that app using intent ? by passing the class of the message app ? Aug 15 22:44:30 chinu__: that's one way Aug 15 22:44:43 I suggest you search for "android send sms intent" Aug 15 22:44:53 or "android open sms app intent" Aug 15 22:45:24 i searched but nothing is working Aug 15 22:45:26 i tried this Aug 15 22:45:52 Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setClassName("com.android.Settings", recentTasks.get(1).topActivity.getClassName()); Aug 15 22:46:39 why would sending an SMS go to com.android.Settings (which isn't even a package) Aug 15 22:46:55 you may have tried searching, but you didn't try reading Aug 15 22:48:18 chinu__: literally the first three results have code that you can copy and paste which will do what you want. I suggest you try searching for "android send sms intent" again and come back after you've tried to reason your way through those solutions. Aug 15 22:49:04 has anyone written a gradle Exec task and gotten it to work in AS :| Aug 15 22:49:16 crap, what the fuck is the matter with this thing Aug 15 22:49:28 its like a textbook example that works fine on the command line Aug 15 22:49:35 hi Aug 15 22:49:52 im trying to setup a develop enviroment for android Aug 15 22:50:08 me too Aug 15 22:50:13 and i've been at it since 2009 Aug 15 22:50:15 but im overwhelmed by error message of ADT Aug 15 22:50:25 please, can you help me? Aug 15 22:51:19 plotino you're in luck :D http://shop.oreilly.com/product/0636920025320.do Aug 15 22:51:37 presumably you have tried the online docs already Aug 15 22:51:49 yes Aug 15 22:52:01 what are u reccomanding me? Aug 15 22:52:42 you can ask questions here but you need to be more specific about the ADT messages Aug 15 22:52:42 for me android is open source Aug 15 22:52:51 in dont want buy a book for it Aug 15 22:52:59 ok Aug 15 22:53:06 g00s, sbt, intellij, quit struggling Aug 15 22:53:17 let me try again and i will forward you the error messages Aug 15 22:53:45 plotino put them in pastebin and share with the channel Aug 15 22:53:51 ok Aug 15 22:54:05 just for info Aug 15 22:54:10 im following the link Aug 15 22:54:12 http://www.badllama.com/content/installing-android-sdk-debian-squeeze-scratch Aug 15 22:55:05 oh my, i haven't used nomachine in a while Aug 15 22:55:20 bad llama indeed ! Aug 15 22:56:28 so please g00s recommand some good link to follow woth debian .. Aug 15 23:00:09 ordering up the 45mbps uverse service Aug 15 23:00:10 mmmm Aug 15 23:00:20 with a /30, mmm Aug 15 23:00:31 or is that /29 Aug 15 23:00:50 plotino don't use debian, sorry. Aug 15 23:01:17 :( Aug 15 23:01:22 a /29 Aug 15 23:01:36 i think the timing of this AS book is strange; they probably should have waited until things were more baked O.o Aug 15 23:01:49 AS book? Aug 15 23:01:52 they're books, they're always out of date Aug 15 23:01:57 that's the nature of the game Aug 15 23:02:00 canadiancow http://shop.oreilly.com/product/0636920025320.do Aug 15 23:02:30 just came out today Aug 15 23:02:38 lol Aug 15 23:02:43 that's why books are dumb Aug 15 23:03:05 unless they're written in conjunction with new stuff Aug 15 23:03:15 like if tor and xav wrote a book while working on AS/gradle/etc Aug 15 23:04:51 46/6mbps service, I can't wait Aug 15 23:18:21 * g00s rages! Aug 15 23:18:26 dragged AS to the trash Aug 15 23:18:31 installed plain idea again Aug 15 23:18:36 now IT win't fucking start up at all Aug 15 23:19:20 just 'IntelliJ Idea' menu in mac menubar, with 'About' and 'Quit' Aug 15 23:19:30 no windows, anything christ Aug 15 23:20:23 i think i need to reinstall the OS XD Aug 15 23:23:28 so the eclipse ADT can export gradle stuff, can it import it also ? Aug 15 23:23:36 if I ever got my hands on a mac, the first thing I'd do is install another os Aug 15 23:23:52 hehe Aug 15 23:24:15 Maestro isn't it getting harder to do that? Aug 15 23:24:52 if that is the case, then I would politely ask for another machine Aug 15 23:25:16 where do you live, that you ask for machines :) Aug 15 23:25:43 I'm saying ask for another, because the mac would have to be given to me Aug 15 23:26:07 forgive me for having principles, but I would never buy one myself Aug 15 23:26:54 Maestro: you're a free software proponent i take it? Aug 15 23:29:44 g00s: do you use eclipse? Aug 15 23:31:32 I hate mac :p Aug 15 23:31:36 I'd reinstall something else on it, too Aug 15 23:31:40 Napalm i used to. it worked fine for me Aug 15 23:32:16 yea, im trying to move away from it to android studio in general.. when i can find the time Aug 15 23:32:30 i dont think ADT 22 is 'gradle aware' though Aug 15 23:32:35 beside export Aug 15 23:32:51 the only option in Eclipse should be to export your project to a better IDE's format Aug 15 23:32:57 hehe Aug 15 23:32:58 its weird, ever since tools v21-v22 the android sources dont seem to be linked in Aug 15 23:33:03 there were automatic before Aug 15 23:33:12 after about v17-v18 Aug 15 23:33:16 funkbox: to a certain degree, but I'm more of a opponent of all of apples proprietary solutions to everything Aug 15 23:33:17 hi all, i have a question that might be stupid. what /is/ a context? is it just a certain type of object? if i getApplicationContext() is that just an instance of Application? Aug 15 23:33:30 now i cant even get sources to link in Aug 15 23:33:33 actually, i've been having the same problem as codebutler … my adb keeps disconnecting, crashing, or hanging Aug 15 23:33:35 carbohydrate: yes Aug 15 23:33:43 are there any big differences between idea and android studio? Aug 15 23:33:53 Xabster: almost none. AS is updated more frequently Aug 15 23:34:05 right, but that's because it's new and beta :) Aug 15 23:34:18 what about an activity context? that is just the activity (so that is why you can pass this as context) hmm Aug 15 23:34:20 AS has been stable enough for us to use exclusively Aug 15 23:34:21 are there any nice to have features that might make me want to have idea AND android studio? Aug 15 23:34:26 i code javase and ee too Aug 15 23:34:32 carbohydrate: yes. essentailly Aug 15 23:34:37 Xabster: probably not Aug 15 23:34:44 Napalm, move to intellij Aug 15 23:34:49 all android studio features will be in intellij 13 Aug 15 23:35:01 the only reason to use android studio is if you do no other java work at all except for android Aug 15 23:35:05 i think the only thing that's diifferent is the UI and the android SDK buttons? Aug 15 23:35:21 no, the only thing that's different is that android studio includes intellij 13 eap features Aug 15 23:35:25 pfn are you sure? i wonder when intellij 13 comes out, does "AS" just become the plugin, and will we only see the plugin update ? Aug 15 23:35:34 okay. so why pass around contexts at all? what is in the context that requires it be passed around so much? Aug 15 23:35:35 no, AS is the *focused* IDE Aug 15 23:35:43 just like the ADT eclipse bundle is the focused eclipse bundle Aug 15 23:35:54 android-only Aug 15 23:36:00 it removes/makes-incompatible crap that isn't for android Aug 15 23:36:03 well ok, but ADT eclipse bundle isn't shipping preview releases of eclipse Aug 15 23:36:11 kinda like pycharm is the python focused ide Aug 15 23:36:13 that's because eclipse doesn't ship ADT Aug 15 23:36:13 carbohydrate: for example theme information. you want to create a dialog but it needs to be the right theme Aug 15 23:36:37 g00s, funkbox: http://blogs.jetbrains.com/idea/2013/05/intellij-idea-and-android-studio-faq/ Aug 15 23:36:40 for instance, heres another one i found, i used to be able to put a blah.jar.properties in libs directory with a single line src=path/to/src and it would link it Aug 15 23:36:46 funkbox: so if you pass in the activity, the activity might have a custom theme, so it would be able to grab that information from it? Aug 15 23:36:46 Is Android Studio a fork of IntelliJ IDEA? Aug 15 23:36:47 No. Android Studio and the Android plugin for IntelliJ IDEA are built from the same code, and all of the changes in Android Studio are, and will continue to be, available in IntelliJ IDEA releases. Aug 15 23:36:49 right, but what i'm saying is, if you are using "AS" /past/ release time of intellij13, do you essentially become user of intellij 14 EAP ? Aug 15 23:36:50 now nothing Aug 15 23:36:52 just doesnt work Aug 15 23:37:07 pfn: really? that's great news Aug 15 23:37:07 g00s, only if AS continues to have features in advance of Aug 15 23:37:12 why would anyone want to do AS then? Aug 15 23:37:20 Xabster, people that do android-only Aug 15 23:37:27 because... less to download? Aug 15 23:37:34 and less clutter Aug 15 23:37:37 i use AS for java as well. it works fine Aug 15 23:37:37 i guess Aug 15 23:37:39 If I’m already a user of IntelliJ IDEA, do I need to switch to Android Studio for Android development? Aug 15 23:37:39 No. Android Studio is focused specifically on Android development and provides streamlined environment and project setup, but otherwise all of its features are available in IntelliJ IDEA. Aug 15 23:37:47 funkbox, that's because your java usage is trivial :p Aug 15 23:37:57 thanks pfn Aug 15 23:38:00 that's great news Aug 15 23:38:03 when i select a class inside "Android Private Libraries".. i just get "The JAR of this class file belongs to container 'Android Private Libraries' which does not allow modifications to source attachments on its entries Aug 15 23:38:08 it's why I refuse to use android studio Aug 15 23:38:09 it's stupid Aug 15 23:38:13 me too, now :) Aug 15 23:38:23 if I really wanted, I'd use 13 EAP Aug 15 23:38:31 pfn: does idea has all the new gradle stuff? Aug 15 23:38:35 but I can live with running monitor Aug 15 23:38:36 was about to test it, but if it's just the clutter of other java features I don't care cause i often use that "clutter" for other purposes Aug 15 23:38:37 yet.. if i look at the Java Build Path properties of the project it shows the correct directory listed as Source attachment Aug 15 23:38:38 carbohydrate, yes Aug 15 23:38:39 very weird Aug 15 23:38:44 carbohydrate, it has the jetgradle plugin by default Aug 15 23:39:09 it's also called "ANDROID STUDIO" which kind of fits in more with the android stuff Aug 15 23:39:09 okay, so when you include the android plugin, that would be supported by anything that supports gradle Aug 15 23:39:26 but who cares about gradle... don't use it :p Aug 15 23:39:44 i like it :-) Aug 15 23:39:50 * pfn doesn't Aug 15 23:39:54 it's slow as shit for building Aug 15 23:40:27 it's faster than whatever eclipse was doing when i used it.. and i had some weird bug where eclipse would throw a dalvik error 49 times out of 50 Aug 15 23:40:41 eclipse builds faster than gradle... Aug 15 23:40:45 I don't see why it was slow for you... Aug 15 23:40:52 i actually had to use autohotkey to make a script to automatically click the buttons when it failed Aug 15 23:41:11 i dunno. i had ABS and some third party color picker and it took forever Aug 15 23:41:19 wut Aug 15 23:41:19 ... instead of figuring out what the problem actually was? :p Aug 15 23:42:12 JesusFreke: i tried i really did. there were no errors other than the one that came up. there were so many different newsgroup articles, forum posts, stack overflow posts with the error and a million solutions, but none worked Aug 15 23:42:24 i am sure i could have figured it out, but i eventually gave up Aug 15 23:42:30 update ADT/build-tools Aug 15 23:42:36 usually the cause of those kinds of issues Aug 15 23:42:54 like, aapt only got some performance boost recently for that id caching thing or other, right? Aug 15 23:43:09 i did. i even tried a fresh ADT download and i manually imported the three projects (mine and the two libs) and i eventually would have the problem again Aug 15 23:43:35 trust me when i say it was a weird ass problem, i am 100% sure was caused by something on my side, but i just couldn't tackle it Aug 15 23:43:42 * pfn shrugs Aug 15 23:43:48 anyway, i don't wanna argue, just happy now cause gradle doesn't give me the issue :-) Aug 15 23:43:59 try my sbt plugin, it's better Aug 15 23:44:05 gateway drug to using scala on android ;-) Aug 15 23:44:08 where, i'm up for anything Aug 15 23:44:16 https://github.com/pfn/android-sdk-plugin Aug 15 23:44:32 it is very much like a drug Aug 15 23:44:37 makes you feels good but fucks you all up Aug 15 23:44:44 cool i'll check it out. i've heard a little about like scala but i've never used it Aug 15 23:44:54 it's just base64-encoded Java Aug 15 23:45:00 JakeWharton, not at all Aug 15 23:45:03 i thought that was perl? Aug 15 23:45:20 that's what people who enjoy writing java code say Aug 15 23:45:28 perl is base64-encoded BASIC Aug 15 23:45:49 i don't appreciate your overgeneralization of Java developers Aug 15 23:45:56 i am beginning to appreciate java's wordiness lately Aug 15 23:46:23 * pfn has been writing java since 1996 Aug 15 23:46:32 enough experience with it to generalize it to being shit Aug 15 23:46:32 i wasn't even born in 1996 Aug 15 23:46:57 I like the platform, but the language... it needs massive work Aug 15 23:48:01 the only disappointment when i learned java was how generics work. its petty but it really irritated me Aug 15 23:48:10 erasure is necessary and good Aug 15 23:48:14 there's really nothing wrong with it Aug 15 23:48:20 the problem with it is java's lack of type inference Aug 15 23:48:21 wtf... Aug 15 23:49:12 yeah i've dealt with it, just really frustrating to me at first. but then again so was python's whitespace thing now and it seems like the most natural thing in the world after i used it a few years Aug 15 23:49:34 figure it out.. "\.metadata\.plugins\org.eclipse.jdt.core\.org.eclipse.jdt.core.external.folders" had become corrupt Aug 15 23:50:17 hashtagno Aug 15 23:51:01 Napalm, really, ditch that eclipse already :p Aug 15 23:51:06 es no bueno Aug 15 23:51:16 i know i know Aug 15 23:52:19 i've had equal problems with both. i can make intellij crash on the drop of a dime Aug 15 23:52:43 the only thing that actually works, is vim Aug 15 23:52:44 that's your computer having problems Aug 15 23:52:45 hehe Aug 15 23:52:54 you need to stop browsing those malware sites Aug 15 23:52:59 pfn no, Fn-Delete project is not my computer :P Aug 15 23:53:08 doesn't crash for me Aug 15 23:53:10 * pfn shrugs Aug 15 23:53:16 then again, I don't have this fn-stupid button Aug 15 23:53:20 i'm using 10.7 tho Aug 15 23:55:04 let's see if lastpass works better now Aug 15 23:55:56 is there a way in intellij to just disable all plugins? Aug 15 23:56:22 i'm clicking through every one and getting those dependency warning dialogs, there has to be a better way Aug 15 23:56:40 just unclick them all, it's not that many Aug 16 00:03:58 how many plugins do you have that makes this a pain? I have like 2 dozen plugins at most Aug 16 00:05:27 and for that matter, there's that disable all button... Aug 16 00:07:54 disable all? don't see that. i was in the plugin dialog Aug 16 00:08:12 oh well, done now Aug 16 00:08:58 file -> other settings -> plugins Aug 16 00:09:03 * pfn shrugs Aug 16 00:22:31 ah, the curse of the end of the day, everyone goes away... Aug 16 00:23:14 its just you and me pfn :D Aug 16 00:23:23 actually, heading to the library soon Aug 16 00:23:32 so... since you're gonna use intellij, how can I convince you to use my sbt plugin? Aug 16 00:23:44 heh ! Aug 16 00:23:48 or vim Aug 16 00:23:57 really, if you're going to be using vim, sbt is absolutely ideal Aug 16 00:24:15 you /cannot/ have a better environment for developing with vim if you use sbt with it Aug 16 00:24:27 like, you get eclipse's instant feedback while doing shit in vim Aug 16 00:24:31 or sublime, or whatever Aug 16 00:24:46 it'd be nice to have it running as a pipe to make errors clickable, but whatever Aug 16 00:24:53 vim doesn't support that, unfortunately Aug 16 00:28:27 I guess it'd be trivial to make a plugin to spit out current compile output into a text file, and have vim cat the file as makeprg Aug 16 00:28:36 then you could just :cc errors Aug 16 00:31:55 what scares me away from the sbt, is that i don't understand scala at all, and the sbt recipes look like something a wizard would conjure up Aug 16 00:32:12 right now i'm making a 2 plugins for gradle, and its been pretty easy Aug 16 00:32:25 now , the android gradle plugin , is something else :P Aug 16 00:32:40 in fact, i often hear newby advice to scala people to avoid sbt Aug 16 00:33:05 somebody questioned in a list whether sbt was holding scala adoption back (no idea) Aug 16 00:33:38 if i was using scala, i would definitely be more interested Aug 16 00:33:57 and the way i do things, i'm going to want to much around enough that i will have to know scala Aug 16 00:34:04 *muck Aug 16 00:35:00 thankfully Groovy , although being lame, is mostly trivial Aug 16 00:38:51 keep getting "Activity blahblah.splash has leaked IntentReceiver blah.VideoView" errors when trying to open my settings from blahblah.Categories, am I missing something here? Aug 16 00:38:51 scala completely interops with Java, and you can write it completely in Java style Aug 16 00:39:26 you saw the groovy creators post re scala... Aug 16 00:39:37 yeah that was funny Aug 16 00:40:19 anyway, there's no reason to avoid sbt, simple builds just work, just like maven does Aug 16 00:40:57 sbt is the easiest way to bootstrap any project, you, don't even have to create a build file Aug 16 00:41:16 just drop some files in a directory and run sbt Aug 16 00:41:33 it'll build and runs for you, no configuration needed Aug 16 00:43:48 what about autotools Aug 16 00:43:52 haha Aug 16 00:44:08 fucking autotools, just had to fight with those Aug 16 00:44:14 created an invalid config.h Aug 16 00:44:32 building software is messy Aug 16 00:44:46 there is always some exception Aug 16 00:44:52 'there are no normal builds' Aug 16 00:45:21 java is quite homogeneous Aug 16 00:45:47 does ActivityManager look at the manifest to see what to launch when your app starts? maybe i should just look at the code Aug 16 00:46:10 huh Aug 16 00:46:37 your launcher link is your main activity intent Aug 16 00:46:54 launcher determines that from manifest Aug 16 00:47:39 that makes sense. what does activitymanager to then? is it the one responsible for actually starting onCreate and stuff? Aug 16 00:54:21 pfn what do you have cooking for the weekend. any new apps ? Aug 16 00:54:38 oh its only thursday ha Aug 16 00:54:41 a nice roast Aug 16 00:54:47 and an app with roast recipes Aug 16 00:54:48 :) Aug 16 00:54:51 ugh it's only thursday Aug 16 00:54:55 home remodeling work Aug 16 00:54:56 thanks for reminding me of that. Aug 16 00:54:58 IAP: beer to pair with your roast Aug 16 00:58:40 one thing that is kinda nice about gradle, is that your plugin can begin life as a task, a collection of tasks, and then into a plugin in the same build file; when it gets time to make it modular you move it out. speeds development up Aug 16 00:59:23 same with sbt Aug 16 00:59:28 thats nice Aug 16 01:00:38 what I showed you before was hacking entirely in the build file Aug 16 01:00:46 then I removed the latter part into my plugin Aug 16 01:10:25 oh man, this was fun http://tirania.org/blog/archive/2013/Aug-15.html Aug 16 01:12:15 basically, coroutines Aug 16 01:12:17 big whoop Aug 16 01:12:31 python's had generators for quite some time now Aug 16 01:12:38 and you can do the same thing with them Aug 16 01:12:47 in some versions of javascript, you can do that as well (mozilla/firefox) Aug 16 01:13:29 oh sure, but for those of us using plain java :P on a callback happy platform :D Aug 16 01:14:28 so stop using plain ol' java Aug 16 01:14:39 haha Aug 16 01:20:38 not that scala has a good implemention for coroutines either, I think Aug 16 01:20:46 but they have better patterns... Aug 16 01:28:42 when they say services run in the ui thread, does that mean that while they are running code if there is ui code running it might be running simultaneously, just switching back and forth, or would it be impossible for a method in a service and activity to run at the same time, one would wait for the other? Aug 16 01:28:54 first of all, services don't actually execute any code Aug 16 01:29:04 services are lifecycle containers, and as such, they have lifecycle callbacks Aug 16 01:29:10 all of those lifecycle callbacks execute on the main thread Aug 16 01:29:30 an app only has 1 main thread Aug 16 01:29:37 so all lifecycle methods occur sequentially Aug 16 01:29:58 now, if you want to make your service do something interesting, you'll usually want to explicitly have it work on another thread Aug 16 01:30:03 by using a thread pool, asynctask, whatever Aug 16 01:30:45 so that is why if a service does too much, your ui will hang, because the ui code will not execute until the service code is done Aug 16 01:30:54 "service does too much" Aug 16 01:31:01 a service itself is only its lifecycle callbacks Aug 16 01:31:05 if you do too much in those callbacks, yes Aug 16 01:31:27 ok Aug 16 01:31:56 but why would the ui hang? scrolling a list for example, does not result in any callbacks in my activity - or does it? Aug 16 01:32:22 scrolling a list results in lots of calls per second Aug 16 01:32:27 and each of those calls take just a couple ms Aug 16 01:32:31 so there's no hang Aug 16 01:32:33 and they are all on the ui thread? Aug 16 01:32:36 yes Aug 16 01:33:01 while the discrete tasks of scrolling the list is executing, nothing else can happen Aug 16 01:33:12 ok - so who is in charge of managing who is running at once? is there some sort of scheduler that keeps track of a queue of stuff to do Aug 16 01:33:15 they just execute quickly enough that nothing appears to be blocked Aug 16 01:33:20 it's a messagequeue/handler Aug 16 01:33:36 i see Aug 16 01:33:41 there's nothing to schedule Aug 16 01:33:46 you put it in the queue, and execute when it gets to it Aug 16 01:33:58 this is such a bizarre concept to me Aug 16 01:34:20 it's the same across all event-based UI frameworks Aug 16 01:34:31 swing, awt, .net, gnome, motif, win32, etc. Aug 16 01:34:32 yeah, but what is responsible for pulling from the queue - some very low level android process? Aug 16 01:34:40 the main thread's looper Aug 16 01:35:05 http://developer.android.com/reference/android/os/Looper.html Aug 16 01:35:19 so one of those? Aug 16 01:35:30 the main thread is a looper Aug 16 01:35:48 or it has a looper, I forget the relationship Aug 16 01:36:24 okay Aug 16 01:36:46 that actually makes a lot of sense Aug 16 01:36:56 I would tend to say "is a" I think. Aug 16 01:37:36 Because it's actively running in the Looper.loop() method (or whatever the main loop is called) Aug 16 01:39:12 yay, it is loop() Aug 16 01:39:18 memory FTW Aug 16 01:42:14 So when people complain about long-running services, that doesn't make sense unless they literally are always executing code in one of the callbacks? Aug 16 01:42:28 huh? Aug 16 01:42:31 how is that relevant Aug 16 01:42:38 people complain about long-running services because they take up memory Aug 16 01:42:43 and might do shit in another thread that eats up cpu Aug 16 01:42:49 i see Aug 16 01:43:06 but my point is that just because it is 'running' doesn't mean it is doing anything Aug 16 01:43:12 maybe, maybe not Aug 16 01:43:16 who knows Aug 16 01:43:33 is there a way to figure it out? like how long is has been running vs how long it has been executing? Aug 16 01:44:05 no Aug 16 01:44:35 each process has user-time associated with it Aug 16 01:44:40 but you can't infer if that's service time or not Aug 16 01:46:53 i wonder how accurate recording a timestamp in onCreate and then keeping track in the other callbacks and then calculating it all in onDestroy would be Aug 16 01:48:54 what's the point of this? Aug 16 01:49:02 and not accurate Aug 16 01:53:00 no point really Aug 16 01:53:11 i'm just trying to learn as much about this as i can Aug 16 02:03:12 I440r do you think android 5 framework will be in forth ? Aug 16 02:03:33 would be nice Aug 16 02:05:15 would sure beat java because all the coder wannabe's would take one look and go sceamin for mamma Aug 16 02:06:17 hehe Aug 16 02:06:55 tho erm.i would call myself an android coder wannabe Aug 16 02:22:24 hello , is there any way to make virtual ram file on android ? Aug 16 02:22:45 when i save file , it will save into ram Aug 16 02:22:49 not disk Aug 16 02:23:34 why save it, then? Aug 16 02:24:02 JDuke128 memory mapped file ? Aug 16 02:24:08 because of the api gave me that ability Aug 16 02:24:22 MediaRecorder Aug 16 02:24:26 setOutputFile Aug 16 02:24:38 i will record the media to ram temporary Aug 16 02:24:41 then send thru socket Aug 16 02:24:52 i wont save it long time Aug 16 02:24:58 memory mapped file Aug 16 02:24:59 yea Aug 16 02:25:45 odd that it's written to accept String or Filedescriptor and not File or OutputStream Aug 16 02:25:51 nio has memory mapped files, not sure how it could work with MediaRecorder tho Aug 16 02:27:09 for example i will open virtual memory on java side like ; VirtualFile vr = new VirtualFile("/dev/ashmem/xxx",10000000); this will open virtual memory file on path : /dev/ashmem/xxx Aug 16 02:27:39 then on java side MediaRecorder i will give setOutputFile("/dev/ashmem/xxx/xxx.mp4") Aug 16 02:27:43 i want this... Aug 16 02:27:47 oh, never tried that Aug 16 02:27:47 not possible? Aug 16 02:29:09 i think you might be able to fake a FileDescriptor Aug 16 02:29:56 JDuke128: you probably want to use a FileDescriptor Aug 16 02:30:11 keep in mind that FileDescriptors don't necessarily point at files :) Aug 16 02:30:25 they can point at, e.g. a pipe Aug 16 02:32:16 pipe... Aug 16 02:32:18 let me look Aug 16 02:35:30 Alright, applications pretty much ready to send off, just one last thing i'd like to take care of. I have a WebView browser embedded in the project. The customer wants this to load a particularly large web page. Due to the memory limits on older devices, it causes crashes without errors. Anything I can do about this? Aug 16 02:37:31 Alternatively, I've tried my custom HTTPClient loader, and it has about the same results. Aug 16 02:43:19 hi. Aug 16 02:43:55 I have linux x86_64. adb from android SDK doesn't work. what can I do? Aug 16 02:44:41 "doesn't work"? Aug 16 02:44:47 best description ever Aug 16 02:45:00 well, it is build for 32bit system. Aug 16 02:45:11 hello Aug 16 02:45:41 im getting "The import com.google cannot be resolved" when I run "import com.google.android.gms.maps.GoogleMap;" Aug 16 02:46:02 I did install the Google APIs Aug 16 02:46:12 $ android-sdk-linux/platform-tools/adb Aug 16 02:46:13 -bash: android-sdk-linux/platform-tools/adb: No such file or directory Aug 16 02:46:39 $ file android-sdk-linux/platform-tools/adb Aug 16 02:46:39 android-sdk-linux/platform-tools/adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped Aug 16 02:47:19 sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 Aug 16 02:47:24 sudo apt-get install libsdl1.2debian:i386 Aug 16 02:47:28 I don't use ubuntu. Aug 16 02:47:28 never mind Aug 16 02:47:31 apt-get install ia32-libs Aug 16 02:47:35 now I get "The import com.google.android.gms cannot be resolved" Aug 16 02:48:04 hey i got found memoryfile on android Aug 16 02:48:05 http://alvinalexander.com/java/jwarehouse/android/core/java/android/os/MemoryFile.java.shtml Aug 16 02:48:15 I forgot to change the target to android + Google APIs Aug 16 02:48:21 now I get "The import com.google.android.gms cannot be resolved" Aug 16 02:49:34 MDTech-us_MAN: http://developer.android.com/google/play-services/setup.html Aug 16 02:49:59 aha! Aug 16 02:50:40 the toutorial said to install the Google Maps APIs add-on but I could not find it Aug 16 02:50:51 guess they changed the name Aug 16 02:51:32 nope Aug 16 02:51:42 it is already installed Aug 16 02:55:51 Xabster: as per your link: I dont see anything in the 5th step of "Referencing a library project" Aug 16 02:56:38 5th step? Aug 16 02:56:53 which ide do you use? Aug 16 02:57:32 if any Aug 16 02:57:44 eclipse Aug 16 02:57:56 the ADK Aug 16 02:58:10 adt Aug 16 02:58:17 get it right Aug 16 02:58:21 sorry Aug 16 02:58:26 then click on the link that gives instructions on that Aug 16 02:58:57 http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject Aug 16 02:59:09 5th step of that Aug 16 02:59:30 ah, you mean't in eclipse Aug 16 02:59:36 i thought you said the page was missing something Aug 16 02:59:53 eclipse is Aug 16 02:59:55 did you import it? **** ENDING LOGGING AT Fri Aug 16 02:59:57 2013