**** BEGIN LOGGING AT Fri Jun 06 03:00:00 2014 Jun 06 03:09:28 ugh Jun 06 03:09:34 my IRC client is crap and never autojoins here Jun 06 03:11:14 hi there canvs2321 ;D Jun 06 03:11:38 yo :) Jun 06 03:11:42 i see your CTCP VERSION and raise you a CTCP TIME Jun 06 03:11:54 oh cool, same time zone as me Jun 06 03:11:57 haha Jun 06 03:12:17 but yeah, i've looked at the source code of my IRC client... it does very ugly things Jun 06 03:12:19 WA Jun 06 03:12:20 i like the UI though Jun 06 03:12:58 this IRC client doens't even properly wait for connections/threads to close (can't remember which one).. it just kills the GUI, waits 3 seconds, then closes Jun 06 03:14:11 Can anyone help me implement a file chooser in an action listener on a button? Jun 06 03:15:10 I would implement your file chooser elsewhere, and call an instance of it in the action listener if I were you. Jun 06 03:15:37 Do you know of any file choosers I should use? Jun 06 03:16:00 Simple ones are fine Jun 06 03:16:06 Roll your own, or find one? I know there are some libraries out there. Jun 06 03:16:34 Are you trying to be backward compatible? Jun 06 03:17:21 I tried implementing this, http://stackoverflow.com/questions/7856959/android-file-chooser Jun 06 03:17:43 But I got an error on this line "String path = FileUtils.getPath(this, uri);" Jun 06 03:17:59 Saying, "The method getPath(MainActivity, Uri) is undefined for the type FileUtils" Jun 06 03:18:29 you grabbed the project from his girhub? Jun 06 03:19:08 the one on that github has an example in it: https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooserExample/src/com/ipaulpro/afilechooserexample/FileChooserExampleActivity.java Jun 06 03:20:09 I used the one he stated under ORIGINAL Jun 06 03:20:18 I didnt see his github link until now Jun 06 03:20:29 Thanks, I'll look into it and let you know if I need anything Jun 06 03:29:01 Any idea why the implemented methods in connection aren't being called even if ret is true? Jun 06 03:29:03 final Intent intent = new Intent("org.failedprojects.anjaroot.action.REQUEST_ACCESS"); ret = context.bindService(intent, connection, Context.BIND_AUTO_CREATE); Jun 06 03:53:15 is ti possible to create menu in action bar after button click ? Jun 06 05:01:41 Great, my app got slightly popular and now I'm getting spam to shove ads into it, because the natural thing to do when your stuff is popular is to put ads in it to make it unpopular Jun 06 05:14:29 Nilium: I get spam for that all the time, and my app isn't that popular... Jun 06 05:17:10 Leeds: I think it just has to show up once on some top list for you to end up on the mailing lists. Jun 06 05:17:41 Mine was mysteriously in top paid (disappeared from both top paid and top free today) yesterday, which likely ended up putting me on a bunch of lists Jun 06 05:18:11 Far as I can tell, the Play store doesn't handle paid→free transitions very well Jun 06 05:57:48 Hi there. So it looks like I have to implement NTLM authentication for android so phone will communicate with soap service. I'm using lib from https://code.google.com/p/ksoap2-android/wiki/HowToUse?tm=2 for using ksoap. Now I also need ntlm authentication capabilities.. Can I just copy https://github.com/mosabua/ksoap2-android/blob/master/ksoap2-extra-ntlm/src/main/java/org/ksoap2/transport/NtlmTransport.java to my project and I'm good to og? Jun 06 06:38:47 whats the best way to quickly add an overlay over all my activities that shows DEMO as tekst? Jun 06 07:27:46 any idea why I cannot make collapsed menu on andorid 2.x with text only ? Jun 06 07:27:53 works on android 4.x Jun 06 07:42:16 Click66: Jun 06 07:42:40 you could use a relative layout and place a text over everything else? Jun 06 07:42:53 or a framelayout if im not mistaken Jun 06 07:50:58 Kevel: I solved it by using my baseActivity and overriding the setOnContentView :) Jun 06 08:22:34 In the google play app its possible to see the users rated your app, but not the international votes. How can I see those without changing the locale on my device? Jun 06 08:22:40 I can't find an option for it in developer console either Jun 06 08:22:48 Developer console only shows the ratings where the users have written something Jun 06 08:23:46 Hi. I was wondering whether it's possible to develop a very successful app, yet remain anonymous? Didn't really know where else to ask this. Jun 06 08:27:20 yes, I'd say it's possible... pseudonymous at least Jun 06 08:28:52 ah. great. cause I was looking at Apple and they wanted personal data even before allowing me to download the SDK.. Jun 06 08:29:07 but I haven't seen the same issues for Android anywhere yet Jun 06 08:29:18 so I guess I'll stick with Android Jun 06 08:29:29 I'll stick to my guns Jun 06 08:29:47 in the EU, unfortunately Jun 06 08:30:30 odisa: you can. You just won't get to distribute it through market Jun 06 08:31:00 p_l|backup: well there goes the successful part of the plan then.. Jun 06 08:31:25 what about founding a company front or something? Jun 06 08:32:16 why do you want to remain anon? Jun 06 08:34:52 I don't think Google will publish your name any place you don't want it published Jun 06 08:35:08 and you can use any gmail as contact information Jun 06 08:35:56 am i the only person thinking that the 'successful' app is more important than being anonomoos? Jun 06 08:36:12 it todays age where you can have an app for literally anything Jun 06 08:36:21 "theres an app for that" Jun 06 08:36:21 Kevel: well, if it is _very_ successful, that's bound to bring some form of nuisance along with it Jun 06 08:36:38 thanks quacked Jun 06 08:36:41 odisa: but publishing on Google Play costs something like 25 USD Jun 06 08:36:42 yes, but if. Jun 06 08:36:52 quacked: I can live with that Jun 06 08:36:57 and paying that, surely Google will have your information Jun 06 08:36:59 odisa: you can always 'sell' it off when it becomes popular Jun 06 08:37:01 to yourself Jun 06 08:37:33 right now i really think its unwanted stressors about things like being anon etc Jun 06 08:37:35 Kevel: lol.. that sounds extralegal Jun 06 08:37:42 odisa: it is legal Jun 06 08:37:57 odisa: sell your app to a organisation or company you own Jun 06 08:38:12 aha.. interesting Jun 06 08:38:20 may dev account is kinda anonymous.. I created separate gmail accounts for app development Jun 06 08:38:39 my* Jun 06 08:39:03 Kevel: and isn't that what every app aims for? success? Jun 06 08:39:19 quacked: I'll look in to that. I'm reading the agreement thingy right now Jun 06 08:40:00 so on another note: would you guys recommend libgdx for dev? Jun 06 08:40:18 Never tried cross platform stuff Jun 06 08:41:03 odisa: yes it does, but very very few get there Jun 06 08:41:32 odisa: you also need to have a go to market strategy and such Jun 06 08:41:41 Kevel: well.. idk I was thinking about how ridiculously simple the most successful games are. Jun 06 08:41:42 apps just dont get popular chilling on the store Jun 06 08:41:55 e.g. Flappy Bird Jun 06 08:42:22 and afaik he didn't really do much marketing for that Jun 06 08:54:18 odisa: pure luck though Jun 06 08:54:34 people like mind numbing games ;p Jun 06 08:54:48 does anyone know if u can download ios apps NOT through itunes? Jun 06 08:54:50 Kevel: well then that is what I shall deliver them :P Jun 06 08:54:54 or at least serve the app NOT through itunes? Jun 06 08:54:57 yes Jun 06 08:55:00 extralegally Jun 06 08:55:22 or at least 7 years ago I could Jun 06 08:55:23 good :D Jun 06 08:55:26 oh. Jun 06 08:55:27 lol Jun 06 08:55:43 knowing apple, im sure its no longer like that :p Jun 06 08:55:52 I don't have a smartphone :P Jun 06 08:56:01 i mean, how can they make money off you if you dont use their payment gateways and services? Jun 06 08:56:12 well it involved jailbreaking Jun 06 08:56:26 the average person doesnt want to jailbreak their phone though Jun 06 08:56:44 oh you mean as a means of publishing? Jun 06 08:56:46 if you've bought iphone Jun 06 08:56:49 you deserve it Jun 06 08:56:53 PAIN Jun 06 08:56:55 ^ Jun 06 08:57:21 I wonder if you can boot Ubuntu on an iPhone Jun 06 08:57:42 they've gone mobile (beta IIRC).. time to develop apps for them Jun 06 08:59:39 yeah, found it: https://wiki.ubuntu.com/Touch/Install Jun 06 09:00:06 how do people get text to scale up in an app? SP seemingly doesnt work, I have a switch that by trial and error works for all devices/dpis ive tried, now client has tried on galaxy note 10.1 (2014 edition) 2560x1600 (300 dpi) but for some reason the size in my switch that works for other devices of same dpi, is making text look too small on this device, any ideas? Jun 06 09:01:19 dont have exp with that Jun 06 09:01:23 but you should use sp Jun 06 09:01:33 if so, use values for xdpi screen Jun 06 09:02:30 sp doesnt work tho Jun 06 09:02:37 its weird, I still have to make it bigger manually Jun 06 09:03:09 hdpi u mean? yeh im doing that looks fine on most devices but not on this huge tab Jun 06 09:03:22 xhdpi :) Jun 06 09:08:03 Gaz`, you cold override some font size settings in different resource folder for bigger devices like tablets etc. Jun 06 09:09:19 yeh but it is perfect size on all devices apart from this one, this one def has a much higher res tho, do you mean use sw600dp ? etc Jun 06 09:13:03 i really think sp should scale them up unless im misunderstanding it Jun 06 09:14:18 i believe 1sp == 1dp unless changed in your settings Jun 06 09:14:37 dp seems to work at times Jun 06 09:14:44 but again doesnt work all the time Jun 06 09:15:14 again i must be misunderstanding that too Jun 06 09:22:29 Gaz`: perhaps a custom size in the x-large layout folder Jun 06 09:22:41 cant remember exactly Jun 06 09:24:13 yeh, android becomes a real pain with all these screens Jun 06 09:28:10 you need bigger fonts when the device is really big. in my values-sw720dp you can adjust your font sizes for 10" tablets Jun 06 09:56:18 i've installed and configured genymotion and installed the plugin in eclipse Jun 06 09:56:24 now how do i run my app from eclipse on it? Jun 06 09:57:54 nvm, that was a dumb question Jun 06 09:58:37 there's no such thing as a dumb question Jun 06 09:59:02 there are dumb askers, though Jun 06 09:59:27 not that i'm saying that's the case though as i have no idea what you're talking about Jun 06 10:03:31 Why is Gradle so much slower than Ant? Jun 06 10:04:43 cause gradle doesnt have 6 legs Jun 06 10:09:57 : D Jun 06 10:10:34 someone should have told that google before.. Jun 06 10:43:56 i cant see a cursor in one of my edit texts, hows that? Jun 06 10:56:16 Gaz`: Show your code. Jun 06 11:22:30 When I have used completed to insert a method and it looks like this obj.method( and the cursor is behind the ( Jun 06 11:22:35 how can I display the missing arguments? Jun 06 11:22:42 I only see them before I complete the method name Jun 06 11:29:24 It is CTRL+P Jun 06 11:30:29 Does google test your app before it goes into android market or do i need to find tester for my app? Jun 06 11:31:21 Sorry for the newbie question. Jun 06 11:37:50 perlsyntax ofc u need tester they only check for simple problems when u upload Jun 06 11:37:55 like missing manifest Jun 06 11:38:34 they definitely dont test your app. they do check for a valid properly signed apk when you try to upload but if your app doesn’t work or crashes thats on you. Jun 06 11:39:59 Replacing "layout = (LinearLayout) View.inflate(this, R.layout.activity_edit_markers, null);" with "layout = (LinearLayout)findViewById(R.id.editMarkersLayout1);" gives error "FATAL EXCEPTION: main" "java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.mytestapp/com.test.mytestapp.EditMarkersActivity}: java.lang.NullPointerException". I'm trying to specify a layout by id obviously. Any help appreciated. Jun 06 11:42:30 findViewById will get a reference to a view in an already inflated layout, it wont inflate the layout for you. Jun 06 11:44:28 Anyone a good guide for using google maps with play services? That contains the right checks? Jun 06 11:44:37 jesperj, did you call setContentView? Jun 06 11:46:34 shvelo: The code has "setContentView(layout);" coming later. I'm a newbie sorry... Jun 06 11:46:35 perlsyntax, try Crashlytics or something like that Jun 06 11:46:52 jesperj, you should call it before using findViewById Jun 06 11:47:18 ah wait Jun 06 11:47:49 jesperj, you should call setContentView(R.layout.activity_edit_markers) Jun 06 11:48:20 thanks Jun 06 11:50:06 Thank you domji84 and shvelo Jun 06 11:50:17 shvelo: That was the problem indeed. Thank you very much! Jun 06 11:50:21 shvelo,I thought google did the samething. Jun 06 11:51:53 perlsyntax, I think Google Analytics does report crashes, but not all Jun 06 11:52:26 hmmm, man I wish Xamarin would drop prices just a little bit :/ Jun 06 11:52:52 perlsyntax, btw crashlytics doesn't work well if you run ProGuard. Jun 06 11:53:21 thanks Jun 06 11:53:31 crashlytics works just fine with proguard Jun 06 11:53:46 you just have to make sure the mapping file gets uploaded and you keep line numbers in source files Jun 06 11:53:57 thanks Jun 06 11:53:59 it's all documented on crashlytics support site Jun 06 11:54:49 How to check if google play servcies is available and otherwise send the user to the playstore? Jun 06 11:55:05 Click66_, it does that itself I think Jun 06 11:55:21 shvelo: Don't you need to check if the map and stuff is available? Jun 06 11:55:24 Click66_, that's like THE FIRST example in the documentation. Jun 06 11:55:25 i try it free crashlytics? Jun 06 11:55:30 FIRST piece of code! Jun 06 11:55:36 Mavrik where then ? Jun 06 11:55:42 sitting here Jun 06 11:55:43 https://developers.google.com/maps/documentation/android/map Jun 06 11:56:27 this channel needs a tipbot Jun 06 11:57:24 http://developer.android.com/google/play-services/setup.html#ensure Jun 06 11:58:29 shvelo, no it needs a docstick :P Jun 06 12:00:15 wats dat Jun 06 12:01:28 a stick you beat people with then they don't even look at the documentation before asking :P Jun 06 12:03:06 Is there an easy way to dynamically set the size of a ListPopupWindow to fit its content Jun 06 12:05:37 Mavrik, good idea Jun 06 12:05:45 but tipbot would also be nice Jun 06 12:06:13 !tip Mavrik Jun 06 12:06:30 also, what does ListPopupWindow#setContentWidth(int) actually do? Jun 06 12:17:08 wow, there's like 20 different sqlite libraries for ANdroid Jun 06 12:17:20 even written by some suspects from this channel Jun 06 12:28:19 I use ormlite and it sucks Jun 06 12:31:54 Do any not suck? Jun 06 12:32:24 not sure Jun 06 12:32:56 Estel, I've yet to find one that doesn't Jun 06 12:37:57 Anyone here done glass developement? Jun 06 12:42:03 yes. Jun 06 12:42:11 I was working on my greenhouse a couple of weeks ago. Jun 06 12:42:14 (sorry) Jun 06 12:44:40 everyone should read the first 2 chapters of JCIP Jun 06 12:45:21 whats that Jun 06 12:45:46 java concurrency in practice Jun 06 12:46:46 really, just before moving on with anything Jun 06 12:46:50 it's so easy to do it right Jun 06 12:47:22 SpeedEvil: hmm? Jun 06 12:47:30 I'm talking about using GDK Jun 06 12:47:45 I was misinterpreting the term 'glass' for comedic effect. Jun 06 12:48:10 oh u funny gai Jun 06 12:48:11 ok Jun 06 12:49:15 does anyone know any good tutorials for implementing an interface to a bound service? Jun 06 12:52:28 funny gai Jun 06 12:52:32 lel Jun 06 12:55:14 ?? Jun 06 12:56:04 not talking to you, sorry Jun 06 13:04:19 Let me try to be more explicit. When hitting the "Up down arrow" here https://drive.google.com/file/d/0Bya9EqB9irdKaC14bTZyLVA0Y2s/edit?usp=sharing an animation is made that looks like the info is moving. How would I replicate that result? Jun 06 13:08:25 How does one properly read the body of a retrofit.client.Response? Jun 06 13:09:21 shekibobo: you shouldn't need to read it directly. Maybe you want to write a custom converter, or get the @Raw response? Jun 06 13:09:44 I'm trying to debug, so I'd like to see the actual response that comes back Jun 06 13:10:51 there is logging. you can turn logging on for the body of the response Jun 06 13:11:02 how's that done? Jun 06 13:11:11 Anyone know how i would doi that Jun 06 13:11:37 shekibobo: look at the logging section of http://square.github.io/retrofit/ Jun 06 13:14:48 jaynewstrom: that did it, thanks! Jun 06 13:16:30 Is there a way to get ProgressBars to perform well in a listview? :( Scrolling performance really takes a hit when they're beingn drawn Jun 06 13:22:00 hodor Jun 06 13:22:34 Estel: redesign the UI Jun 06 13:22:41 a list full of progress bars is ugly as shit Jun 06 13:22:53 unless you mean a single progress bar is causing issues Jun 06 13:23:09 Only one row has a progressbar at a time, yes Jun 06 13:23:14 Anyone?? Jun 06 13:30:35 I'm trying to log the full URL of an HttpRequest object. Is there a way to get the fully-built URL as a string? (with params and all) Jun 06 13:31:55 I've also been looking around for a while to see if the device monitor in android studio would tell me the URLs that have been requested by my app -- no luck there yet either. Jun 06 13:38:57 you could log the urls or use something like charlies proxy or http sniffer. Jun 06 13:41:05 I would prefer to log them, I just couldn't find something to do this: httpRequest.build().toString() Jun 06 13:47:06 highcup: is getRequestLine().getUri() close enough? Jun 06 13:47:32 @Estel, I'll try that out! Jun 06 13:56:35 @Estel, that worked. Do you usually set query string params for a request using setParam()? Jun 06 13:57:44 Or setEntity Jun 06 13:58:30 I'm trying to follow https://developer.android.com/guide/components/bound-services.html but the code under the "Extending the Binder class" subheading never actually binds the service. Is it out of date or something? Jun 06 13:59:18 I'm literally copying and pasting the code. It compiles and runs fine but the service simply doesn't bind :( Jun 06 14:00:35 in a ListView layout, i have a bunch of ImageButtons that i want to lead to different layouts Jun 06 14:00:41 what would be the best way to accomplish this? Jun 06 14:00:49 d0de: bindService is never called, or it doesn't work? There are a bunch of errors in the rocs Jun 06 14:01:11 i imagine there's a more efficient way than having a class for each layout and registering an intent for every single one of them Jun 06 14:01:25 does anyone have an idea of why I can't resume an activity with a ViewPager in it? Jun 06 14:01:26 java.lang.RuntimeException: Unable to resume activity: java.lang.IllegalStateException: Observer android.support.v4.view.ViewPager$PagerObserver@52a3b584 was not registered. Jun 06 14:02:36 Estel, it doesn't work. In the example in the docs, it sets an onClick listener to a button to create a toast if the service is bound. I just added an else statement that logs "service isn't bound", and that gets logged every time and the toast is never shown Jun 06 14:02:40 Seems to happen when I try to run viewPager.setAdapter(adapter) when returning from another activity Jun 06 14:06:26 pom.xml always looks like porn.xml to me Jun 06 14:11:49 this is frustrating, trying to learn and code in the docs doesn't even work :( Jun 06 14:23:19 oh sweet potato pie Jun 06 14:23:28 I forgot to update the service name in the manifest >_< Jun 06 14:27:24 can anyone talk to me? Jun 06 14:27:30 im lonely and i wanna talk about space Jun 06 14:28:46 LighterFluid: what's going on Jun 06 14:29:08 not much, floating around our galaxy Jun 06 14:29:52 aren't we all Jun 06 14:30:13 yeah, but we're unaware most of the time Jun 06 14:30:25 and i was kind of floating away from our galaxy Jun 06 14:30:29 watching it from a moderate distance Jun 06 14:30:47 like an invisible god in space Jun 06 14:35:32 not here LighterFluid Jun 06 14:35:57 reddit.com/r/suicidewatch Jun 06 14:37:11 dagger makes no sense to me Jun 06 14:37:27 * mikedg stabs Mango_Man Jun 06 14:37:31 though it will make sense after reading some more tutorials :D Jun 06 14:37:40 Inject moar Jun 06 14:37:42 now it makes sense Jun 06 14:37:47 it has become a part of you Jun 06 14:38:18 why is it called dagger when we're injecting stuff Jun 06 14:38:26 it should be called...syringe or something Jun 06 14:38:51 injecting HARDLY Jun 06 14:38:56 STAB STAB! Jun 06 14:42:17 could somebody please attempt to emulate this? https://github.com/2dwarfs/FallAnimationSample Jun 06 14:42:49 yes, and that someone is you Jun 06 14:42:51 go, do it! Jun 06 14:42:59 run like the wind! Jun 06 14:43:09 Sicp: I really wouldnt be here if I had succeeded :/ Jun 06 14:43:22 well of course it isn't going to work right away! Jun 06 14:43:51 Mango_Man: The object graph is a directed acyclic graph Jun 06 14:44:03 See if you connect the dots Jun 06 14:44:54 Sicp: Being that it installs without error and never shows up onscreen, I would assume there is a problem with the environment so I would ask somebody else to give it a shot :) Jun 06 14:47:42 Storing user authenticated information (including things like user has been signed in through Facebook login etc.), should it be sufficient to put that into shared preferences? Jun 06 14:47:47 or is there something better? Jun 06 14:57:33 what would y'all consider an excessive number of threads in an app? Jun 06 14:57:57 9000 Jun 06 14:58:13 would definitely be excessive Jun 06 14:58:50 generally speaking, use how many you really need, not more, and not less Jun 06 14:59:20 but not 9000 + 1 Jun 06 14:59:38 I have a feeling there's something behind this question ... :) Jun 06 14:59:46 that's what basically separates the wheat from the chaff Jun 06 14:59:59 developer who are so greedy that they just cannot stop creating threads Jun 06 15:00:05 and have to go over this 9,000 limit Jun 06 15:22:53 OK so in google maps there is this https://drive.google.com/file/d/0Bya9EqB9irdKeW55OU5SOEkwRHc/edit?usp=sharing hitting the "Up Down arrow" creates an animation that switches the location of the two views. How could I replicate that? Jun 06 15:24:12 How can I check if a service exists or not? For onCreate, I want to bind to the service if it exists, or start the service if it doesn't exist Jun 06 15:29:21 ProjectBarks ha, that is cool. never clicked that button. the button also rotates. will probably need to look into view animations that would happen on click I would guess Jun 06 15:30:04 I dont even know where to start for that Jun 06 15:30:09 I can figure out how to do the rotate Jun 06 15:30:30 but switching the views no clue. Jun 06 15:32:49 mattblang: Do you know where i would even start? Jun 06 15:35:37 ProjectBarks Look at Tween animations Jun 06 15:36:16 ProjectBarks check this out too, the demo app is pretty cool. it may abstract some stuff for you https://code.google.com/p/java-universal-tween-engine/ Jun 06 15:36:31 ProjectBarks never used it, just came across it when searching android tween and downloaded the demo app Jun 06 15:40:12 ProjectBark check this out, http://developer.android.com/reference/android/view/animation/TranslateAnimation.html Jun 06 15:40:56 ProjectBark you are wanting to translate the two views to each others' spots. maybe on click you could get their position and create two TranslateAnimations Jun 06 15:44:26 what part of ArrayAdapter do i need to modify so that it does not simply call getString() on its objects? i will still give it a string, i just need to construct it differently than T.toString() returns Jun 06 15:46:11 ahh, public View getView (int position, View convertView, ViewGroup parent) Jun 06 16:07:12 I have a public method in my service that returns a float. I get a runtimeexception every time I call it from my activity, and I have no idea why Jun 06 16:14:23 hey guys, i`m trying to get a contact photo/image from contacts-list by using the contact id like this: http://stackoverflow.com/questions/9830634/android-opencontactphotoinputstream-returns-null-for-all-contact-photo-ids but openContactPhotoInputStream always returns null, even if there IS a photo. Contact ID is correct and Uri is not null......any ideas what else it could be? Jun 06 16:17:34 hi, when putting my emulator in landscape mode (ctrl+fn+f12) it rotates the device, but the screen orientation doesn’t change. The display setting ‘Auto-rotate screen’ is checked. Is this a known issue? Any workarounds? Jun 06 16:27:02 I have a bound service that's working properly, except that if I try to call any public method of the bound service during onStart() of the main activity, I get an run time exception. Even if all the method does is log a string to console. What's going on? Jun 06 16:35:03 ah, I was calling the method after the service had started, but before it was bound. Jun 06 16:56:30 hey guys whenever i change something in my listview it scrolls all the way to the top Jun 06 16:56:36 any idea on how to prevent this? Jun 06 17:02:40 Don't set a new adapter Jun 06 17:14:04 Hi, SQLite, WriteAheadLogging and Transactions, someone can help´? Jun 06 17:24:28 hi guys Jun 06 17:25:53 I have a Activity and this call Service A and Service A call Service B. In Activity i have a togglebutton. I want set togglebutton to false in Service B there is a solution? Jun 06 17:26:40 I have use getSharedPreference, it work only in Activity press back and re-open Activity Jun 06 17:38:35 Hello! How i can build this app?(Arch Linux) https://github.com/indrora/Atomic Jun 06 17:40:48 I'm newbie in build. Jun 06 17:49:26 AlexRussia, http://developer.android.com/tools/projects/projects-cmdline.html Jun 06 17:49:38 update a project Jun 06 17:49:47 From within the application subdirectory Jun 06 17:50:00 You might have to include some libraries though Jun 06 17:50:10 For that particular project Jun 06 17:50:36 okay, i'll do, when install sdk... Jun 06 17:56:44 Is there some best practices or useful libraries (other than the sdks) for natively handling allowing users to sign in with facebook, googl+ OR local account in an android app? I want the experience to be that the user will login to the stored account on the phone if there is one or else get the prompted sign in dialog if not. Jun 06 18:05:03 hi Jun 06 18:19:41 So unsurprisingly, stock photos are expensive, 100$ for a photo, come on...I don't want to invest in my project yet, first I want to see if there is any interest. I need free images for famous soccer players, any idea if that is possible to get? I doubt anyone would so nice to hand them out for free... Jun 06 18:20:32 kickstart it like the other ppl that dont want to invest :p Jun 06 18:35:50 JakeWharton: I'm curious about the design pattern of u2020 where you have U2020App.get(context) method Jun 06 18:37:17 is context required to be passed in? could you simply `return (U2020App) this;`? Jun 06 18:37:42 shekibobo: you cant use "this" in a static method.. Jun 06 18:43:23 Parsing json seems to take a lot of memory, I only have 50 questions in my app and I will have 1000+, so it seems it might not be a good idea to have all questions in the app but in a database on google appengine perhaps. Or maybe split up the questions along different files, but arbage collection might not be predictable enough for that to work, I am not sure. It is just that storing Jun 06 18:43:23 stuff on GAE means paying for db reads and traffic and if there is no internet connection the game cannot be played. Jun 06 18:46:32 splix: why not a local sqlite database? Jun 06 18:47:26 Or csv, its more lightweight because you can read it line by line Jun 06 18:52:09 danijoo: Is there anything dangerous about storing a member variable on an Application object to the effect of `private static Context context; onCreate() { context = this }` Coworker is suggesting it and it makes me feel deeply uncomfortable Jun 06 18:52:22 sorry, not member variable, static variable Jun 06 18:52:40 shekibobo: thats fine too Jun 06 18:53:04 basically you have 2 options: the method used in U2020 and storing an pplication singelton in onCreate Jun 06 18:53:19 shekibobo: it's a static method Jun 06 18:53:31 don't store the app in a static method Jun 06 18:57:04 basically he wants to do this: https://gist.github.com/shekibobo/7f23a9191df1de91c442 Jun 06 18:57:13 so as not to have to pass context around Jun 06 18:59:09 motha fucker Jun 06 18:59:12 fffffff Jun 06 19:01:16 shekibobo: https://gist.github.com/danijoo/2ff9fa87e49efe67cb2a Jun 06 19:01:27 no casting needed Jun 06 19:12:26 so sorry, sdk version 19 compatible with android 4.1? Jun 06 19:12:51 AlexRussia: most of it Jun 06 19:13:27 ok Jun 06 19:22:35 has any of the android programming books become the de-facto standard canoncial text? Jun 06 19:23:24 I think most of us learn it by doing Jun 06 19:23:55 books are outdated one day after realease due to the fast api updates Jun 06 19:27:30 stackexchange, github, and developer.android.com are where I always turn to Jun 06 19:28:23 danijoo: what are your thoughts on the discussion in the comments here: http://stackoverflow.com/a/5114361/447934 and the answer given here: http://stackoverflow.com/questions/987072/using-application-context-everywhere Jun 06 19:29:02 snowandotherjoys, maybe http://commonsware.com/Android/ (ebook) Jun 06 19:30:17 how does github help you learn dragorn Jun 06 19:30:44 snowandotherjoys: because there's a fair number of open android projects and libraries on it Jun 06 19:31:00 and usually if you're trying to do something, someone has already done it Jun 06 19:31:05 or something similar Jun 06 19:32:02 snowandotherjoys, the android (framework) source code is also helpful Jun 06 19:32:06 do you have any projects that would be good for beginners/intermediates to look at Jun 06 19:32:23 im not sure im advanced enough to actually look into the framework source code :( Jun 06 19:33:54 snowandotherjoys, start with the tutorials on developer.android.com Jun 06 19:40:15 I am needing help with training. Anyone able to help? Jun 06 19:40:59 training? Jun 06 19:41:37 Android Developers Training from developer.android.com Jun 06 19:41:53 at what point? Jun 06 19:44:33 Well, I was able to create my first project in Eclipse using the ADT Plugin. Then it wants me to do it by using Command Line Tools. I do not know where to go for that part or how to even start? Jun 06 19:46:48 I think they mean CMD (Windows) or the termianl (Mac, Linux) Jun 06 19:49:51 This is what it says at first, "If you're not using the Eclipse IDE with the ADT plugin, you can instead create your project using the SDK tools from a command line:". Ok, I am new at the cmd window. I only did it once successfully with step by step instructions. How do I change directories into the Android SDK’s tools/ path and then execute: android list targets? Jun 06 19:50:20 Stickboy_: If you can do it in Eclipse, dont bother about the command line at the moment Jun 06 19:50:57 Working with command line under windows is a pain anyways :p Jun 06 19:52:37 danijoo: So, skip the instructions for the command line throughout the training and just worry about doing it all in Eclipse? And yes, I would rather have workarounds rather than use the cmd window. Jun 06 19:53:32 Stickboy_: this is just "how to create a project". Once it is setup, you wont need the command line anyways. Jun 06 19:54:32 It cant hurt to know how to do stuff in commandline, but its not neccessary for basic stuf Jun 06 19:54:34 f Jun 06 19:55:51 Ok, thanks! BTW, if this irc chat stuff is like a cmd window in a sense, that would explain why it took me several hours to try and join this group with the aid of #freenode. Jun 06 19:56:34 : D Jun 06 19:58:58 How do I tell android studio where the NDK is isntalled? Jun 06 19:59:15 and/or how do I add the ndk to the system path? I tried to put a setenv PATH $ANDROID_NDK:$PATH in the /etc/launchd file, but it doesnt seem to be getting it in the path, even though I see ANDROID_NDK set Jun 06 20:10:58 if I had a dollar for everytime I forget a break in a switch statement... Jun 06 20:34:10 danijoo: with sqlite, would I then parse the JSON and store it in the db when the app is first installed? or can I create the sqlite file before and just have it uploaded with the app? Jun 06 20:35:03 I mean the user will just read from the db, never write. Jun 06 20:53:55 eh, I don't know the nomenclature for this — anyone know how I can depend on the android sdk in a gradle project but not compile it in, without defining the project as an android/android-library plugin (I don't need resources, manifest, et all in this project) Jun 06 21:02:06 i import this https://github.com/indrora/Atomic/tree/master/application in eclipse workspace, how to build that? Jun 06 21:18:53 hi guys, I need some advice. Is it possible to do a service that reads the sms and changes a contact group based on the sms content? Jun 06 21:19:05 For 2.3 Jun 06 21:28:26 Hello guys! Jun 06 21:32:33 Any devs around want to make a quick 50 bucks? I have an app that pulls a tar and extracts to a path - I made an APK that downloads the tar to a path in the smali and runs sh commands to extract but i dont think it has the correct permissions to execute. I can do it manually via ssh but need it to be done automatically in the app - not sure if i need to give the app root - if so, no idea how to. If anyone fancies helping me out, Jun 06 21:37:03 I'm having issues on OSX w/ Android Studio 0.6 & SDK 19 not compiling. I've deleted the preview folders & created symlinks to aapt & lib under android 4.4.2 as suggested on stackoverflow but those solutions don't work. Jun 06 21:37:10 Any suggestions? Jun 06 21:39:27 I know the project itself is good as it compiles fine on another OSX system i have. Jun 06 21:46:58 so my main activity is named Dashboard, not the name of my app. I defined the android:label field for , which does correctly change my launcher name, but the shortcut is still called the title of the main activity. anyone run into this? Jun 06 21:47:35 mattblang: remove the shortcut and add another Jun 06 21:47:51 or just wait, the launcher will refresh eventually Jun 06 21:49:10 Napalm hey man! so there isn't a good way to have the shortcut be named correctly when it is first created? Jun 06 21:49:28 yes, name it Jun 06 21:49:35 name your launcher activity Jun 06 21:49:39 it has a attribute for that Jun 06 21:50:16 Napalm yeah, but the problem is my launcher activity's title is something different from the name of my app, so I don't want to change it's label Jun 06 21:51:38 waht do, if: Jun 06 21:51:39 why is that a problem? Jun 06 21:51:39 % android update project -p ./ [master-1:51:02] Jun 06 21:51:41 Error: The project either has no target set or the target is invalid. Jun 06 21:51:42 Please provide a --target to the 'android update' command. Jun 06 21:51:44 ? Jun 06 21:52:14 have you tried providing a --target? Jun 06 21:52:23 JesusFreke: what is mean? Jun 06 21:52:25 mattblang: in your onCreate of your activity set the title to your app name R.string.app_name or whatever it is Jun 06 21:52:50 try either "android help update" or "android update help", or maybe "android update --help" Jun 06 21:53:07 to get the possible arguments and the expected values/meanings, etc. Jun 06 21:53:24 - list target : Lists existing targets Jun 06 21:53:46 but Jun 06 21:53:48 % android list targets [master-1:53:02] Jun 06 21:53:49 Available Android targets: Jun 06 21:54:47 and what i should do? Jun 06 22:01:58 Napalm that still causes a flicker, but that isn't a big deal. I think I'll do that over the shortcut being misnamed. Jun 06 22:02:19 mattblang: have you tried an Activity Alias Jun 06 22:02:28 Napalm I haven't Jun 06 22:03:59 who knows how to create a simple chess 2 player game? Jun 06 22:04:08 or a single player game? Jun 06 22:04:27 how do i trigger a breakpoint whenever my app crashes? Jun 06 22:41:46 Hi guys Jun 06 22:41:55 I have a problem, I understand this is a built in Android style Jun 06 22:41:56 android.R.layout.simple_list_item_1 Jun 06 22:42:01 layout I mean Jun 06 22:42:15 anyway, for some strange reason, I cannot use this in my adapter? Jun 06 22:42:20 I'm trying to figure out why Jun 06 22:43:02 https://gist.github.com/pita5/627d766bd46c08d4ddcb Jun 06 22:43:14 it's failing on line 2 Jun 06 22:44:34 The error was this Jun 06 22:44:34 https://gist.github.com/pita5/27cf1c06eda16b73f95a Jun 06 22:45:02 That shows the location of the error, but not the error itself Jun 06 22:46:36 you need to classify the ArrayAdapter as ArrayAdapter and you omitted the third argument, android.R.id.text1 Jun 06 22:46:58 if it's neither of those, a stacktrace helps Jun 06 22:47:32 maybe this isnt an activity, arrayItems is null, etc (though arrayItems being null should cause an exception) Jun 06 22:48:53 Error:(70, 40) cannot find symbol constructor ArrayAdapter(com.eventbot.testapp4.app.NavigationDrawerFragment,int,java.lang.String[]) Jun 06 22:49:14 multiple issues going on there Jun 06 22:49:22 gawd >.< Jun 06 22:49:33 my first dabble into Android coming from iOS ;-) Jun 06 22:50:05 ArrayAdapter adapter = new ArrayAdapter(this.getActivity(), android.R.layout.simple_list_item_1, android.R.id.text1, arrayItems); Jun 06 22:50:56 this builds fine :-) Jun 06 22:51:18 i guess things have moved on in the Android world? or documentation is out of date Jun 06 22:51:31 thanks allot Jun 06 22:51:47 you were passing a fragment to the constructor, not a context Jun 06 22:52:03 I see Jun 06 22:52:13 if 'this' was an activity, it would be fine Jun 06 22:52:35 what is android.R.id.text1 ? another layout? Jun 06 22:52:45 but you would end up with an empty view because you didnt extend ArrayAdapter and override getView() Jun 06 22:53:08 it is the id of a text view in android.R.layout.simple_list_item_1 Jun 06 22:53:09 i see Jun 06 22:53:30 the textview will be populated with each item from your array Jun 06 22:54:15 that's very smart, I can see Adapters being quite powerful Jun 06 22:54:26 hi , i am creating a app which shows youtube content easily and in best way , but i will open the video in youtube only , can i do that ? Jun 06 22:54:36 without google removing me from play store ? Jun 06 22:54:39 I have an activity that creates a fragment in onCreate(), and commits it to the FragmentManager. I would like to use the UI elements of this fragment in onStart() of the activity, however they are still null. what am I doing wrong? Jun 06 22:55:56 ? Jun 06 22:59:38 chinu: why would your app be banned? you can send an explicit intent to youtube to play the video, or you can use the youtube api to play the video in your own app Jun 06 23:00:10 xavery: the fragment is not yet attached to the activity Jun 06 23:00:24 i will show youtube video thumbnail also in my app ? Jun 06 23:00:32 is it infringment ? Jun 06 23:01:45 chinu: no problem with that. check out the youtube api. it is simple to get a list of videos and show thumbnails Jun 06 23:02:04 there is no infringement, it is a public api Jun 06 23:02:11 I just want to spice up user experience to view and categorize youtube content Jun 06 23:02:25 I will show ads though in my app ? Jun 06 23:02:28 is it ok ? Jun 06 23:02:31 sure Jun 06 23:02:43 Thanks , birbeck Jun 06 23:02:50 just dont display them over the video Jun 06 23:02:59 yeah sure Jun 06 23:04:16 Any devs around want to make a quick 50 bucks? I have an app that pulls a tar and extracts to a path - I made an APK that downloads the tar to a path in the smali and runs sh commands to extract but i dont think it has the correct permissions to execute. I can do it manually via ssh but need it to be done automatically in the app - not sure if i need to give the app root - if so, no idea how to. If anyone fancies helping me out, Jun 06 23:09:34 birbeck, so is there any way that I can force onStart() to fire after the fragment gets attached? or am I going about this the wrong way? Jun 06 23:10:00 you can not change the activity/fragment lifecycle Jun 06 23:10:33 right. Jun 06 23:10:44 can someone tell me how to make a simple game? Jun 06 23:10:55 honestly, the activity shouldn't know anything about the fragment besides loading it. if they need to interact at all, it should be done through callback interfaces Jun 06 23:11:55 birbeck, alright, that makes sense. thanks. :) Jun 06 23:26:28 Hi all. Is there some best practices around having multiple social auth abilities? I am working with socialauth-android and i like the ease of use but I need to be able to use the local accounts on the phone as well. Jun 06 23:29:56 http://pastebin.com/EHsc8jWL How would I migrate this to gradle .9 or could someone correct it? Jun 06 23:30:02 I am not sure what I need to fix Jun 06 23:46:30 Is there documentation on why all the class files in Android are typically in the same tree level? Jun 06 23:46:34 Just curious Jun 06 23:47:36 come again? Jun 07 00:01:00 JesusFreke: Most dom formats for Android projects put all class files in their respective directory Jun 07 00:01:09 I was wondering if there was a reason for it Jun 07 00:03:50 I'm still not quite with you. The class files are put in a directory structure that matches the package of the class... And you as the developer choose the package layout for your classes.. Jun 07 00:06:04 ok take just the src folder Jun 07 00:06:55 if you look up most examples from Google they have all the Activitys/Views/etc at the same folder level Jun 07 00:07:39 is they're a reason they don't break them apart? Even when you create a new activity it defaults to putting it at the root src level Jun 07 00:07:45 Well, it's common to use your apk's package name as the java package name, even though they're technically unrelated. Jun 07 00:08:21 And then most people organize the classes into whatever sub-packages from there that make sense for them Jun 07 00:09:07 But as far as example code goes, it's rarely complex enough to need to split it out into subpackages Jun 07 00:09:31 Can anyone here help me with gradle Jun 07 00:13:04 So I have this gradle build file http://pastebin.com/EwL9tbHM and this error log http://pastebin.com/au051wsB what do I need to do to fixle my gradle Jun 07 00:14:31 evening folks Jun 07 00:14:35 anyone ever used quickblox? Jun 07 00:14:51 ProjectBarks: at first glance, this doesn't appear to be a gradle issue, but rather an issue with your templateactivity.xml file Jun 07 00:16:04 I would need some help if anyone used quickblox before Jun 07 00:16:06 It was Jun 07 00:16:08 thanks so much Jun 07 00:20:29 Ok so How would I rmeove this line http://prntscr.com/3qd5ua from the text box? Jun 07 00:20:34 I just dont want it there Jun 07 00:21:40 no idea :) Jun 07 01:47:00 Could somone help me do a patch 9 Jun 07 01:49:08 JesusFreke, thanks for your response. It was what I assumed but I didn't know if there was some new methodology Android developer were supposed to adopt. Jun 07 01:55:25 Hi guys Jun 07 01:55:57 i am having an issue using the support library for fragments Jun 07 01:56:17 when i try and add to the Fragment manager it gives me an error Jun 07 01:57:21 As i recall you need to extend FragmentActivity and use getSupportFragmentManager Jun 07 01:57:27 the code can be seen here http://pastebin.com/8SJ1Q1mK Jun 07 01:57:46 yes i am already doing this Jun 07 01:57:53 if you manage to include both the support fragment manager and the system fragments, you'll get lots of unpleasantness as well Jun 07 01:58:15 but the compiler is telling me the following Jun 07 01:59:09 "The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, NameListFragment)" Jun 07 01:59:18 ProjectBarks: what's the problem with doing the 9patch? Jun 07 01:59:23 I suspect namelistfragment is a fragment, not a supportfragment Jun 07 01:59:41 check your namelistfragment file and make sure you're including fragment from support, not base Jun 07 02:00:20 you can end up with two signatures for Fragment, leading to very confusing errors. Almost always a support vs base import problem Jun 07 02:00:37 dragorn: That was awesome quick support Jun 07 02:00:40 appreciate it Jun 07 02:01:06 because both versions are called Fragment you get super weird errors like "Expected Fragment got Fragment" Jun 07 02:02:29 canvs2321: Ill send screenshots Jun 07 02:09:13 http://prntscr.com/3qdwgi <- Thats what it looks like, http://prntscr.com/3qdwog This is what i want it to look like with spacing around it, Here is the image I want to use https://drive.google.com/file/d/0Bya9EqB9irdKQnc0NFdBZFRIRzg/edit?usp=sharing Jun 07 02:09:25 Could you help me with the patch 9 Jun 07 02:12:38 ProjectBarks: 9patch stretches, doesn't shrink. That image is too large Jun 07 02:13:08 resize it to a minimum working size, then add your 9patches to it Jun 07 02:13:19 alright Jun 07 02:14:25 Then, left and top you set your stretch, right and bottom are your padding guides Jun 07 02:15:05 Could you fix it? Jun 07 02:15:59 fix it? nothing broken yet :) Jun 07 02:16:10 Make it work to what I was trying to get Jun 07 02:16:43 give me a sec&i'll show you an example Jun 07 02:18:12 dragorn: Hey i am having the same issue, but in a different class Jun 07 02:18:21 i keep checking to see that i have the right imports Jun 07 02:18:24 and i do... Jun 07 02:18:53 this time the compiler is not letting me use the getSupportFragmentManager Jun 07 02:19:57 the code can be viewed here http://pastebin.com/hi7Uw6qZ dragorn i appreciate your help Jun 07 02:30:05 when using android studio and gradle, how do i deal with "Duplicate files copied in APK META-INF/LICENSE.txt"? SO seems to say that updating and re-syncing gradle should work, but it doesn't work for me Jun 07 02:33:10 http://stackoverflow.com/questions/20673625/android-gradle-plugin-0-7-0-duplicate-files-during-packaging-of-apk -- says that it should be fixed in 0.7.1 but isn't for me Jun 07 02:57:35 rohan: did you add the exlusion statements that the answer posted? Jun 07 02:57:57 how do I determine whether onResume is being called after a back button has been pressed? Jun 07 02:58:22 f2prateek: yes Jun 07 02:58:25 I’m trying to handle situations where a user clicks the back button while in the SignInActivity Jun 07 02:58:51 So they don't go back to the splash screen? Jun 07 02:58:59 petecouture: yes. Jun 07 02:59:18 petecouture: so that I can startActivityForResult again Jun 07 02:59:37 Can't what ever service your running that is listening for the back button press also know which activity it is in? Jun 07 02:59:57 yaw: default behavior is to finish so you can ovveride that **** ENDING LOGGING AT Sat Jun 07 02:59:59 2014