**** BEGIN LOGGING AT Thu Jan 23 02:59:59 2014 Jan 23 03:05:07 you know some library that makes sqlite database simple? Jan 23 03:05:43 creating a new table is really so complicated.. you have so many things in mind Jan 23 03:12:37 android db support is kind of pitiful Jan 23 03:15:09 yes Jan 23 03:16:24 there is greenDAO and ormlite Jan 23 03:18:00 I've been googling this for hours, but can't find a solution. I have a gridView, SimpleCursor adaptor, and getView() with posiiton 0 is called constantly. Jan 23 03:18:22 for example, if I log the positions, I get 0,0,12,0,0,13,0,0,14 etc. Jan 23 03:19:08 and on Nexus 5, with a simple grid item, it's laggy and choppy Jan 23 03:21:18 fwiw - while the unnecessary view request at item 0 is annoying, I've personally found that wit gridview/listview, laggy/choppy behaviour is usually because I took too long to return the view [or there's some slowness in rendering each view itself.] Jan 23 03:22:45 you can test whether this is in fact the case by returning a simple view {eg: a textview} and see if it's still choppy; then it's simpler to isolate where the speedups will help... Jan 23 03:24:56 one issue is that I add style to a text view on getView(). I'm sure this adds a bit of delay. Using a spanner thing. Jan 23 03:25:13 bold first word, add color to second word for example. Jan 23 03:26:17 *nod* - probably worth isolating whether it's in fact the gridview itself that's causing the stuttering as above. That can help narrow down what will help avoid choppy scrolling. Jan 23 03:28:00 I remember looking at the gridview code a while back - vaguely recall the repeated view is some artifact of the relayout/refresh logic; so there probably isn't a whole lot of joy to try and "fix" that Jan 23 04:25:55 What would someone use the android accelerometer for? Jan 23 04:51:59 AndreYonadam: detecting which way down is, basically. Jan 23 04:52:50 SpeedEvil: Thanks. Yeah I was just really confused how people would use it since orientation manager was depreciated but I think I got the hang of it. Jan 23 05:08:08 hi Jan 23 05:08:19 I have set up my app to take a photo Jan 23 05:08:47 in my onActivityResult, I have...... if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) { Bundle extras = data.getExtras(); Bitmap imageBitmap = (Bitmap) extras.get("data"); ... etc Jan 23 05:08:56 what is the quality of this image? Jan 23 05:08:59 is it a thumbnail? Jan 23 05:09:05 or can I get high res out of it? Jan 23 05:13:05 any ideas? Jan 23 05:50:12 the official DTMFTwelveKeyDialer.java doesn't extends Activity. So how does this actually works in android ? Jan 23 05:51:00 I want to customize this into a small app and its view. How to start with it ? Jan 23 06:16:23 hello, downloading the android sdk bundle right now. Jan 23 06:17:18 facinating news Jan 23 06:17:45 :P Jan 23 06:19:26 i wanna be a developer :P Jan 23 06:21:04 how you guys start? Jan 23 06:21:42 i wanna make a popular app Jan 23 06:22:44 maybe an app for the workers Jan 23 06:23:03 to find a job nearby Jan 23 06:23:11 good luck Jan 23 06:23:28 :) Jan 23 06:25:20 cortexA9, do you know any java? Jan 23 06:26:05 Zharf, yea some.. Jan 23 06:26:24 ok well get started by reading d.android.com then Jan 23 06:26:46 Zharf, ok thanks Jan 23 06:30:37 Zharf, there are some examples project? Jan 23 06:31:14 in the sdk samples Jan 23 06:54:48 hi Jan 23 06:55:00 I want a linear layout at the bottom of the screen to take as much space as it needs to Jan 23 06:55:05 there is a dynamic number of buttons Jan 23 06:55:08 so it could be 1 or 4 Jan 23 06:55:13 or anything in betweenj Jan 23 06:55:22 so how do I align this to the bottom Jan 23 06:55:36 and make sure that the line of text at the top is in the middle of the remaining space? Jan 23 06:57:38 mmh Jan 23 06:57:45 wakelock constants being deprecated... Jan 23 07:01:29 Zharf: for a good reason Jan 23 07:01:47 thepoosh, what's that? Jan 23 07:01:58 other than FLAG_KEEP_SCREEN_ON which is not a good solution for me Jan 23 07:02:02 bad programmers not releasing Jan 23 07:02:09 yeah well, I'm not a bad programmer ;) Jan 23 07:02:14 well, too bad Jan 23 07:02:19 there are many bad ones Jan 23 07:02:22 true Jan 23 07:02:28 Zharf, do you like android studio 0.4.2? Jan 23 07:02:33 I don't use it Jan 23 07:02:35 I use intellij idea Jan 23 07:02:44 oh ok. Jan 23 07:03:30 thepoosh, can I turn off FLAG_KEEP_SCREEN_ON after activity creation and back on if necessary? Jan 23 07:03:38 hmmmm Jan 23 07:03:40 if so, then I don't mind... Jan 23 07:03:43 good question Jan 23 07:04:42 what is Gradle? Jan 23 07:04:49 a build system Jan 23 07:05:05 mmm Jan 23 07:05:18 Zharf: PARTIAL_WAKELOCK wasn't deprecated Jan 23 07:05:19 i have an error Gradle project sync failed Jan 23 07:05:37 thepoosh, but screen turning off for watching video kinda sucks, don't you think Jan 23 07:05:49 Basic functionality will not work properly. Jan 23 07:06:00 are you playing the video on a specific fragment and not in an activity?! Jan 23 07:06:12 you can override the lockscreen button Jan 23 07:06:20 which is what BSplayer did Jan 23 07:07:04 override lockscreen button? I don't mind user being able to turn their screen off, but if it turns off automatically while video is playing that's bad Jan 23 07:08:44 partial wake lock only won't let the cpu sleep, screen can turn off still Jan 23 07:08:58 I want to add some special character with button different than ALT but when I did it some ActivityManager launches shortcuts to different apps. How to avoid that? Jan 23 07:09:19 cortexA9, I have no clue about gradle stuff, never used it yet Jan 23 07:09:19 can someone remind me, what spinners are called in android (not drop-down boxes, but loading/waiting graphics) Jan 23 07:09:26 then you should define the activity in the manifest to leave the screen on Jan 23 07:10:05 thepoosh, but when the video is stopped it should be allowed to turn off the screen, imo Jan 23 07:10:08 :p Jan 23 07:10:27 hmmmm Jan 23 07:10:39 then use the deprecated code Jan 23 07:10:46 yeah... Jan 23 07:10:51 and read through what VLC does Jan 23 07:11:16 I think they disallow sleeping also when paused Jan 23 07:11:42 I would hate that, personally Jan 23 07:12:09 Hey Guys anyone has experience with calaba.sh Jan 23 07:16:29 Zharf: https://github.com/mstorsjo/vlc-android/blob/master/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java Jan 23 07:26:04 why would i get an operation not permitted for dd? Jan 23 07:26:52 How can I access system theme components from within code? for example if I want to set an Image view to be the android-19/data/res/drawable/progress_medium.xml drawable? Jan 23 07:28:43 do I have to make my own custom theme to use any resources from Holo? Jan 23 07:30:01 if you can access it with @android:drawable/... then you can access it with android.R.drawable. in code Jan 23 07:30:02 zzxx: Do you mean android.R? Jan 23 07:30:50 thepoosh, that file has around 3-4 times more lines of code than I find comfortable in a java file :p Jan 23 07:31:00 LOL Jan 23 07:31:07 after I hit 500 lines, I refactor Jan 23 07:31:08 :p Jan 23 07:31:11 that's open source apps for you Jan 23 07:31:26 I have some files in my app with over 2KLOC Jan 23 07:31:40 I do too but they're third party libraries :) Jan 23 07:33:00 procton: well yes, exactly, but I am only able to access my own drawables from within there, Is there a way to access Holo resources through R? Jan 23 07:33:08 in my personal project most code in a file written by me is around 315 lines :p Jan 23 07:33:57 zzxx: your resources are located in yourpackage.R, not android.R. Jan 23 07:35:36 procton: ah! perfect. thanks Jan 23 07:35:45 yeah i did not realize that Jan 23 07:38:58 So where can i find this: http://cdn8.staztic.com/app/a/3014/3014992/the-loading-spinner-app-3-1-s-307x512.jpg under android.R ? what is it called? Jan 23 07:39:01 :) Jan 23 07:45:47 ok I had no question Jan 23 07:53:24 Anyone use Android Studio? Can I separate test in to integrationTest and instrumentTest? I cannot find a way in either gradle build files or Android Studio to add a new source set. Jan 23 08:34:33 hi all, how can we optimize the performance of the listView with lot of records ? Jan 23 08:35:24 currently my entity list is about 10k + records and I am loading the whole table into the list view Jan 23 08:35:36 i think it is not a good idea Jan 23 08:36:06 adapter? Jan 23 08:36:36 return the need size in the getCount() ? Jan 23 08:37:14 bubuzzz: have you tried an implementation of a lazy list? Jan 23 08:38:28 bubuzzz: when scrolling, if you get to the location of lets say 4 before the end of the temp list size, you load more items into memory and then the list is filled only if the user scrolls all the way sown Jan 23 08:38:44 bubuzzz: plus, give this a read Jan 23 08:38:44 http://optimizationtricks.blogspot.in/?utm_source=Android+Weekly&utm_campaign=d201f012d0-Android_Weekly_85&utm_medium=email&utm_term=0_4eb677ad19-d201f012d0-337295881 Jan 23 08:39:29 ok thepoosh, exactly what i looking for. Thanks Jan 23 08:39:36 pleasure Jan 23 08:46:13 Can I store some value to the system from my application, and when user uninstall the application and reinstalls it , my application can read that value and determine some logic based on that? Jan 23 08:46:33 i.e. I want to prevent people from getting free trials multiple times Jan 23 08:46:49 and want to store something in the system, not in the data folder of the app Jan 23 08:46:55 use a license server Jan 23 08:46:56 because the data folder can be removed Jan 23 08:47:00 there's no way to do it locally Jan 23 08:47:42 I doubt that Jan 23 08:47:49 then have fun Jan 23 08:48:05 i'll just reflash my phone every morning and use your trial forever Jan 23 08:48:08 JakeWharton: sure, a license server makes sense, but I think there is something that allows me to persist locally Jan 23 08:48:16 JakeWharton: if you reflash yes Jan 23 08:48:21 no. you cannot trust clients Jan 23 08:48:35 but I want to prevent people from doing so if they delete the data folder or reinstall my app Jan 23 08:48:48 I want to allow if you reflash Jan 23 08:49:25 JakeWharton: I know. Jan 23 08:50:48 JakeWharton: why is it possible only if you reflash? Jan 23 08:51:25 it will wipe out anything you do Jan 23 08:51:33 ok I have returned with the same question Jan 23 08:52:13 the system partition is read only anyways Jan 23 08:52:14 How to disable COMMAND+C function in particular app ? Jan 23 08:52:36 I mean any key shortcut Jan 23 08:53:34 Command is recognized as META KEY Jan 23 08:54:37 JakeWharton: so, I can only write to app's data dir? Jan 23 08:54:43 JakeWharton: sdcard, etc... Jan 23 08:54:51 if you have access to the SD card Jan 23 08:54:53 but yes Jan 23 08:55:03 and it triggers some apps when combined with other keys like C for contacts, A for calculator... Jan 23 08:55:19 how to disable this shortcuts in my app? Jan 23 08:55:35 JakeWharton: yeah, but I want to make it non obvious for the user, i.e. I don't want the user to just delete the apps dir or sd card dir/file I create and get a free trial Jan 23 08:56:03 that's why I asked to hide it "somewhere else" besides a license server Jan 23 08:57:37 and that's why I answered as such above Jan 23 08:58:21 maybe try the KeyChain Jan 23 08:59:41 morning happy Android devs Jan 23 08:59:51 \o/ Jan 23 09:01:18 afternoon Jan 23 09:02:14 what about disgruntled android devs? Jan 23 09:03:07 late evening... or early morning ..... depending. Jan 23 09:04:52 SirLagz: where are you that it is afternoon? Jan 23 09:05:41 its morning in europe, and evening in australia.... somewhere between there i guess :P Jan 23 09:05:48 just curious Jan 23 09:06:46 Can anyone give me example of using saveFragmentInstanceState/setInitialSavedState? Jan 23 09:07:19 When I use myFragmentState = getFragmentManager().saveFragmentInstanceState(this); in OnPause everything is ok Jan 23 09:08:01 But when I write this.setInitialSavedState(myFragmentState); in onActivityCreated, application fall down Jan 23 09:08:39 Flank_Y320-U30: http://imgur.com/jacoj Jan 23 09:09:24 zzxx, localized already Jan 23 09:10:19 "application fall down" is not descriptive enough Jan 23 09:12:19 zzxx http://savepic.net/4348508.png Jan 23 09:13:20 your eyes don't burn? Jan 23 09:13:30 Flank_Y320-U30 you should learn to use http://pastebin.com/ or gist Jan 23 09:14:51 well, there is pastebin http://pastebin.com/9MTm6iSf Jan 23 09:20:04 Flank_Y320-U30: thank you for posting that Jan 23 09:20:33 I myself am not sure what is going on, but perhaps look closely at the order you are calling things Jan 23 09:20:35 and just my little code http://pastebin.com/pzFnci7U Jan 23 09:21:37 Instance restorting has got to be the most annoying BS ever. Jan 23 09:22:46 Tee_Pee: inorite Jan 23 09:22:48 so terrible Jan 23 09:22:51 Tee_Pee: agreed. Jan 23 09:23:00 I'm told that the 'retained fragment' pattern can help get around it Jan 23 09:23:56 According to the code I've been looking at for the past hour, no it can't. Jan 23 09:25:08 Hi! Is there any method to work with database without context? May be there is some alternative library for direct access to database? Jan 23 09:25:35 Why on earth would you need that? Jan 23 09:27:51 So recommendation is to use 'retained fragment' pattern? Jan 23 09:27:58 There is such thing Xposed Framework: http://forum.xda-developers.com/showthread.php?t=1574401 . I need to access to database from IXposedHookZygoteInit (there is no Activity) Jan 23 09:28:41 Flank - I've had issues in the past with the retained instance fragment where two fragments inflating the same view (conflicting ids on views) would make the app crash Jan 23 09:29:44 Or may be there is another way to store 10000 items somewhere and select some from them. I thought that database would be the best choice. Jan 23 09:30:52 Tee_Pee, all my fragments are different, but I loading they alternatively into the same place (main activity) by clicking on actionbar icons Jan 23 09:31:43 the fragments I used had to be identical (image gallery) Jan 23 09:31:55 stupid question .. could someone just point me in the right direction i want to add another slide open menu to the right of the screen like G+ alerts Jan 23 09:32:15 have the normal menu on the left with DrawerLayout and have the alerts on the right Jan 23 09:32:32 is that another drawerlayout inside the original? Jan 23 09:37:09 How can I determine if the VM is Art or Dalvik programatically? Jan 23 09:51:29 i put drawerlayouts inside of my drawerlayouts Jan 23 09:57:15 cff: http://stackoverflow.com/questions/19830342/how-can-i-detect-the-android-runtime-dalvik-or-art Jan 23 10:00:44 cff: I'm getting that the property persist.sys.dalvik.vm.lib is either libdvm.so or libart.so Jan 23 10:01:00 nexus 5 with ART, nexus 4 with dalvik in this case Jan 23 10:03:07 rdnt: thanks Jan 23 10:03:33 oops sorry figured you were afk Jan 23 10:05:25 what usecase requires you to care what the runtime is? Jan 23 10:09:22 Morning. I've got into a bit of a mess with a package rename in intellij from an imported eclipse project. The R wont regenerate for a start. I have reimported but it's still not building properly (no errors and make/build just sits there spinning with no cpu being used). Obviously I'd like to reset the project. Is there a shortcut to this do you know? Failing that can I just remove eveything except except AndroidManifest, src and res Jan 23 10:09:22 and then reimport? Everything seems to be "compiling" fine (everything in the main activity references properly back to resources etc and there are no semantic or syntactic issues) - just build sits there for ever. Jan 23 10:10:21 how do you know R won't generate Jan 23 10:10:59 IDEA doesn't write R to the file Jan 23 10:13:17 how do you implement scrollbars that hint like the one in the contacts app? Jan 23 10:14:56 rgr, what version of IDEA are you using Jan 23 10:16:08 rgr, well, it doesn't matter really... open project settings and verify that your module has android facet configured Jan 23 10:17:34 Hello. Does anyone have any hint for me (modeling). I have a parserclass which recieves a json which includes command to process + arguments and output (Output via HTTP, XMPP, Skype, whatever). The App has several Modules. They are all as "IntentServices". How could i build up the model that those Modules may respond with a message OR a file OR binary data AND respond "maybe" via Skype, Jan 23 10:17:34 SMS, whatever? Should i start those services via intents and parse a JSON? Jan 23 10:19:51 Ankhwatcher, look up IndexerAdapter Jan 23 10:20:21 oops, that's a class we had internally. SectionIndexer interface Jan 23 10:22:37 hah Jan 23 10:22:45 thanks, I'll look into it Jan 23 10:23:10 sonOfRa: so you didn't mean this: https://code.google.com/p/xandroid/source/browse/branches/xdict/src/net/xfok/xdict/IndexAdapter.java?r=159 Jan 23 10:25:53 https://gist.github.com/sonOfRa/a59353d302f7d373c879 that's what we did, was a while ago though, not sure if that is "best practice". Has some project-specific code, but you should be able to filter that out easily Jan 23 10:26:11 it might also be completely wrong, but it justworked(TM) Jan 23 10:30:11 Zharf: apologies for delay getting back. Latest. 13.0.1. I'm just googling on how to set up the necessary gradle files since they arent created either on import. Jan 23 10:30:46 "android facet" is something else I will look at and google (the start up investment is high on this stuff ;)) Jan 23 10:35:26 Zharf: is says in project structure/facets that Android (unsmoked) and then a list of android dirs Jan 23 10:35:39 "artifacts" is empty. Jan 23 10:36:15 rgr, I don't use gradle with IDEA myself, so I can't help you with that, but I can try to help you otherwise :) Jan 23 10:36:49 rgr, unsmoked is your project name I guess? Jan 23 10:37:45 rgr, check "Edit configurations..." from the Run menu Jan 23 10:37:46 appreciated. I'm a noob but a long term programmer. getting there. The R I was referring to is gen/*/R which is surely whats imported into the mainactivity class in order to create the activity UI? Jan 23 10:38:17 rgr, you'll never see anything but a note about automatic generation of that file in that file when using IDEA Jan 23 10:39:26 ok re:edit congs : I have two of the same name (now you see where I started to go wrong I szspect) one all in lower case and one in mixed. e.g MyProj and myproj. Both identical. Jan 23 10:39:35 congs? Confs. Jan 23 10:39:54 Android application configurations though? Jan 23 10:40:07 yes Jan 23 10:40:43 ok, well you can remove either Jan 23 10:41:52 then make sure the other one has module set to your project name, "deploy default APK", "Launch default Activity" and "Show chooser dialog" or "USB device" Jan 23 10:41:57 selected Jan 23 10:42:17 k Jan 23 10:42:41 yup that was already all set. Jan 23 10:42:48 also, a question... do you have these little tab kind of things all around the sides in IDEA Jan 23 10:43:04 "project", "terminal", "event log", etc Jan 23 10:44:04 they might be hidden by default since version 13... Jan 23 10:44:20 if they are, there's a little box on the lower left corner of the window that you can click on to make them appear Jan 23 10:44:27 (it hides too much IMO - if something goes wrong you're f-d.) Jan 23 10:45:05 tell me when you see them :) Jan 23 10:45:07 ok.... guess what. It runs. I went to bed at 5am, managed 2 hours sleep. It "just works" I think now. Thank you. You've been a calming influence. Jan 23 10:45:17 heh Jan 23 10:45:32 I think. Hang on. Need to check I can debug. Where *is* the generated R.class? Jan 23 10:45:36 btw Jan 23 10:46:07 I used to browser it I'm sure before the screw up. Or maybe it was a remnatnt from the project being in eclipse? Jan 23 10:46:14 remnant Jan 23 10:46:36 probably eclipse thing Jan 23 10:47:17 IDEA doesn't write R to a file, not sure if it does even during compilation or if it compiles from memory Jan 23 10:47:53 I haven't had R generation issues since around IDEA 11 when they got rid of the tool that generates them that they use in ADT too Jan 23 10:49:49 ok cheers. Maybe you could help me housekeep. How do I get intellij to clean up? Possibly I could show you a pic of the file structure and you could advise what I can clean out - that would be a big help for me to understand what project files do what. Eclipse is now consigned to the bin. Jan 23 10:52:54 IDEA might've adopted eclipse's output directory when you imported it Jan 23 10:53:06 you can check from project structure -> modules -> your project name -> paths Jan 23 10:56:01 I'm not sure I follow. You mean it might be using (and coping with) an alien structure? What should the output directory be? I manually created a bin (I had deleted it before to try and clean up) but there is nothing in it. There is an "out". Jan 23 10:56:57 out is by default IDEA output directory Jan 23 10:57:08 thats good news. Jan 23 10:57:14 in one of my projects that I imported from eclipse it chose to use the bin instead Jan 23 10:57:46 you can of course change it if you like, but it doesn't really matter Jan 23 10:59:35 hi Jan 23 10:59:57 how to make a post request to a url Jan 23 11:00:43 http://ec2-54-251-141-122.ap-southeast-1.compute.amazonaws.com:8080/quickchat/PostMessage?instance=12021&from=9035&message=start&security_token=15279b39-775c-4591-9044-5cdf269e91c7 Jan 23 11:01:05 anyone ?? Jan 23 11:02:36 Zharf: should gen be on the source list or not? Jan 23 11:02:50 yes Jan 23 11:02:50 rgr, marked as a source directory, yes Jan 23 11:03:35 rak_, AndroidHttpClient and org.apache.http.client.methods.HttpPost, for example Jan 23 11:03:42 you've been a big help. Thanks. Jan 23 11:04:03 i am not able to make request to that url Jan 23 11:04:23 rgr, always happy to help new converts to find joy in intellij Jan 23 11:04:48 It#s impressive. Gives me that "warm fuzzy" feeling I havent had in years. Jan 23 11:04:54 Zharf ,strict mode Block Gaurd Error Jan 23 11:05:15 the link works in my browser Jan 23 11:05:36 but when i make a httpPost request to that url,it doesnt work Jan 23 11:05:43 rak_, don't do network stuff in main t hread Jan 23 11:06:02 should i use an async task ?? Jan 23 11:06:08 or just a thread, yes Jan 23 11:06:18 ok,thanks Jan 23 11:06:25 any resources ?? Jan 23 11:06:31 will be much helpful Jan 23 11:07:00 I'm using smoothScrollToPosition with an ExpandableListView, and it works, but the item being scrolled to is just barely on the screen (at the very bottom). How can I make it in the center or on the top of the screen? Jan 23 11:07:38 rak_: ever heard of volley? Jan 23 11:07:49 no Jan 23 11:07:53 never tried it Jan 23 11:08:02 http://www.youtube.com/watch?v=yhv8l9F44qo Jan 23 11:08:23 from io 2013 Jan 23 11:08:32 thanks for the link abelian ;) Jan 23 11:08:34 volley is ok but I would still recommend learning the lower level stuff for better understanding Jan 23 11:08:40 ^ Jan 23 11:08:44 I have two widgets which are configured via a settingsfragment. But each time the settingsfragment is called, the values are not the ones corresponding to the caller widget but just the latest ones Jan 23 11:09:18 Anyone ever had that issue with smoothScrollToPosition? Jan 23 11:09:34 can i somehow differ between the preference-sets in the preferencefragment to provide the right values? Jan 23 11:11:30 or can i set a "place" depending on the widgetId where the preferences of the settingsfragment shall be saved? Jan 23 11:12:27 rak_: if you watch the whole video, he explains some things about typical implementations using asynctask if you still want to go that route, good watch either way Jan 23 11:12:48 yea Jan 23 11:12:56 i am watching it right now Jan 23 11:13:10 does he give some example ? Jan 23 11:13:18 yeah Jan 23 11:13:37 mainly code snippits Jan 23 11:13:56 thanks a bunch mate ;) Jan 23 11:14:43 I just switched to volley, and it's really easy, I'm not pro at development Jan 23 11:14:56 i am a n00b too Jan 23 11:15:10 just building a msg app Jan 23 11:15:37 cool, like chat? Jan 23 11:15:37 using amazon ec2 Jan 23 11:15:57 yea,like chat...to understand the working of instant messaging Jan 23 11:16:14 I'm using volley on this app at work and it's been a timesaver, but it has had a few quirks... Jan 23 11:16:22 luckily the source is available Jan 23 11:16:26 like what zharf? Jan 23 11:16:39 source in github ? Jan 23 11:16:52 not github, google Jan 23 11:16:59 what do you do abelian ? freelancer ? Jan 23 11:17:02 but yeah its git Jan 23 11:17:03 AbelianHorizon, something about caches, can't remember specifics right now Jan 23 11:17:43 Zharf: ah Jan 23 11:19:30 Ok guys I found that intent activity is responsible for such mess Jan 23 12:18:45 am i allowed to create an imageview linked to the application context? Jan 23 12:21:31 Why spinner style changing after r1.setSelection(adapter.getPosition(r1value)); ? Jan 23 12:21:32 My code http://pastebin.com/Vc8ucNST Jan 23 12:31:26 spinner style http://savepic.net/4351613m.png Jan 23 12:31:51 [A3G1S]: HAI Jan 23 12:32:00 <[A3G1S]> hey Jan 23 12:32:25 found out about an annoing memory leak in samsung devices the other day Jan 23 12:32:52 during my memory optimisation round Jan 23 12:33:07 When I try to upload pictures that being taken from sending in whatsapp (directly from whatsapp) I got an IOException - http://pastebin.com/KKW2CmDd . I can upload all other images, but not those images. any idea why? Jan 23 12:35:43 Zharf: still there? I have a Q about projects/subjects Jan 23 12:36:03 wha Jan 23 12:36:43 it has same permission. owner and group like other pictures - -rw-rw---- root sdcard_r 2118613 2014-01-22 18:50 IMG-20140122-WA0004.jpg Jan 23 12:37:09 rgr, shoot Jan 23 12:37:11 I'm trying to get gradle working properly (I know you said you dont use it too much). And I see that any new project in intellij creates the android app as a sub project of a higher level entity. Is there a reason for this? I'm guessing the "app" or first created per se is a module of the overrall project? Jan 23 12:37:38 (if that makes any sense) Jan 23 12:39:14 all I know about the android gradle support in idea so far is that there's a specific project type (facet, really) for android gradle Jan 23 12:39:25 when you create a new project you can choose Gradle: Android Application Jan 23 12:40:19 yoavst, from the log you shown us it looks more like a problem on the other side.. but that's just my interpretation. Are you really sure it works for other imgs? Jan 23 12:40:28 sure Jan 23 12:40:32 also, IDEA is different from eclipse, eclipse workspace is kind of IDEA project, and eclipse project is kind of like IDEA module, but there's no universal workspace like in eclipse Jan 23 12:40:36 it work even with picture i recived in whatsapp Jan 23 12:40:49 it's been like 10 years since I last used eclipse though Jan 23 12:40:52 but it doesn't work with picture i took for directly sending Jan 23 12:42:06 yoavst, then there is something wrong in the files themselves... wrong mimetype/filesize.. Jan 23 12:42:49 yoavst, can you load and display that img in a imageview? Jan 23 12:42:56 I'll try Jan 23 12:43:10 or just download it and open it with any image viewer on your PC? Jan 23 12:43:56 i can see it on phone Jan 23 12:44:05 but didn't try on pc Jan 23 12:46:13 GNUton: yes, I can Jan 23 12:46:29 yoavst, weird.. that it has to work. Jan 23 12:46:45 I know :( Jan 23 12:47:12 it also jump between 2 errors Jan 23 12:47:19 now the error is - 01-23 14:46:04.790: W/System.err(26882): java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) Jan 23 12:47:37 Solved. All I need was check sPref.contains("SpinnerValue") Jan 23 12:47:46 old error was - 01-23 14:22:54.026: W/System.err(24632): java.net.SocketException: sendto failed: EPIPE (Broken pipe) Jan 23 12:49:11 Well, I'm away for 20 minutes Jan 23 12:57:41 So my first app is in the Google Play app store... what do I do now? Jan 23 13:00:08 keegangrayson: get people to buy it ? Jan 23 13:00:11 keegangrayson: or download it Jan 23 13:00:13 if it's free Jan 23 13:00:30 its all about the marketing Jan 23 13:00:43 it is free. I didn't know if there were any best practices to promote it... should I put it in as many app stores as I can? Jan 23 13:01:04 keegangrayson: twitter, facebook, linked in, word of mouth Jan 23 13:01:32 is there an easy way of getting surrounding suburbs if the user is in a suburb ? Jan 23 13:01:53 ? Jan 23 13:02:06 keegangrayson: social media is a powerful marketing tool. use it Jan 23 13:02:41 SirLagz: do you have any tips for reaching the right audience for an app? I am really new at this so I haven't built up any connections other than friends Jan 23 13:03:13 keegangrayson: I'm in the same boat as you there :D Jan 23 13:03:58 SirLagz: oooh, how is your app doing? Jan 23 13:04:09 keegangrayson: my first app has around 900 downloads Jan 23 13:04:18 my second has about 60 ? i think Jan 23 13:04:57 SirLagz: how long have they been on the market? Jan 23 13:05:06 1st one has been on for about a year now Jan 23 13:05:14 2nd one for a couple of weeks Jan 23 13:05:20 2nd one has 80 downloads now.ooo Jan 23 13:05:24 I didn't realise haha Jan 23 13:05:45 nice! Jan 23 13:05:57 keegangrayson: what's your app do ? Jan 23 13:10:29 it finds live local music around you Jan 23 13:11:18 I am interested in learning how to work with phonegap though so I can make cross platform apps, does anyone here use that? Jan 23 13:11:30 you mean web pages? Jan 23 13:11:31 ah awesome Jan 23 13:11:36 I've played with phonegap Jan 23 13:11:41 never got an app going with it Jan 23 13:11:54 keegangrayson: you should go around to all the local places that have live music and show people your app then Jan 23 13:12:19 show the people what your app can do Jan 23 13:12:38 having a connection with the users of your app helps a lot Jan 23 13:13:46 SirLagz: well that is a good idea and it should be easy since my day job is as a professional musician... that's where I make the most money, but I am hoping app development will allow me to travel a little less over time Jan 23 13:14:30 back Jan 23 13:14:58 keegangrayson: brilliant ! Jan 23 13:15:09 keegangrayson: make a small announcement before you start playing to advertise your app Jan 23 13:15:37 if you can get a few other bands to do the same for your app, even better Jan 23 13:15:50 So GNUton do you have any idea? Jan 23 13:15:55 as the app will benefit them as well as you, they would probably go for it as well Jan 23 13:16:10 I will try that and I think I will get some simple business cards printed Jan 23 13:16:47 sounds good Jan 23 13:18:15 When I try to upload pictures that being taken from sending in whatsapp (directly from whatsapp) I got an IOException - http://pastebin.com/KKW2CmDd . I can upload all other images, but not those images. any idea why? Jan 23 13:19:31 yoavst, your scenario looks quite unreal! If the image is not corrupted and you can read it.. it's not the image in my understanding.. Jan 23 13:19:55 Well, I'll update my ROM to the new version and I'll try again Jan 23 13:21:06 yoavst, or just try on another phone.. you can try on genymotion Jan 23 13:21:18 how is your app difference from the oodles of resources which already present all the local live music? Jan 23 13:21:23 thats what to play on . Jan 23 13:21:29 if you'll excuse the pun. Jan 23 13:21:32 the problem is related to whatsap Jan 23 13:21:45 so I'll have to disconnect myself if i'll use genymotion Jan 23 13:22:04 rgr: I looked and none of the other apps actually show local live music unless it's an app for events around the area in general... they also only show big acts, mine shows even small tiny shows in coffee shops Jan 23 13:22:05 Justin Bieber just got arrested, start making your "Free Justin Bieber" apps Jan 23 13:22:18 mikedg: also captain and tenille are divorcing Jan 23 13:22:28 LOL, nice idea keegangrayson :) Jan 23 13:22:30 how does it source it's info? Jan 23 13:23:01 mikedg: +1 ;) Jan 23 13:23:24 rgr: from a variety of event services that provide api's... I just sort and parse them differently. the closes thing to my app is bandsintown and that only shows more major acts and is overly complex. mine is simple and does one thing. Jan 23 13:24:15 Why the duck does twitter allow hardcore photos :/ Jan 23 13:24:24 it's a niche app for sure, but if you're looking for live music it's easy to open it and find something right away where you are... good for dates Jan 23 13:25:41 mikedg: hardcore as in the hardcore you find on 18+ websites ? Jan 23 13:25:51 Yes Jan 23 13:26:02 mikedg: they obviously have poor moderation then lol Jan 23 13:26:17 keegangrayson: I think that's an awesome Idea. A lot of apps are built off the 'do one thing, but do it very well' idea. Jan 23 13:26:49 thanks, we'll see if anyone else likes it. I 'launched' it last night. Jan 23 13:27:46 keegangrayson: you could also ask the venues that you play at to see if they have a bulletin board thingo that you could post a flyer for your app on Jan 23 13:28:03 as people look for other stuff that is going on, they'll see your flyer and hopefully download your app Jan 23 13:28:15 keegangrayson: also, QR code on the flyer. Jan 23 13:28:38 definitely doing a QR code Jan 23 13:29:53 my app crashes really well ;) Jan 23 13:30:19 has anyone had any luck doing a free app and a premium app without ads? Jan 23 13:30:27 define luck :) Jan 23 13:30:32 money. Jan 23 13:30:33 haha Jan 23 13:30:34 keegangrayson: My second app is exactly that. Jan 23 13:30:41 i have a paid only app Jan 23 13:30:42 one free one, one paid one. Jan 23 13:30:50 Yes, look at some of the top paid apps Jan 23 13:30:51 version I should say. Jan 23 13:30:57 CallumTaylor: you getting paid decently? Jan 23 13:30:59 hmm. I own and run a pub that deals with live music and know a lot of places doing it. My own experience is that the kind of people going to these smaller independant places use traditional methods like word of mouth and local musci magazines (webbased and more and more simply Facebook interest groups. Obviously no one uses Google+ ;) Jan 23 13:31:03 paid app does a whole lot more, but it's still very new Jan 23 13:31:14 keegangrayson: not really, its a niche market Jan 23 13:31:15 You need a marketing strategy Jan 23 13:31:23 You can't just throw the app out there and hpe for downloads Jan 23 13:31:26 CallumTaylor: what sort of app ? Jan 23 13:31:31 most of the money i earn is from the developer initiative the service gives out to developers Jan 23 13:31:42 http://robinapp.net Jan 23 13:31:55 CallumTaylor: what developer initiative? Jan 23 13:32:02 DOGE Jan 23 13:32:07 not doge! Jan 23 13:32:17 the service my app is for pays out 30k to developers every month based on the rating from users Jan 23 13:32:31 wow. that almost made my monitor explode. loud. Jan 23 13:32:41 CallumTaylor: interesting Jan 23 13:32:49 CallumTaylor: how do I... do that. Jan 23 13:33:07 http://developers.app.net/ Jan 23 13:33:33 I wonder how many potential users even know what "app.net services" are. Jan 23 13:34:16 that dog reminds me of JakeWharton's https://plus.google.com/108284392618554783657/posts/KojpGy5eMen Jan 23 13:34:34 I've heard of app.net. never looked into it though Jan 23 13:34:38 I don't know what app.net services are... but my interest is piqued Jan 23 13:34:47 Why its the social network for people who have $50! Jan 23 13:34:57 $36 now Jan 23 13:35:00 hahaha Jan 23 13:35:02 or free, you can get a free account Jan 23 13:35:13 hahaha. spammer. Jan 23 13:35:34 Still there's one born every day... ;) Jan 23 13:35:41 who Jan 23 13:36:13 this is what hes pimping http://ihave50dollars.com/ Jan 23 13:36:41 aha i remember that Jan 23 13:36:47 GNUton: the problem isn't on my Brother Galaxy Y (4.1.1) Jan 23 13:36:57 I have 4.4.2 Jan 23 13:37:20 that site is amazing Jan 23 13:37:33 lol @ ihave50dollars Jan 23 13:38:14 in case you never saw it, its a perfect spoof of the app.net shite Jan 23 13:38:33 he was going to "fix twitter" by charging people $50 to use it Jan 23 13:38:57 have you used app.net Jan 23 13:39:01 hi, i dont know reason for multiple markers in this code , can someone see whats wrong with finally block here http://pastebin.com/PCyNThfT Jan 23 13:39:05 yoavst, Brother? what's that? isn't Galaxy Y a Samsung model? I have always problem coding on samsung devs Jan 23 13:39:14 devices Jan 23 13:39:29 Galaxy Yound is samsung model Jan 23 13:39:31 young Jan 23 13:39:43 and it work on this device, but not on mine Jan 23 13:40:00 yoavst.. check the size of the image Jan 23 13:40:16 that's a lowend model.. you may run out of mem quite soon with images Jan 23 13:40:25 when a search widget is submitted it launches by default an Intent android.intent.action.SEARCH which is handled by the default Search Activity, is it possible to clear the activity stack when that happens Jan 23 13:40:37 GNUton: 2.02MB Jan 23 13:40:47 even if you should get a Out of memory exception.. I get lots of them on Android 2.3 devs Jan 23 13:40:48 devices Jan 23 13:40:49 I have nexus 4 with 4.4.2 Jan 23 13:41:13 ok.. you should not get any of these problems with a nexus 4 Jan 23 13:41:20 but on the galaxy yound has only 2mp camera, So I think it wouldn't matter :P Jan 23 13:41:30 It not happens only with single photo Jan 23 13:41:42 yoavst, it matters if you start to leak memory Jan 23 13:42:02 I use apache library Jan 23 13:42:05 will i start? Jan 23 13:42:42 the problem is somewhere.. if you suppose that everything is okay you will never find it! :P Jan 23 13:43:34 has anyone had issues with AS 0.4/gradle 0.7 not resolving dependancies properly? Jan 23 13:43:46 Zharf: under what conditions does intellij provide a "clean project" option? I dont have it here anymore. Jan 23 13:43:47 and how about my code , can someone check that for me? Jan 23 13:44:27 Ok, but what about this demn whatsapp :( Jan 23 13:44:42 Make another picture from whatsapp Jan 23 13:44:44 same results Jan 23 13:44:48 rgr, it doesn't really have one, just Build -> Rebuild project is probably what you want Jan 23 13:50:22 Zharf: what did you do in the end with the player? Jan 23 13:51:27 GNUton: So I should give up and think that it is a bug in my ROM? Jan 23 13:51:55 thepoosh, used the deprecated wakelock constant Jan 23 13:52:16 Zharf: you go gurl! Jan 23 13:52:17 yoavst, I'm not saying that.. I'm just saying that you cannot assume everything is okay if something doesn't work Jan 23 13:54:52 But what can I do? Jan 23 13:56:42 Hmm. sure I had one there the other say. Oh well. ps project back shipshape and bristol fashion how with gradle integration. Jan 23 13:56:50 s/how/now Jan 23 14:00:27 Hi .. does anyone know what the "Allocation size" in DDMS in Eclipse means in the Allocation Tracker results ? Jan 23 14:03:11 Morning Jan 23 14:04:00 morning Jan 23 14:04:33 morning?! Jan 23 14:04:40 it's 16:00 here! Jan 23 14:04:55 evening Jan 23 14:04:59 afternoon Jan 23 14:05:00 its 10pm here Jan 23 14:05:27 ugh, no RTLD_SELF. :-/ Jan 23 14:06:28 haha Jan 23 14:06:35 only 9 am here Jan 23 14:06:43 start of the work day Jan 23 14:07:07 GNUton: i have network trace file Jan 23 14:07:08 i want to go to bed. But I want to nut out this bit of my app to get surrounding suburbs. Jan 23 14:07:10 will it help? Jan 23 14:07:12 It's annoying me. Jan 23 14:07:14 it's 9 AM here Jan 23 14:07:32 my girlfriend woke me up early :( Jan 23 14:07:42 early ? my kids wake me up at 6am every day without fail. Jan 23 14:07:56 jonc: god you're slacker down there Jan 23 14:08:00 your kids? my brothers kids wake me up nice and early Jan 23 14:08:01 yoavst, did you try to sniff the connection with wireshark in order to try to understand what happens? Jan 23 14:08:08 my work day is full now, but I don't really want to leave yet Jan 23 14:08:11 yes, I have a pcap file Jan 23 14:08:13 and they just sit on me with their soft toys playing with me lol Jan 23 14:08:15 but idk what to do Jan 23 14:08:19 CallumTaylor: your brothers kids live in your house ? Jan 23 14:08:22 way too many people active out there, on their way home from work Jan 23 14:08:26 Zharf: where're you from? Jan 23 14:08:27 No kids here Jan 23 14:08:31 finland Jan 23 14:08:31 no he brings them round my parents every morning at 7:30 Jan 23 14:08:32 seems like we're neighbors Jan 23 14:08:35 hmmm Jan 23 14:08:36 yoavst, great check what happens... is your client sending anything to the server? Jan 23 14:08:36 CallumTaylor: ahh Jan 23 14:08:39 (i still live at my parents) Jan 23 14:08:39 not so much Jan 23 14:08:53 Only 25 and don't plan on them for another few years minimum Jan 23 14:08:54 CallumTaylor: I was going to say, if you let your brothers kids live in your house, you're a brave man. haha Jan 23 14:08:58 it seem to only connect the adb wifi Jan 23 14:09:02 Zharf, finlandDDD!! Jan 23 14:09:07 i'd have the patience of a saint Jan 23 14:09:07 Although my girlfriend wakes me up at like 5am because she doesn't go to bed until then Jan 23 14:09:09 jonc: haha...that's what I thought too. Jan 23 14:09:23 what is the correct way to get a reference to Activity / Context within a fragment? this.getActivity() ? Jan 23 14:09:35 theblang: yes Jan 23 14:09:36 GNUton, ... Jan 23 14:09:41 Zharf, I'm there too Jan 23 14:09:48 sucks to be you Jan 23 14:09:49 or me Jan 23 14:10:42 CallumTaylor: it's not you. It's your house that would bear the brunt of the kids :D Jan 23 14:10:58 so true Jan 23 14:11:03 i'd bubble wrap the walls and floors Jan 23 14:11:07 Kids sound expensive :P Jan 23 14:11:10 haha Jan 23 14:11:15 I want to pay off student loans first Jan 23 14:11:15 s/expensive/annoying Jan 23 14:11:22 actually, both Jan 23 14:11:24 s/annoying/hell Jan 23 14:11:31 i didn't say that. Jan 23 14:11:41 haha Jan 23 14:11:45 didn't say what Jan 23 14:11:46 GNUton: http://i1.minus.com/jfcTgsmf7caR.png Jan 23 14:11:48 no idea. Jan 23 14:12:06 anyways I really need to get apping...What's the best way to store 1500 lines of postcodes and make it easily searchable by postcode ? Jan 23 14:12:13 what jonc said Jan 23 14:12:32 sqlite database? Jan 23 14:12:32 binary search? Jan 23 14:12:33 I don't have student loans. I worked straight out of high school heh Jan 23 14:12:39 probably overkill though Jan 23 14:12:45 CallumTaylor: that's what I thought Jan 23 14:12:58 I worked straight out of highschool but no coding (well did some freelance stuff) Jan 23 14:13:07 sqlite seems overkill... but I still need something somewhat efficient as the app will be referencing it every 10 seconds Jan 23 14:13:25 jonc: I was an apprentice jeweller straight out of high school :D Jan 23 14:13:32 TreeMap, HashMap? Jan 23 14:13:33 yoavst, that's a netbios packet... Jan 23 14:13:35 well surely 1500 lines of like 6 char strings will be fine in memory? Jan 23 14:13:50 CallumTaylor: more like 20-30 char strings Jan 23 14:13:50 What does it mean? Jan 23 14:13:53 whats the best approach to a button with icon? Just at texview with a drawable background and a click listener? (e.g a "change date" icon with a small calendar on it. Jan 23 14:13:55 post codes? Jan 23 14:14:02 postcode + suburb name Jan 23 14:14:04 ah Jan 23 14:14:05 yoavst, windows share Jan 23 14:14:14 jonc: hm. I'll need to look into those Jan 23 14:14:30 do you need to do postcode -> suburb name or suburb name -> postcode Jan 23 14:14:39 postcode -> suburb names Jan 23 14:15:06 store in a json file Jan 23 14:15:06 oh ignore that. misread something. Jan 23 14:15:11 then load it as a map Jan 23 14:15:45 {"postcode":"suburb name", "postcode":"suburb name", .....} Jan 23 14:15:48 even then 1500 20-30 char strings shouldn't be that much Jan 23 14:15:55 whats the best approach to a button with icon? Just at texview with a drawable background and a click listener? (e.g a "change date" icon with a small calendar on it. Jan 23 14:15:57 it won't be much Jan 23 14:16:03 i'd suggest an sqlite db then if you're doing more than just postcodes Jan 23 14:16:03 a few KB not huge Jan 23 14:16:05 jonc: store it in a json file within the app ? or externally ? Jan 23 14:16:08 why not drawable properties? Jan 23 14:16:10 you're gonna wan a do partial text searching as well Jan 23 14:16:12 within the app Jan 23 14:16:21 resource/raw Jan 23 14:16:32 jonc: ^^ Jan 23 14:16:39 CallumTaylor: all I need to do with the postcodes is see what other suburbs are within the postcode really Jan 23 14:16:45 CallumTaylor, if it is just postcode to suburb name then it doesn't need to be partial Jan 23 14:16:57 is postcode unique? Jan 23 14:17:07 jonc: to suburb ? Jan 23 14:17:11 yeah Jan 23 14:17:12 what i mean is, if the data is searchable from the user, if they type in a partial word, you'd want to match everything Jan 23 14:17:20 jonc: no...there could be multiple suburbs in one postcode Jan 23 14:17:20 seee ya leter guys Jan 23 14:17:23 if not then you want a map of lists :P Jan 23 14:17:24 unless its just a strict the user isn't interacting with Jan 23 14:17:29 s/strict/struct Jan 23 14:17:42 CallumTaylor: no user interaction with the postcodes Jan 23 14:17:51 Map>, where it is > Jan 23 14:18:03 yeah best bet is then to have it as a json file, then read it into a hash map Jan 23 14:18:05 hrrrmmm Jan 23 14:18:14 I'm fairly sure gson does that automatically Jan 23 14:18:22 or can do that Jan 23 14:18:30 it can handle maps Jan 23 14:18:52 so store it as json, then convert it into map of lists ? Jan 23 14:21:11 yeah Jan 23 14:21:19 ok...I'll need to look into that. Thanks Jan 23 14:21:30 http://pastebin.com/LcgCNX3M Jan 23 14:21:34 json will look something like that Jan 23 14:21:47 yuh huh. Jan 23 14:22:17 yeah gson could handle that easily Jan 23 14:22:37 * SirLagz googles gson Jan 23 14:22:43 yup Jan 23 14:22:46 gson is great, its a good json library in itself Jan 23 14:22:57 but it also has the ability to convert json objects to POJO objects automatically Jan 23 14:23:00 and visaversa Jan 23 14:24:00 so gson is an external lib ? Jan 23 14:24:05 yeah Jan 23 14:24:06 yeah Jan 23 14:24:09 kk Jan 23 14:29:21 How can i theme an AlertDialog in Holo light on api 8? Jan 23 14:29:30 I am working on a fragment refactor and have a question about a best practice. I'm using Chris Bane's pull-to-refresh component, which is inside my fragment. I have an AsyncTask, in the Activity that contains the fragment with pull-to-refresh, that does some loading and needs a handle to the pull-refresh-component. Jan 23 14:30:08 THEME_DEVICE_DEFAULT_LIGHT? Jan 23 14:30:28 yoavst, there is no Holo on API 8 Jan 23 14:30:42 So a Light theme Jan 23 14:31:08 THEME_DEVICE_DEFAULT_LIGHT is api14+ Jan 23 14:31:23 Im not quite getting ti with drawables in res. Where does a "do all" default png, for example, go? all the default I assumed the "low" res folder but its not appearing on my layout previem in intellij Jan 23 14:31:41 rgr, it just goes into drawable folder :) Jan 23 14:31:46 oh no.. Jan 23 14:32:10 oh hang on. there is no drawable folder. Jan 23 14:32:31 only drawable-ldpi etc Jan 23 14:32:36 I'll make one and test Jan 23 14:32:37 I seem to be missing something obvious; I use a singleton instance that holds the data for my application (load on first use); and have 4 different activities that represent different parts of that data. Whats the best place to save this data, onPause/onStop seems to be called even for going between different activities? Jan 23 14:33:57 Certainly OT, but does anybody know of a keyboard shortcut on OSX to switch between multiple monitors? Jan 23 14:36:54 Hi .. does anyone know what the "Allocation size" in DDMS in Eclipse means in the Allocation Tracker results ? Jan 23 14:38:33 say i have View a; any instances in which LinearLayout.removeView(a); followed immediately by .addView(a) would throw with "you must call removeView on child's parent first" Jan 23 14:40:48 Can I use the acitivity's application context to get notified before exiting any of the acitivies in my application? Jan 23 14:43:07 ki9a you can get notifie if you left one activity started by this same activity Jan 23 14:44:27 fBirD: how? Jan 23 14:44:30 that sounds usable Jan 23 14:46:31 http://developer.android.com/training/basics/intents/result.html Jan 23 14:46:35 startActivityForResult Jan 23 14:46:37 :) Jan 23 14:47:40 you can use that to star one activity and when it dies left something for the parent activity Jan 23 14:47:53 ah that's the opposite of what I want :) I want to save some data, but only when someone actually leaves my app Jan 23 14:48:22 ahhh Jan 23 14:48:25 so Jan 23 14:48:36 but you can do that Jan 23 14:48:50 just save the information on onDestroi Jan 23 14:49:01 and when app gets destroi the information will be save Jan 23 14:49:19 or in onPause Jan 23 14:49:35 won't onPause be called even for switching between my different activities? Jan 23 14:49:42 yes Jan 23 14:49:54 but onDestroi no Jan 23 14:50:01 i could use onPause, but then I'd be doing several pointless saves Jan 23 14:50:08 Mavrik: I tried that but the default is not picked up. Jan 23 14:50:12 ondestroy of the main/entry acitivty could work though, thanks! Jan 23 14:50:39 fBirD: Destroi or Destroy ? Jan 23 14:50:45 destroy Jan 23 14:50:58 rgr, then you're overriding it somewhere. Jan 23 14:51:11 crtl + f Jan 23 14:51:11 xD Jan 23 14:51:18 ctrl* Jan 23 14:53:41 ki9a: there is no gaurantee that onDestroy() will be called, although 99% of the time it is. I just wanted to make you aware of this. Jan 23 14:54:14 there's also no guarantee onDestroy will be called in reasonable timespan Jan 23 14:54:24 ^ that too Jan 23 14:54:39 I strongly suggest some kind of async background save system :) Jan 23 14:55:03 I'd be fine with that if I knew some kind of trigger when none of my activities is active anymore Jan 23 14:55:14 I tried onQuit,it indeed doesn't trigger right away Jan 23 14:55:30 onStop does, but does so when I'm switching to another of my own activities Jan 23 14:56:11 maybe in onPause() use isFinishing()? Jan 23 14:56:26 to tell if the activity is being destroyed Jan 23 14:56:48 ki9a, there is no such trigger Jan 23 14:56:59 ki9a, and there is no guarantee OS will give you time to save stuff in finalization methods Jan 23 14:57:14 **DO NOT** play with users data by trying to defer save to finalizers or onDestroy Jan 23 14:57:20 you'll lose users data and have them pissed at you Jan 23 14:57:41 sounds sensible to not do that Jan 23 14:59:07 :) Jan 23 14:59:26 ki9a, I don't know what kind of data you have, but saving changes ASAP after the user does them is usually how you do mobile Jan 23 14:59:51 Guys. Jan 23 14:59:58 Please help. Jan 23 15:00:17 it's a simple shopping list sample; 0..n lists, each list has 0..n entries, I was thinking of loading/storing it as json Jan 23 15:00:27 though with the requirements of android that is starting to sound like a bad idea. Jan 23 15:00:51 Mornin'! Jan 23 15:01:47 ..............Please? Jan 23 15:01:59 just ask your question Jan 23 15:02:00 Immaterial: with what.. Jan 23 15:02:36 thanks everyone. Jan 23 15:02:47 I'm so new to this, and I never managed to pick up the basics of java before a project got dumped on me. Jan 23 15:03:13 How to reference a non static variable from a static context? Jan 23 15:03:15 ki9a, uhm... use a database Jan 23 15:03:19 Hi, I'm new to DDMS traceview and Isn't able to use FIND feature ... I've tried any text composition but when I press ENTER/RETURN nothing happen ... What I mistake ? Jan 23 15:03:33 you'll need a reference to that instance Jan 23 15:04:07 Mavrik: indeed. That's step 2 Jan 23 15:04:11 So like instance instance faggotry plus one. Jan 23 15:04:35 Immaterial: this is the same for all object oriented programming languages Jan 23 15:04:44 http://stackoverflow.com/questions/2559527/non-static-variable-cannot-be-referenced-from-a-static-context Jan 23 15:05:06 or probably much simpler http://stackoverflow.com/questions/2042813/calling-non-static-method-in-static-method-in-java Jan 23 15:05:44 Pretty much just the important thing is I save the signature bitmap. Jan 23 15:06:03 anyone here from turkey? I need help Jan 23 15:06:13 anyone here from turkey? I need translation sorry. Jan 23 15:06:18 Everything else is shit in the barn. Jan 23 15:07:01 brb Jan 23 15:14:22 Hey guys, I have a little problem; I just downloaded something using the DownloadManager to Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) and when I try to open that file, it doesn't exist! It tries to download to /mnt/sdcard/Download, while my download directory is /mnt/sdcard/download (notice the capital D vs non-capital d), why does it try to download to the wrong directory? Jan 23 15:15:58 (I even make the dir if it doesn't exist, and /mnt/sdcard/Downloads still isn't there...) Jan 23 15:18:28 hmm Jan 23 15:18:46 So you can't cancel all toasts or anything like that, so what do you think is the best way to handle canceling toasts if the user navigates away from the fragment or activity? Keep a global variable with a reference to it? Jan 23 15:20:13 theblang, em, you can cancel toasts you create. Jan 23 15:20:53 Does anyone know where I could find info about being able to composite two videos in android? Jan 23 15:21:17 Mavrik right, but if I am Toasting from within an Async Task in my fragment, I need to keep a global reference to the Toast in order to cancel it in onPause, then in Async Task I actually need to check a boolean that I set in onPause to see if the Toast should show in the first place. just hate doing all of that if there is another way Jan 23 15:22:32 theblang, how long are you planning on keeping your toast around? I normally find they aren't around long enough to worry about that. Jan 23 15:23:04 mhm Jan 23 15:24:26 pieces029, Mavrik I'm using Toast.LENGTH_SHORT. Still though, if a user starts some load, then navigates away, I don't want the AsyncTask to show the Toast as it wouldn't make sense on the screen that was navigated too. Does that make sense? Jan 23 15:25:27 theblang, yes, but sounds more like you should cancel your async task and not the toast at that point. Jan 23 15:25:34 theblang, you can always show a new empty toast and cancel that Jan 23 15:25:45 but yeah, cancelling asynctask should be your bigger concern :) Jan 23 15:26:21 pieces029 hmm, yeah, good point Jan 23 15:26:37 theblang, also, I personally hate toasts. They go away to quickly if you really need to notify the user I would recommend a daialog. I don't know what you are trying to display so I can't really judge that though. Jan 23 15:26:48 theblang .. what is the asynctask running? Jan 23 15:26:54 I dont appear to be overriding it - as in it doesnt appear so nothing can be overriding it. But just to clarify : where to put an image that will be defaulted to IF the corresponding image is not in the selected drawable-XXX directory. If I put it in drawable-hdpi it shows. If I *move* it to "drawable" it doesnt show. Jan 23 15:27:12 Sirolf Grabbing JSON from REST service and populating a database Jan 23 15:27:39 pieces029 yeah, dialog is too invasive though. just want to tell the user that I've loaded X of X items Jan 23 15:27:52 rgr, http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch Jan 23 15:27:58 theblang, ok, yeah that makes a lot of sense Jan 23 15:28:07 hello all! Jan 23 15:28:16 how can i send a push notiridcation from ym application? Jan 23 15:28:21 pieces029 but like, if the user goes into another screen, that toast would make no sense haha Jan 23 15:28:25 want to redirect usersto a website when they click the notification Jan 23 15:28:30 is it for free on android? Jan 23 15:28:36 Does anyone know where I could find any info about video editing on android? Jan 23 15:29:01 theblang, yup, but also loading those if the user navigates away doesn't make sense Jan 23 15:29:11 theblang, unless you are caching them. Jan 23 15:29:52 ouch. not my day for missing the bleeding obvious. time to take a break. thanks. Jan 23 15:30:09 pieces029 yup, I am caching them in database, and I just thought about it, I can't cancel the task because I clear out the Table after I grab more JSON Jan 23 15:30:44 pieces029 maintaining a toast reference and a boolean on the Activity level works okay, was just trying to decide if that was bad practice or not Jan 23 15:31:02 although that said something can make it eliminate drawable as a candidate. The Q is what. Jan 23 15:31:09 pagios, you can use Google Cloud Messaging for free Jan 23 15:31:24 Sirolf: cxan i use it for iphones too? Jan 23 15:31:26 free Jan 23 15:31:27 I believe if you call cancel (might be another method) on a asynctask, the task will actually finish but the on post execute won't. So if you place your toast there I think you will get what you are looking for. Jan 23 15:32:00 pagios: dont think so :) Jan 23 15:32:04 pieces029 interesting.... ill have to check that, could be exactly what I want Jan 23 15:33:16 do you guys recommend any decent nice book for starting android programming? Jan 23 15:33:18 i am serious about that Jan 23 15:33:55 pagios if you know java you should just try out the google dev tutorials on their site Jan 23 15:33:59 java? Jan 23 15:34:05 yes i know java Jan 23 15:34:07 pieces029 After invoking this method, onCancelled(Object), instead of onPostExecute(Object) will be invoked after doInBackground(Object[]) returns. Jan 23 15:34:13 http://developer.android.com/develop/index.html Jan 23 15:34:13 javaphone Jan 23 15:34:24 pieces029 so I guess doinbackground will always run fully, I think this is exactly what I need! Jan 23 15:34:32 theblang, cool Jan 23 15:34:57 Sirolf: i heard backend programming is easy but the hard part is the graphical part / gui on the frontend? Jan 23 15:35:50 that ... and memory management can be anoying .. depending on what you're trying to do Jan 23 15:36:12 Argh... ArrayAdapter.getPosition(item) only checks for 'real' equality, if the references are equal... Any way I can easily check for content equality, if the content of my string is already in the adapter? Jan 23 15:36:29 but at first layouts / gui is indeed the trick to master ;) Jan 23 15:36:45 sqsqsq Jan 23 15:37:25 huh? Jan 23 15:37:28 oh Jan 23 15:37:42 No clue where that came from Jan 23 15:37:48 shitty win8 IRC client? Jan 23 15:38:39 CasW .. you mean .equals(Object); ? Jan 23 15:38:58 Yeah, exactly, but then built into adapter.getPosition ;-) Jan 23 15:42:42 I have no idea what you mean exactly CasW Jan 23 15:42:50 hello again, and developers. Jan 23 15:43:19 i was reading about Drawables and would like to know, if this here is possible ( and how ).... Jan 23 15:43:23 Mavrik: was ok in the end .. there is a bug in the intellij preview. When I run/debug its there. Jan 23 15:43:33 i have an RadioButton class, which extends Radio Button. Jan 23 15:43:51 during runtime its created and even coloured. Jan 23 15:44:47 pink? Jan 23 15:45:05 Well, what I mean is that I want to get the position of an item that has the same value as the argument in ArrayAdapter.getPosition(item), not the item itself. Jan 23 15:45:05 then .. no! Jan 23 15:45:07 oh Jan 23 15:45:08 ;) Jan 23 15:45:42 CasW: so get it Jan 23 15:47:23 the problem is, that the radio circle also gets coloured (grey for example ) and the inner circle , too Jan 23 15:49:04 CasW: ArrayAdapter does that Jan 23 15:49:08 Err, ArrayList Jan 23 15:49:36 ArrayList? I'll look into it, thanks! Jan 23 15:49:36 CasW can't you just loop through the list and .equals(item) it ? Jan 23 15:49:43 probably both Jan 23 15:50:17 Well, no, ArrayAdapter doesn't (that's why I asked, I kept getting duplicate items ;-)) Jan 23 15:50:30 ArrayAdapter just uses whatever list you pass it, otherwise an ArrayList Jan 23 15:50:40 i want to colour it by myself, and I was reading, that drawables could do that. But I want to avoid XML's, so how would the drawable have to look like, if created programatically ? Jan 23 15:50:52 new ColorDrawable() Jan 23 15:51:10 Actually I am working on a hardkeyboard service that allows to type special, national characters Jan 23 15:51:18 With LEFT_ALT everything works fine but when I want to map RIGHT_ALT on COMMAND_KEY (META_META_KEY) then instead of language special character I have new activity shown (CALENDAR, CALCULATOR, CONTACTS) How to get rid of these shortkeys on this particular key? Jan 23 15:51:20 you could read the default drawable of the radio and then apply a tint Jan 23 15:51:29 Guys, I don't want to root any shit Jan 23 15:52:10 If I wanted I would solve my problem in half minute Jan 23 15:53:18 CallumTaylor ? It simply gets not added . Jan 23 15:53:45 Is it possible to write an android service which acts as an 'api' for other applications to call methods from? Jan 23 15:54:44 setButtonBackgroundDrawable( as if t is ignored )... Jan 23 16:02:29 hello, i have a weird problem. when i load a new fragment over my existing one it doesnt overlay and im still able to press buttons from the last fragment on the stack. is there someone who can look at my code and tell me if i did somethign wrong when calling my fragments? Jan 23 16:06:28 pieces029 just FYI, you can pass a boolean to cancel (mayInterruptIfRunning true if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete.) Jan 23 16:06:35 defuex. You must issue transaction manager to either push to backstack, or replace. I usually delete it completely Jan 23 16:08:55 where can i find good android developpers? Jan 23 16:09:03 i need a developper to work with me Jan 23 16:09:11 got a website and need to do an app for it Jan 23 16:10:02 No advertising, jobs or otherwise Jan 23 16:10:09 pagios, read the topic, no advertising Jan 23 16:10:42 so, does anybody have a snippet how to use custom drawable to change appearance of radio circle ? Jan 23 16:15:50 icbytes, http://stackoverflow.com/questions/12432553/radiobutton-how-to-use-a-custom-drawable Jan 23 16:19:25 thx. Now i need to do this programatically not with xml Jan 23 16:23:43 Provide your own drawables and do as jonc's link says Jan 23 16:24:34 RadioButton uses different drawables for each state Jan 23 16:24:57 i need to do it in code. Jan 23 16:25:07 heqs: yes, look into AIDL, remote services, and IPC Jan 23 16:25:29 If it's just data related, a content provider might be worth looking into as well Jan 23 16:25:55 Have Traceview possibility to place some time markers ? Jan 23 16:26:36 What the... Anyone have any idea why my Fragment.onCreateView isn't called? Jan 23 16:26:43 You really don't want to do this in code.. You'd have to do something like draw each drawable to a bitmap, change the bitmap and create a new statelist Jan 23 16:28:06 RadioButton probably uses 6 or 7 different drawables for the states Jan 23 16:28:20 And doing it in a way that doesn't break when a new platform version changes the drawables.. Jan 23 16:28:24 Not going to happen Jan 23 16:28:35 So, if you wish to change the default look, provide your own drawables Jan 23 16:30:24 Whoever told you to do this in code needs a course in android drawables Jan 23 16:30:26 ok, So i really can stick to 2 xml drawables, ( State checked, state unchecked ) Jan 23 16:30:45 And pressed state Jan 23 16:30:58 Depending on if its checked or unchecked Jan 23 16:31:03 It is just the damn android runtime, which also colours the radio button, when i set BackColor on Compound View Jan 23 16:31:08 So 4 drawables at least Jan 23 16:31:33 ok ok ok . How then apply them in code ? Jan 23 16:31:42 when I had them already as xml's ? Jan 23 16:32:46 bah... followed the opengl es tutorial, ended up with completely black screen :/ Jan 23 16:33:17 Find out how you set android:button in code.. Jan 23 16:33:21 Or just define it in xml.. Jan 23 16:34:05 icbytes: i've never tried this so take it with a grain, but this seems relevant: http://stackoverflow.com/a/17868228/586859 Jan 23 16:34:14 shiat. Jan 23 16:34:24 Big problem , Project is fucked up. Suddenly. Jan 23 16:34:34 R seems no more to be known, what now ? Jan 23 16:34:51 fix probject properties, clean, build Jan 23 16:35:22 also:    radioButtonLocation = new RadioButton(this, null, R.style.RadioButton_style); would work to apply your custom style. Jan 23 16:35:48 it says, it does not know my package.... Jan 23 16:36:00 lol. eclipse? Jan 23 16:36:15 right Jan 23 16:36:28 fucked up, even my backup does the same shit now Jan 23 16:36:39 yeah, usually a fix project properties, manual clean, manual build seems to fix it for me Jan 23 16:36:42 mikedg: thanks Jan 23 16:36:48 but sometimes restarting eclipse will do it Jan 23 16:36:57 you may have to export the project and re-import it Jan 23 16:37:09 idk, i hate it. you're kinda at the IDE's mercy Jan 23 16:37:11 export and reimport, ok Jan 23 16:37:12 Clean and rebuild Jan 23 16:37:36 burmat ? Are You familiar with Native android development ? Jan 23 16:38:04 no, i have never used it sorry Jan 23 16:38:15 damn ide, now it is fucked up. Jan 23 16:38:35 danm work for my company "Gone". I will try to export it and reimport it Jan 23 16:38:41 yeah, just make sure you get a solid copy of your project folder now. i have lost work due to confusion Jan 23 16:38:44 trash eclipse Jan 23 16:39:10 i have it. Jan 23 16:39:10 go to the actual directory and copy it out and save it Jan 23 16:39:18 32 Backups, for each day one :-) Jan 23 16:39:33 paranoia Jan 23 16:39:34 but also those ( when applying ) now tell me this crap. Jan 23 16:39:36 ha, i'm assuming you have had a negative experiance too then Jan 23 16:39:46 eclipse is crap Jan 23 16:40:00 where should i export it to ? Jan 23 16:40:00 or you're doing something wrong Jan 23 16:40:21 idk, somewhere Jan 23 16:40:33 you sure you tried to clean it? Jan 23 16:40:35 and that didn't work? Jan 23 16:41:02 if you have multiple fragments with option items are their menus just merged into one? Jan 23 16:41:41 yep Jan 23 16:41:47 third time now, no red x... immediately when I build then error occurs Jan 23 16:42:05 what's the error again? Jan 23 16:42:08 i have one fragment class, Jan 23 16:42:16 hehe, error ? ERRORS Jan 23 16:42:36 in regards to R.*? Jan 23 16:43:01 in MainActivity : import com.example.fragments_23.R in all my classes is red Jan 23 16:44:00 another one is setContentView(R.layout.activity_main) Jan 23 16:44:07 also in MainActivity Jan 23 16:44:21 R cannot be resolved to a variable Jan 23 16:44:26 have you right clicked your project > Android > Fix Project Properties Jan 23 16:44:48 i saw something. in gen the R is lost Jan 23 16:44:50 lost Jan 23 16:45:05 only BuildConfig is in it. Jan 23 16:45:30 it's something simple. keep looking. Jan 23 16:45:41 com.example.fragments_23.R is your package name? Jan 23 16:46:25 i did it. somehow it killed my r.class. i copied the file for itself to my folder and build, let me try to run it Jan 23 16:47:43 no, after building the R.java is again deleted. What is this for a shit ? Jan 23 16:47:45 How do you use the android:onclick on a fragment? Jan 23 16:47:48 Is there any way to set a pivot with the ObjectAnimator in JakeWharton/NineOldAndroids Jan 23 16:47:54 can anyone here confirm that IMEs in android are single instance? Jan 23 16:48:02 Mrdarknezz: You don't Jan 23 16:48:09 SimonVT: But I have to. Jan 23 16:48:14 No you don't Jan 23 16:48:20 And why not? Jan 23 16:48:28 I would just use view.setPivotX() and .setPivotY(), but those are only api 11+ Jan 23 16:48:30 Because you can set it in code Jan 23 16:48:39 But then I have to write 200 lines Jan 23 16:48:53 Thats not very DRY Jan 23 16:49:21 android:onClick looks in the Context used to inflate the view for the method, i.e. your Activity Jan 23 16:49:32 So, you don't Jan 23 16:49:54 is there any way to force it onto the fragment instead? Jan 23 16:49:58 No Jan 23 16:51:52 So If I have 20 views how would I do it without having to repeat myself 20 times? Jan 23 16:51:59 there was some thing about a strange filname, must contain only.... deleted this, abd voild Jan 23 16:52:34 Use a library like ButterKnife that generates the setter code for you Jan 23 16:53:55 SimonVT: That does not sound like good practice Jan 23 16:54:14 Those are your choices Jan 23 16:55:28 view.setOnClickListener(this) then implement onClick and switch on view.getId Jan 23 16:55:43 shingshang, they're single instance as long as you don't have a memory leak Jan 23 16:56:27 pfn: awesome, thanks you Jan 23 17:01:38 what is this "Filename must only contain "those and those" letters/digits ? It fully does, but still error ? Jan 23 17:02:31 What filename? Jan 23 17:02:44 res/drawable filenames Jan 23 17:03:15 must start with a lowercase letter i beleive is the constraint Jan 23 17:03:22 icbytes, then you didn't name it right still Jan 23 17:03:43 it must conform to variable naming rules Jan 23 17:03:44 hmm. ok,. i wll use just lowercase Jan 23 17:04:08 can't use upper case... Jan 23 17:04:12 it doesn't say you can Jan 23 17:04:58 using android:onClick is always fail Jan 23 17:05:56 strange, that i worked since yesterday with capital letters without error. Jan 23 17:06:04 Anybody messed around with the showcase view library for making help overlays? Jan 23 17:06:11 icbytes, lies Jan 23 17:06:35 what, i do not lie. Jan 23 17:06:36 uppercase has never been supported by aapt Jan 23 17:07:05 they were placed by me into the folder via filesystem, resided there more that a week,. had NEVER errors, only today Jan 23 17:07:53 icbytes, then you never built until today Jan 23 17:08:02 because files with upper case letters in res never work Jan 23 17:08:05 each run is a build. Jan 23 17:08:11 whatever you say Jan 23 17:08:13 it doesn't work Jan 23 17:08:15 period Jan 23 17:08:19 so you're remembering incorrectly Jan 23 17:08:29 ok. let us say it is solved. Jan 23 17:08:52 and i know a bit more now. anyways THX. Jan 23 17:09:39 is it right, to set a special android xml flag in order to NOT show keyboard automatically ? I read that Jan 23 17:10:37 yes, it is right Jan 23 17:10:39 ok, Jan 23 17:10:55 so, must leave now, see ya next time, Bye and thx. Jan 23 17:11:55 android:windowSoftInputMode="stateHidden" Jan 23 17:19:21 Morning everyone. Jan 23 17:19:26 Howdy Jan 23 17:21:06 hiya Jan 23 17:22:29 morning pBlack Jan 23 17:23:20 is it bad to do view inflation and setup in onStart rather than onCreate? Jan 23 17:24:18 I guess so, since onStart is called when the fragment / activity returns to the screen, so you would do the setup everytime Jan 23 17:25:31 Yup, you can always set the view in onCreate, but bind the data later Jan 23 17:27:15 f2prateek_ my dilemma is that I create an asynctask that pulls something from the fragments view, but I read that you shouldn't call getView until after onCreate, but I need to give this asyncTask as a listener to pull-to-refresh, so that means I would have to move the pull-to-refresh inflation and configuration to onStart Jan 23 17:27:44 f2prateek_ does that make sense? I guess I could inflate in onCreate and just set the listener in onStart, but then I am still setting the listener everytime for no reason Jan 23 17:28:45 Is this is in a fragment? You wouldn't want to call getView until after onViewCreated anyway. Jan 23 17:30:48 f2prateek_ it is a fragment, yes. so maybe I should move all of my configuration then to onViewCreated. I was only looking at the lifecycle, didn't notice that method Jan 23 17:31:46 f2prateek_ of course, that still means reconfiguring everytime the fragment is brought back to the front Jan 23 17:33:23 f2prateek_ but in the Google example they actually inflate in onCreateView so, maybe that is best Jan 23 17:35:10 Yeah onCreateView is OK too since you have a reference to the view in that method Jan 23 17:39:34 I have a view with current time. how do I listen to an event where the current time minute changes so I can update the view? Jan 23 17:42:30 there isn't an event Jan 23 17:42:37 set a handler to post every second and update the time Jan 23 17:42:46 This seems like something I should know by now, but how should I handle a user spamming a button?It seems that if I set the listener to null in the onClick listener as the very first line, the button spamming still calls the listener multiple times. There should be a better way without hiding the view. Jan 23 17:43:03 disable the button onClick Jan 23 17:43:06 sounds trivial... Jan 23 17:44:37 ah, so it's more reliable to disable than to set the listener to null... good to know Jan 23 17:44:55 no Jan 23 17:45:01 but why would you ever set the listener to null Jan 23 17:45:26 alternatively, set a variable indicating processing state and bypass on it Jan 23 17:46:01 pfn: I thought about that, but want to avoid the proliferation of fields in my activities Jan 23 17:47:32 How reliable is the drawer layout? Jan 23 17:49:27 jonc: in terms of/ Jan 23 17:49:28 ? Jan 23 17:49:52 I've found some iffy behavior with some of the things from the support library Jan 23 17:50:15 mainly fragments and fragment manager breaking the fragment lifecycle to allow for backwards compatibility Jan 23 17:51:47 https://code.google.com/p/android/issues/detail?id=42601 Jan 23 17:52:13 hm i've never had any issues with drawer layout Jan 23 17:52:18 ok Jan 23 17:52:23 just curious Jan 23 17:52:55 that bug has nothing to do with drawer layout Jan 23 17:53:15 I know, but I know there are issues in the support library in general because of backwards compatibility Jan 23 17:53:25 and I was just curious if there were any known for the DrawerLayout Jan 23 18:04:20 I finally found problem of my problem Jan 23 18:04:57 all because of interceptKeyBeforeDispatching() what is very very nasty in my opinion Jan 23 18:05:21 I have to make some workaround for that Jan 23 18:29:39 Ok, so I have a problem Jan 23 18:29:57 it seems the Galaxy S4 requires you to connect to bluetooth on the UI Thread Jan 23 18:30:25 BUT I need to run the bluetooth collection in a thread, and try to reconnect if the device drops off (which would again need to be in the service) Jan 23 18:30:29 any ideas? Jan 23 18:31:13 can I pass a handler to the UI thread to my service and then use that? Jan 23 18:31:54 hmm, it seems services are spawned on the main thread anyways Jan 23 18:32:02 so I can just create a new handler in onCreate Jan 23 18:32:12 someone yell at me if I am wrong :D Jan 23 18:33:21 yes, but requiring you to connect to bluetooth on ui thread? how bork Jan 23 18:35:37 seems to be an issue with the S4 Jan 23 18:36:03 going to try connecting on the main thread, if it doesn't work, well I broke something else Jan 23 18:37:11 fragments are busted. interesting… http://corner.squareup.com/2014/01/mortar-and-flow.html Jan 23 18:39:55 what are consequences of using com.android.internal API in vanila non rooted android? Is it even possible? Jan 23 18:44:17 why do the names for certain items in the manifest start with '.' ? Jan 23 18:44:31 android:name=".something" Jan 23 18:44:49 It automatically prepends the package name Jan 23 18:44:52 relation of the class to your package name Jan 23 18:45:08 you could put the full package in there too Jan 23 18:45:20 i see, thx simonvt, makes total sense Jan 23 18:45:28 I usually put full package Jan 23 18:45:39 me too. Jan 23 18:45:50 so if it doesn't start with . the package name is not prepended Jan 23 18:46:19 I think you can just type "MainActivity" as well Jan 23 18:46:41 Don't think "activity.MainActivity" would work while ".activity.MainActivity" would Jan 23 18:47:25 and com.activity.MainActivity? Jan 23 18:47:40 yep Jan 23 18:48:01 Providing it's in the com.activity package Jan 23 18:49:50 tl;dr if there's no . or the first character is a . then it will prepend the package name Jan 23 18:50:38 can fragments have subfragments o.O Jan 23 18:50:46 (verify the first part yourself, ages since I didn't full qualify my manifest entries) Jan 23 18:50:49 you can have fragments inside of fragments Jan 23 18:50:53 ok Jan 23 18:51:22 9patch resizer has created images in drawable/drawable-ldpi, drawable/drawable-hdpi etc - before the drawable- directories were direct siblings of drawable. Should they be subdirs?!? Jan 23 18:53:03 They shouldn't be subdirs Jan 23 18:53:13 Resources folders can't have subfolders Jan 23 18:53:54 hmm. I wonder why 9 patch resizer created those dirs then. weird. Jan 23 18:55:41 I think I see why. It doesnt check if folder was there. it assumed my drawable-xhdpi was the root since thats where I dragged the image from to be resized. ok. no worries. easily solved. Jan 23 18:56:48 Actually thats still wrong. Since drawable where the defaults go is a sibling of the other sizes. hmm. Jan 23 18:57:32 maybe it checks if you are in drawable Jan 23 18:57:46 if you are not then it makes all of the directories inside whichever folder you dragged it from Jan 23 19:00:10 I dragged from drawable which I understand to be the fallback default. it then created drawable/drawable-ldpi etc despite res/drawable-ldpi (a direct sibling of drawable) being there. Jan 23 19:00:27 Using Volley if I call newtowrkImageView.setImageUrl(url, imageLoader) then my image loads and displays as expected. If I use networkImageView.get(url, new ImageLoader.ImageListener() { onResponse(); onErrorResponse()} ); then I never get a response Jan 23 19:01:17 error or no Jan 23 19:01:23 or no error* Jan 23 19:01:51 Sweet, it seems it is not just the S4 that has bluetooth low energy issues Jan 23 19:01:57 it seems to be an Android 4.3 issue Jan 23 19:02:51 Jk I do get into onResponse with the bitmap, and I call networkImageView.setImageBitmap(response.getBitmap()) and I still don't see the image. I have tried invalidating it, and running on the UI thread Jan 23 19:13:06 hey all, i'm starting a new project. what's the best android sdk to target? 4.0? Jan 23 19:13:29 Target should be highest, so 19 Jan 23 19:13:42 19.1 Jan 23 19:14:10 Choose MinSdk with your needs, but 14 is a good place to start Jan 23 19:15:22 razor1101: That's probably the buildToolsVersion, 19 is the sdk version Jan 23 19:16:56 Hey guys, anyone know why MimeTypeMap.getFileExtensionFromUrl(" /mnt/sdcard/Download/02 What'd I Say.mp3") == null? Jan 23 19:17:40 Check the source Jan 23 19:17:57 and it seems android 4.4 doesn't really fix BLE either Jan 23 19:20:09 It exists, has that name and has R/W access... Jan 23 19:21:23 so are you guys full-time employees that do Android all day? or freelancers? or just tinkerers? Jan 23 19:21:57 full time Jan 23 19:22:09 + tinkerer and I'd like to get into freelance stuff also Jan 23 19:22:23 pfn thank you Jan 23 19:22:32 but haven't found a reliable place to find work that isn't some freelance site with people asking for facebook for $300 Jan 23 19:22:44 is anyone making near $500 a month off of apps? Jan 23 19:23:10 if you count my salary from working as an android dev, yeah I make that in less than 1/2 a week :P Jan 23 19:23:39 you work at google? Jan 23 19:23:44 no Jan 23 19:23:54 would love to, but not currently Jan 23 19:23:54 how do you make money off of android development? Jan 23 19:24:01 if you don't mind my asking Jan 23 19:24:11 I work for a private company Jan 23 19:24:35 Right now I am working on a biofeed back app heading for clinical trials in about 8 months Jan 23 19:24:47 ah I see Jan 23 19:24:49 bio feedback* Jan 23 19:26:32 Other way to get where I want; how do I get the mimetype of an existing file? Jan 23 19:26:51 anyone have thoughts on the job market for android developers vs general full-stack java software engineering? Jan 23 19:27:29 cigarshark, I am more a java engineer, but they needed someone to do android also Jan 23 19:27:38 where is the money at these days, in your opinion? so many possibilities now. Jan 23 19:27:38 I also work server side here Jan 23 19:28:16 yeah, my background is mostly java generalist w/ a lot of swing experience and trading technology exp. Jan 23 19:28:28 but i've become interested in mobile dev Jan 23 19:28:56 seems like demand could outstrip supply in mobile dev more rapidly than general java software eng. Jan 23 19:29:21 It definitely could Jan 23 19:29:27 but the data i see doesn't seem to indicate a premium for android dev skills vs java generalists Jan 23 19:29:50 and i'm wondering , why not? Jan 23 19:30:24 there is a steep learning curve to do this android stuff correctly and understand the ins and outs of the google-supplied frameworks and utils Jan 23 19:31:03 hey all, i'm starting a new project. what's the best android sdk to target? 4.0? Jan 23 19:31:12 not that its anymore difficult than other java work, but it is time-consuming to ramp up and seems like companies would pay for experience Jan 23 19:31:13 I'm only 25 and for the area am making the same as the average Java engineer in the area Jan 23 19:31:34 wow, I need to not retype parts of sentences without rereading Jan 23 19:31:41 remove the "in the area" on the end Jan 23 19:31:46 i guess the issue is that mobile hasn't really penetrated the enterprise yet, and the enterprises have all the money Jan 23 19:32:27 I would prefer full server side work personally, but as long as I am learning something I am ok with Android Jan 23 19:32:38 typical line of business app is done in C# winforms or java Swing w/ no consideration for mobility Jan 23 19:33:16 well my goal is to make $500 a month from android apps... I don't know how to do it, but if I do that I can focus on app development full time Jan 23 19:33:29 are you getting tired of Android jonc? or why would you prefer full time server side work? Jan 23 19:34:00 I prefer more research oriented things, plugging in UI elements is fine the first couple of times, but gets monotonous and doesn't really let me learn as much Jan 23 19:34:43 me too. I want to become "ramen profitable" with some apps. once I can meet my expenses, I will forget about ever working for the man again. Jan 23 19:34:59 I have done Geocoding (reverse lookup of lat, lng to city, state), Interest Prediction using Naive Bayes, event annotation using regex for different event categories Jan 23 19:36:54 the geocoding was fun, a quad tree with indices into a shap file and then point in poly Jan 23 19:37:06 i get what you're saying jonc, but I still think the best opportunity for potential financial freedom is going to come through a mobile app or other consumer offering. Jan 23 19:37:18 I understand that Jan 23 19:37:36 But I believe being able to do both will allow me more freedom in the type of apps I choose to develop Jan 23 19:37:47 without your own money coming in, you'll be stuck in a dismal corporate environment forever. thats the sad life of 95% of devs. Jan 23 19:38:00 you guys making any money off apps now? Jan 23 19:38:16 dcope: target 19, min 14 Jan 23 19:38:27 i don't care what 'perks' a corp offers. it cannot possibly compete with working for yourself. Jan 23 19:38:34 I have not released my app yet, plan on it shortly, if you shoot me an email at jojoconley@gmail.com I can send an apk to you later tonight Jan 23 19:38:39 Targer 19, min 16 ! Jan 23 19:39:06 if you have mobile dev skills and work on side projects, at least you have a dog in the race. Jan 23 19:39:39 although I will warn you, it only works if you have a facebook account (uses your facebook interests to suggest netflix streaming videos) Jan 23 19:39:49 Okay, I now have a mime-type, audio/mpeg, and Intent.ACTION_VIEW raises an ActivityNotFoundException, while if I try to open the mp3 in de downloads overview, it plays correctly, how can I play it? Jan 23 19:39:55 I don't store any user information though, so don't have to worry about that Jan 23 19:42:02 any freelances got some free time? Im a first time devolper and could use some help intergrating a bluetooth printer. I have a sample app and SDK, and the understand the java exicuting the print pretty well. But connecting the bluetooth device is tripping me up https://www.zebra.com/us/en/products-services/printers/printer-type/mobile/em-220ii.html Jan 23 19:42:10 bet its staring me in the face - is there an easy way in the intellij preview to see which scale transform is being applied? eg ldpi, hdpi etc? Or do you have to work it out from the dimensions of the device and a lookup table? Jan 23 19:42:49 XMLnewbi: no advertising please, jobs or otherwise Jan 23 19:43:29 just out of curiosity how is asking for help "advertising"? Jan 23 19:44:37 Explicitly looking for freelancers suggests he's looking to pay someone to do the job Jan 23 19:46:07 I have a preference screen and I'm calling this method from onCreate and setonpreferencechangelistener which unchecks a and dsiables a group of checkboxes when one checkbox is unchecked. It works properly only when clicking on that checkbox but when I'm going to the preference screen from another activity the checkbox will remain checked and the rest are not disabled as they should be? https://gi Jan 23 19:46:08 st.github.com/anonymous/5da27bce10d692168e61 Jan 23 19:46:37 JakeWharton: thanks Jan 23 19:46:54 Even just looking for someone to write the code for him would be frowned upon Jan 23 19:47:06 Just so I know for future, and so I understand, how is that any problem whatsoever if the help is done over this channel and there is a link to the problem and everyone learns? Most of the help asked here probably benefits someone financially. Doesnt seem to the worst thing in the world. There are, after all, professional guys here who are freelancers and do indeed help free of charge. Jan 23 19:47:34 That's a different scenario Jan 23 19:47:39 And he didnt offer any money, Anyway. I know now.. Jan 23 19:49:31 are there any de-facto standard android books? Jan 23 19:49:36 no Jan 23 19:51:06 hm there's like one that focuses on android studio on amazon and has terrible reviews Jan 23 19:51:51 the standard is d.android.com Jan 23 19:52:06 if you can't learn off there, you're hopeless Jan 23 19:52:19 someone should just take it and publish it every 6 months... Jan 23 19:52:31 heh Jan 23 19:53:49 oh cool, there's some sample apps on here to look at. Jan 23 19:54:21 I have a preference screen and I'm calling this method from onCreate and setonpreferencechangelistener which unchecks a and dsiables a group of checkboxes when one checkbox is unchecked. It works properly only when clicking on that checkbox but when I'm going to the preference screen from another activity the checkbox will remain checked and the rest are not disabled as they should be? https://gi Jan 23 19:54:21 st.github.com/anonymous/5da27bce10d692168e61 Jan 23 19:54:44 Should I be calling something :S Jan 23 19:55:28 Pfft. Finally, I got it to play if I used intent.setDataAndType(Uri.fromFile(new File(filepath)), filetype)... Can anyone tell me why intent.setDataAndType(Uri.parse(filepath), filetype) didn't work? Jan 23 19:56:00 CasW: because there was no scheme on the URI for the latter Jan 23 19:56:18 call toString() on both Uri instances Jan 23 19:56:46 sorry here is the link https://gist.github.com/anonymous/5da27bce10d692168e61 Jan 23 19:57:21 Ah, thanks :-) Is it a good idea to just say Uri.parse("file:/" + filepath) instead of Uri.fromFile(new File(filepath))? Jan 23 19:58:26 Anyone? :S Jan 23 19:59:34 Spamming your question wont get you an answer any faster Jan 23 20:00:12 SimonVT, sorry, I'm just not sure whether I should be elaborating more Jan 23 20:02:12 If noone answers within a reasonable amount of time (20-30 minutes), you can ask again. If you feel your message doesn't adequately explain the issue, elaborate Jan 23 20:04:42 it appears mobile app development has the fastest growing salary, though not by much -> http://www.networkworld.com/news/2012/110712-it-salaries-2013-264063.html Jan 23 20:05:12 man, just tried initializing adapter and some other things in onViewCreated, but initialized my loader in onActivityCreated. no error message but listFragment showed nothing. had to move it all to onActivityCreated. Jan 23 20:06:47 cigarshark, you will make pretty decent money no matter what in software. I already make over 300% more than my family ever did while growing up Jan 23 20:08:45 if I call fragmentTransaction.remove(this), will bad things happen? Jan 23 20:09:16 hey was just wondering is a get the same as a post in android, you just switch it from httppost to httpget? Jan 23 20:09:32 and when I said the same I meant in terms of writing the code Jan 23 20:10:26 LoneSoldier728, are you using loopj's network library? Jan 23 20:10:35 I am using async lib Jan 23 20:10:45 and just doing a client connection Jan 23 20:10:57 ill pastebin my code Jan 23 20:11:21 there is a different in the structure of the http.get and http.post functions, but yes it is just http.get Jan 23 20:11:53 difference Jan 23 20:12:20 http://pastebin.com/edmWpEG4 Jan 23 20:12:35 so I basically took my code there and just changed on line 29 Jan 23 20:12:45 from HttpPost to HttpGet Jan 23 20:13:19 should work Jan 23 20:13:38 ok great, now if I send back a response from the server as json, how do I go about reading it Jan 23 20:13:46 do I do it in this same async class Jan 23 20:13:52 or outside of it? Jan 23 20:14:00 outside meaning the actual screen Jan 23 20:14:50 the HttpResponse should have the body Jan 23 20:15:31 some of the droid documentation sucks. case in point: SyncAdapters. no high-level diagram. just text scattered about. Jan 23 20:15:37 which you may need to open the stream, then pass that to gson (I believe GSON can handle streams) Jan 23 20:16:49 ok before I can actually start testing this out too, I have been having a hard time connecting my actual android device to the server localhost on my computer, meaning the line Jan 23 20:17:04 ("http://10.0.2.2:3000/search") does not work from my device Jan 23 20:17:28 open port 3000 on your machine Jan 23 20:17:42 I understand that is the address for an emulator... but how do I go about connect my device, I tried to look everywhere and a lot of the answers did not work, and I have no access to my router Jan 23 20:17:46 I have it open Jan 23 20:18:13 is the server you are trying to hit listening on port 300? Jan 23 20:18:21 ya Jan 23 20:20:51 it never hits the server Jan 23 20:21:18 says connection refused always Jan 23 20:21:40 when i run it through the emulator it works fine Jan 23 20:24:26 why would 10.0.2.2 work on your device Jan 23 20:24:41 it shouldn't but I am not sure how to make it work Jan 23 20:24:55 because if I put the ip address it wants me to login to my router Jan 23 20:25:04 10.0.2.2 is a special IP that lets your Emulator talk to your host machine Jan 23 20:25:11 I want my MainActivity to have a ActionBar and a List, should I use an regular Activity with a ListView, or should I use a ListActivity, or should I use a fragment, or what should I do? Jan 23 20:25:46 I understand that, that is why I am trying to figure out how to do it, without having to go into my actual router (as I do not have access to the password) Jan 23 20:26:16 you should find your IP by going into command line, then execute "ifconfig" (or "ipconfig" on Windows) and then use that IP Jan 23 20:27:48 instead of the 10.2.2.2 right Jan 23 20:27:55 yup Jan 23 20:28:04 ive done something similar to that it was not working let me see Jan 23 20:28:17 I want my MainActivity to have a ActionBar and a List, should I use an regular Activity with a ListView, or should I use a ListActivity, or a ListFragment, or what should I do? Jan 23 20:28:56 Yes, one of those Jan 23 20:29:12 Or just a regular Fragment Jan 23 20:30:02 Hmm, I'm having some problem with an overenthousiastic thread... I start the thread somewhere and when I want to stop it (in the onStop callback from the activity), it doesn't stop; I start it somewhere long after the activity is started, so of course I catch nullpointers, and that's what happens, I get a nullpointerexception, but I can see that the thread has started and is running... Jan 23 20:30:35 yep got refused again Jan 23 20:30:40 @louielouie Jan 23 20:34:12 Hi all. Jan 23 20:34:48 Is this the place to ask a question about setting an/some Android kernel settings? Jan 23 20:36:39 No, that's #android-root Jan 23 20:36:43 Ah. Jan 23 20:36:46 Thanks. Jan 23 20:38:41 Does SharedPrefs open and close file i/o every time something is committed to it, or does it wait to close file i/o until the PrefEditor is deleted/garbage collected Jan 23 20:41:00 read the source and find out Jan 23 20:41:34 That's what I'm doing, figured I would see if anyone knew off the top of their head Jan 23 20:41:41 thanks for responding though Jan 23 20:45:41 hello :) Jan 23 20:46:33 anyone around? Jan 23 20:46:37 damn no one can ever help me past that point Jan 23 20:46:49 how do i connect my phone to my localhost so i can do post/gets to it : / Jan 23 20:48:11 use adb to port forward from the phone to the desktop Jan 23 20:48:21 then connect to localhost:port on the phone and it will be routed to the desktop Jan 23 20:48:40 or just put the phone on the same network as the computer Jan 23 20:52:49 ok how do i port forward from adb Jan 23 20:52:52 where do i find that? Jan 23 20:53:04 and/or how do i do the phone on the same network thing Jan 23 20:59:45 LoneSoldier728, what server are you running? Jan 23 20:59:52 is it an ASP.net server? apache? Jan 23 21:00:43 nodejs Jan 23 21:00:48 through command prompt Jan 23 21:00:53 I am in my adb.exe Jan 23 21:01:06 http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp Jan 23 21:01:21 trying to implement this but having a hard time figuring it out Jan 23 21:01:25 you shouldn't have to Jan 23 21:01:32 I believe the emulator acts as a network device Jan 23 21:01:54 Even though I am running my physical device? Jan 23 21:02:04 your physical device will be on your network Jan 23 21:02:23 you don't need to do anything special on the device, just point it to the ip of your computer with the server Jan 23 21:02:41 as long as they are on the same network you should be fine there Jan 23 21:02:43 by what literally putting the ip in the browser on my phone? Jan 23 21:03:06 no, by making the get and post requests to the ip of your computer Jan 23 21:03:21 i tried that it says connection refused Jan 23 21:03:39 then it means your server isn't ok with the IP address or the path of the request Jan 23 21:03:49 http://192.168.1.107:3000/wardrobe Jan 23 21:03:57 could it be a firewall blocking it? Jan 23 21:04:06 well it works on my computer Jan 23 21:04:10 what is the .listen(port, ip) part of your node.js server? Jan 23 21:04:16 3000 Jan 23 21:04:23 copy and paste it here Jan 23 21:04:29 im pulling up the site on my computer Jan 23 21:04:36 with that link I posted above Jan 23 21:04:41 that's fine, because that is localhost still Jan 23 21:04:45 Hello all. I have a progressdialog inside a AsyncTask that does seem to be working right. Its not displayed. Anyone have any ideas? I think its related to the MyLocation2() stuff but I dont know what to change. All the code is on here. http://pastebin.com/hHT5ykwN Jan 23 21:04:59 have you added a port 3000 exception to the windows firewall? Jan 23 21:05:58 nope let me do that now Jan 23 21:06:14 does all android-units have bluetooth? Jan 23 21:06:33 hei there Jan 23 21:06:36 curried doesn't have to, but you can check if it has the capabilities Jan 23 21:07:52 in windows firewall jonc and I do not see a spot for it Jan 23 21:08:05 add a new rule and allow port 3000 Jan 23 21:08:22 probably i'm blind at the moment but what am i doing wrong here http://pastebin.com/Q35C0r8e ? Jan 23 21:09:40 Something's wrong with your intent Jan 23 21:09:52 does all android-units have bluetooth? Jan 23 21:10:03 curried, see above answer, no it is not required Jan 23 21:10:05 It should say {org.schabi.vectiz/org.schabi.vectiz.LoginActivity} Jan 23 21:10:07 and just let it connect or put an if it is secure in there? Jan 23 21:10:18 curried, but you can check if a device does have bluetooth capability in code I believe Jan 23 21:10:55 LoneSoldier728, for right now just let it connect Jan 23 21:11:06 allow all port 3000 traffic in Jan 23 21:11:43 rOOb: doInBackground just creates a class and returns Jan 23 21:15:53 SimonVT Hmm. It takes a few seconds to get the location....Perhaps I'm misunderstanding how this is working. Jan 23 21:17:15 hm still refused? Jan 23 21:17:53 SimonVT Even If I stick a Thread.sleep() in side that class... the progressdialog never shows up Jan 23 21:17:58 i don't know if its intent ?!? Intent is not trigering any exceptions Jan 23 21:18:22 Do you even need a thread for this? I thought location updates were async Jan 23 21:18:45 excapt that :/ sry Jan 23 21:18:57 SimonVT I am trying to use AsyncTask to display a progressdialog while it searches for location Jan 23 21:19:09 You don't need an asynctask to do that Jan 23 21:19:11 From my googling I thought that AsyncTask was what I needed to use Jan 23 21:19:23 You know when you request location updates, and you know when you got a location Jan 23 21:19:28 Show dialog in between Jan 23 21:19:35 does anyone know how I can set the version of gcc that came with the ndk to recognize the proper libraries/includes directory? Jan 23 21:19:40 LoneSoldier728, http://www.dummies.com/how-to/content/how-to-open-a-port-in-the-windows-7-firewall.html Jan 23 21:19:48 Also, you don't want to manually manage dialogs.. Use DialogFragment Jan 23 21:20:17 SimonVT hmmm. I've never heard of DialogFragment Jan 23 21:21:00 anyone know if it's possible to filter for an intent that a message has been received via Google Hangouts? don't need to read it, just detect if a message was received Jan 23 21:21:45 thnx Jan 23 21:22:14 i did that... Jan 23 21:22:20 rOOb: Unless you take care to properly handle the activity lifecycle, you're going to mess up Dialogs.. DialogFragment handles that for you Jan 23 21:22:34 lonequid, now try Jan 23 21:22:37 3000 Jan 23 21:23:19 now try your app against the server Jan 23 21:23:23 SimonVT I'm looking into what they are now. Thanks for the advice :) Jan 23 21:23:44 oh is protocol type tcp Jan 23 21:23:56 for http requests? yes Jan 23 21:24:39 ok so I am not sure what I am doing wrong then... Jan 23 21:24:42 tcp = packets will get there, udp = best effort but not guranteed order or arrival Jan 23 21:24:48 still not working? Jan 23 21:24:56 only an inbound rule right Jan 23 21:25:59 I believe both Jan 23 21:26:13 well i had both Jan 23 21:26:17 let me try without both Jan 23 21:26:30 what is the .listen(...) line of your node.js server? Jan 23 21:26:38 it is on port 3000 Jan 23 21:26:43 not the port Jan 23 21:26:47 oh Jan 23 21:26:47 the ip Jan 23 21:26:59 is it localhost, 127.0.0.1 Jan 23 21:27:08 it is just localhost Jan 23 21:27:13 that is the problem Jan 23 21:27:19 that is also a problem Jan 23 21:27:32 honestly it is just a port Jan 23 21:27:32 node.js will reject any connection that is from your local computer Jan 23 21:27:46 but it is connected through localhost Jan 23 21:27:49 change localhost to the same ip that your app is using Jan 23 21:27:54 but the ip works still tho Jan 23 21:27:55 kk Jan 23 21:28:31 it does, but on your local machine I would imagine DNS lookups will put 192.168.1.107 as localhost / 127.0.0.1 Jan 23 21:28:37 the traffic never leaves your box Jan 23 21:29:04 and to node.js it is localhost once it receives it basically Jan 23 21:29:19 so try the actual ip, then restart the server Jan 23 21:29:25 k Jan 23 21:29:27 make sure port 3000 is open Jan 23 21:29:31 and then try the app Jan 23 21:31:07 absurd number of string constants in android dao code Jan 23 21:31:23 tempted to cowboy it and just type in raw strings Jan 23 21:33:31 LoneSoldier728, did it work? Jan 23 21:34:45 is there a decent code generator that, given a java POJO, spits out a SQLite ContentProvider, database schema generation code, SqliteOpener etc ? Jan 23 21:35:37 not that I know of, but it'd be pretty awesome Jan 23 21:36:04 most of this is just boilerplate and could easily be generated Jan 23 21:36:28 hmmm Jan 23 21:36:31 nope Jan 23 21:36:38 refused : / Jan 23 21:36:44 i dont get it Jan 23 21:37:03 are you on a personal network, a school network, a business network, a public network? Jan 23 21:37:10 home network Jan 23 21:37:22 connected thru wifi Jan 23 21:37:26 password Jan 23 21:37:33 hmm, try going to the url in your device's browser Jan 23 21:38:02 Is there a way to set the scope of a dependency to provided anymore in Android Studio, I'm not seeing it on the latest version Jan 23 21:39:21 yep taking a while thinking it is going to oops me Jan 23 21:39:41 ok does it matter if my android is plugged into my computer? Jan 23 21:39:46 nope Jan 23 21:41:31 try disabling windows firewall temporarily Jan 23 21:41:35 k Jan 23 21:42:53 thanks that seems to work now Jan 23 21:42:58 so what am i doing wrong here Jan 23 21:43:09 it means the port isn't open in windows firewall Jan 23 21:43:24 i have an inbound rule with the port Jan 23 21:43:27 though hm Jan 23 21:43:33 i have windows 8 btw Jan 23 21:43:43 if that is diff than what u sent me but i had the same options Jan 23 21:46:16 thanks btw Jan 23 21:49:01 No problem Jan 23 21:49:17 I've dealt with setting up several temp servers to test networking in apps. It is a pain the first time or 2 Jan 23 21:50:00 Hi, i've tried using loopj android http client, but i'm getting an error: response body is null, calling onFailure(Throwable, JSONObject). The device can access the URL and when testing using Chrome Advanced REST client i'm getting an correct JSON response Jan 23 21:56:13 ontani pastebin it Jan 23 21:56:31 is it worth using loopj btw Jan 23 21:57:17 I use loopj 1.4.3 I believe (a library I am using requires it) Jan 23 21:57:28 and I've built a wrapper around it to make network calls easier Jan 23 21:57:54 for each network call you will be doing create an object that sets the body (if any) uri parameters, holds the path etc Jan 23 21:58:10 then to make the call just create a new instance and pass it to the NetworkManager and a listener Jan 23 21:58:13 anyone created a ContentProvider that was backed by ORMLite? Jan 23 22:03:12 oh gradle 0.8 :) i hope its faster Jan 23 22:04:41 LoneSoldier728: i've get a bit further, I'm handling the onFailure now, it's saying: Connection to http://192.168.1.36 refused. I can open the browser app and browse to: http://192.168.1.36 without issues Jan 23 22:08:59 hmmm, I didn't set any permissions in my manifest, that could explain things Jan 23 22:09:08 let's see what it does Jan 23 22:10:04 damned, that's just dumb. It works Jan 23 22:10:20 why wouldn't give Android Studio me some proper error's Jan 23 22:13:49 hi what am i doing wrong http://pastebin.com/1PzBCWKm Jan 23 22:15:36 why would it give you proper errors Jan 23 22:15:39 you do get a proper error... Jan 23 22:18:20 http://pastebin.com/edmWpEG4 Jan 23 22:18:34 anyone know what line 37 is suppose to be Jan 23 22:18:47 or what I am missing, trying to do a get but not sure what i need Jan 23 22:19:20 i need to ultimately call a get with the JSON info that is in se Jan 23 22:20:14 don't use httpclient... it's suck ass Jan 23 22:20:43 what is better? Jan 23 22:20:48 and why does it suck ass? Jan 23 22:21:35 I use it for making posts and it works fine? Jan 23 22:22:28 this is my first app... I cheated. http://bit.ly/1cX7uHb Jan 23 22:22:42 howd u cheat Jan 23 22:23:35 used a prebuilt thing then edited the source Jan 23 22:23:46 ah kinda gay no? Jan 23 22:24:30 I don't know much about homosexuality Jan 23 22:25:31 so it is pretty straight then Jan 23 22:26:05 anyways did you actually understand how android dev works tho Jan 23 22:26:13 well... I'd love constructive criticism... Jan 23 22:27:05 hmmm LoneSoldier728 loopj's static-http should be straight forward right? Jan 23 22:27:47 http://pastebin.com/jxxMMBc5 Jan 23 22:28:14 Whats going on with the sm-900a note 3, why is there still no way to install CWM? Thx. Jan 23 22:28:21 while in chrome I also POST: {"data":"85535b59aeb56f930c603bc5d50d2aacacb5a1e4e0759f9eebb7a8c0eb56629b8c810d8abab73524e91df66648bb1f99"} Jan 23 22:30:34 not sure Ontani Jan 23 22:30:41 I dont use loopj Jan 23 22:30:50 I use raw android java Jan 23 22:30:53 I wanted to avoid libs Jan 23 22:30:54 ah oke Jan 23 22:31:04 nvm then Jan 23 22:31:21 ya sorry Jan 23 22:31:50 keegangrayson ill download it and check it out in a bit and try to give some criticism Jan 23 22:32:24 in the meanwhile if anyone has a cluse here Jan 23 22:32:25 http://stackoverflow.com/questions/21320679/http-get-with-async-on-android-with-a-json-object Jan 23 22:32:30 I am trying to solve this issue Jan 23 22:33:10 I want my MainActivity to have a ActionBar and a List, should I use an regular Activity with a ListView, or should I use a ListActivity, or a ListFragment, or what should I do? Jan 23 22:33:59 you want the actionbar to have a list of what Jan 23 22:34:37 No, I want an ActionBar at the top... then under the ActionBar, there should be a list over the rest Jan 23 22:34:47 oh ok so the screen is just a list Jan 23 22:35:01 activity + listfragment Jan 23 22:35:03 yes Jan 23 22:35:07 smallfoot-: it depends on whether you want easier and less flexible or more difficult and more flexible Jan 23 22:35:13 I see Jan 23 22:35:25 but I'd probably recommend activity + listfragment too Jan 23 22:35:30 I see Jan 23 22:35:34 mmarklar which is mode difficult and more flex Jan 23 22:35:36 more* Jan 23 22:35:58 Activity with a ListFragment is for what? Jan 23 22:36:01 ListActivity is for what? Jan 23 22:36:06 LoneSoldier728: I'd say the activity with the list fragment will take more effort to get setup but iwll be more flexible Jan 23 22:36:08 Activity with ListView is for what? Jan 23 22:36:18 while a list activity will be the easiest to set up but the least flexible Jan 23 22:36:24 I see Jan 23 22:36:39 i feel like an activity with any kind of frag or view within it Jan 23 22:36:44 is more flexible in general no? Jan 23 22:37:10 well they are all activities with something in them Jan 23 22:37:17 it just depends how baked in that something is Jan 23 22:39:11 anyways, any thoughts on this http://stackoverflow.com/questions/21320679/http-get-with-async-on-android-with-a-json-object Jan 23 22:39:16 How do I know when I should open a new Activity, and when I should open a new Fragment inside the current Activity? Jan 23 22:39:42 does anyone know how long before you start seeing statistics about an app in the google market? Jan 23 22:39:58 smallfoot-: tough choice that I'm not sure about the answer. Depends on the app really Jan 23 22:40:13 mmarklar, I don't know how to make decisions Jan 23 22:40:28 smallfoot-: :) Jan 23 22:42:02 LoneSoldier728, "get_search()" should be "return get_search()" Jan 23 22:42:49 and what that returns the response? Jan 23 22:43:13 how do I do the get in the first place though anyways that line on the bottom i think is the problem Jan 23 22:43:19 LoneSoldier728, your "get_search" shouldn't be a void, it should return something that's inside the JSON Jan 23 22:44:36 LoneSoldier728, the get_search() should return the "response" variable, or do something with the response variable and return that Jan 23 22:47:10 what is the proper way to put items on the action bar from a fragment? I was using setHasOptionsMenu, but duplicates the items when I change to landscape. I guess because setHasOptionsMenu is being called again when the fragment is destroyed and remade for the configuration change Jan 23 22:49:57 How do I know when I should open a new Activity, and when I should open a new Fragment inside the current Activity? Jan 23 22:49:59 no, it's because you have multiple copies of your fragment attached Jan 23 22:50:33 ya smallfoot I dont know how to make use of what you said Jan 23 22:56:54 this might solve my issue Jan 23 22:57:01 HttpGet httpget = new HttpGet("http://10.0.2.2:3000/search"); Jan 23 22:57:13 should this url have at the end of it my JSON object as a string Jan 23 23:00:07 JakeWharton, SimonVT I noticed that yall mentioned in this ticket (https://github.com/JakeWharton/ActionBarSherlock/issues/461) that fragments should always have ID. Is that referring to the XML I use to inflate the fragment? Jan 23 23:02:18 oh, fragments Jan 23 23:02:40 it means query the fragment manager for you fragment by id or tag in onCreate before instantiating a new one Jan 23 23:03:48 JakeWharton ahh, yeah, just experimented myself. I had an XML with no fragment tag, just views, that I was using to inflate my fragment Jan 23 23:03:59 I wrapped it all in a fragment tag, and got this Lint message "This tag should specify an id or a tag to preserve state across activity restarts" Jan 23 23:04:34 JakeWharton I was following the official ANdroid example, which didn't use a fragment tag.... good to know Jan 23 23:04:39 just to understand it Jan 23 23:04:41 yeah fragments are land mines. welcome to the mine field. Jan 23 23:04:41 hello Jan 23 23:04:49 nice to meet yall Jan 23 23:05:05 yall ? :-/ Jan 23 23:05:09 JakeWharton hahaha, yeah, I just started refactoring our codebase to fragments today. it has definitely been interesting Jan 23 23:05:15 i should be doing a get from android with stringifying the json and adding it to the end of the url? Jan 23 23:05:20 Zettablade hello! Jan 23 23:05:29 fragments are kinda fun Jan 23 23:05:47 but also totally a weird concept Jan 23 23:05:47 >_> Jan 23 23:05:50 haha Jan 23 23:05:57 I'm glad I am not alone in these feelings Jan 23 23:06:05 JakeWharton did you have a chance to rerun your performance test for plugin 0.8 (from the performance test regression post) Jan 23 23:06:27 if by performance test you mean the apps i work on, yes Jan 23 23:06:43 any hints how to use internal api for kitkat? Jan 23 23:06:55 nothing changed, pre dex is best for incremental builds and we explicitly disable pre-dex on CI builds Jan 23 23:07:53 hmm, isaw "Incremental dexing re-enabled" and thought that was the original problem Jan 23 23:10:02 it was. but with pre dexing for local builds the dex step only took a few seconds anyways. Jan 23 23:10:21 the real problem was pre-dexing running on clean builds on CI Jan 23 23:10:26 where it's useless Jan 23 23:18:54 onClickListeners for example when a button is clicked are run on the main UI thread? Jan 23 23:19:38 so much learned the last two days, so much more to get to grips with. Jan 23 23:20:06 cant see for the wood for the trees comes to mind at the moment.... Jan 23 23:21:25 a little question,sdk manager isnt working when i try to run,my operative system is windows 7 64bits,how can i fix it Jan 23 23:22:21 I don't know if this belongs in ##java or here, it's a pretty basic question, how would I use the value from the for loop in naming an integer and using it in it - http://cpaste.org/pv5nqzy2c Jan 23 23:22:56 Basque, then fix the error to make it work Jan 23 23:22:57 (What would I replace [x] with?) Jan 23 23:23:14 benjamingwynn, use an array or list Jan 23 23:23:25 benjamingwynn, basic java Jan 23 23:23:32 or programming of any kind Jan 23 23:23:43 thanks bye Jan 23 23:25:28 but i dont know if is an inusual error , pfn or only occurs to me Jan 23 23:27:28 and I'm supposed to be able to read minds? Jan 23 23:28:13 Hi, I want to build an app for personal use that simply takes a jpg from an Intent and saves it to a static dir on the LAN. Can I simply code an activity that's a pop-up over the current activity (i.e. lightweight), or does is it still going to switch to its own screen? Jan 23 23:48:34 why have any UI in that case since its a single (static) destination? Jan 23 23:50:23 rgr: didn't know not having a UI was an option. Can I still design this as an actibity or does it need to be a Service?> Jan 23 23:56:44 Aprel: out of curiosity, are you trying to intercept the Intent from an arbitrary application, or is this all within your own app? Jan 23 23:57:03 Is posting a link to a debug version of my app and asking for feedback considered advertising? Jan 24 00:04:30 depends who's listening... I'd say no. But all IRC channels have their self appointed guardians ;) Jan 24 00:09:36 you can also look into https://plus.google.com/communities/105153134372062985968/stream/99c36d7b-9e0c-4ce6-af8f-55561f56c2fb - if it's intriuging, you'll probably get some feedback. Jan 24 00:09:55 https://drive.google.com/file/d/0B0ZAbRnFRlUbWFgyYVBXeTA5MDA/edit?usp=sharing requires facebook login Jan 24 00:10:18 It matches videos available through netflix streaming to you based on your interests Jan 24 00:10:42 ah, interesting idea. Jan 24 00:10:55 it also tries to figure out what things you would like based on your interests Jan 24 00:11:10 based on a large dataset of interests I collected through a web scraper Jan 24 00:11:48 does the matching occur on a server you connect to from the app? Jan 24 00:11:51 server Jan 24 00:12:00 I wrote the server in java Jan 24 00:12:12 but I do not store any of your facebook information, just get sent the interests Jan 24 00:12:25 gotcha. nice idea. Jan 24 00:14:29 I will eventually store interest information with a hashed id from your facebook id Jan 24 00:14:42 that way the suggestions can evolve and get better when more people are added Jan 24 00:16:33 hmm, any suggestions as to why a Log.d() call isnt appearing in IntelliJs logcat ? SW Emulator. TAG and logcat filter definitely match. With no filter I stilldont see it. Jan 24 00:17:09 google and youtube already do that. Jan 24 00:18:02 hello Jan 24 00:19:20 I want to store date in my app in database. As I read it's wise to store it as long. Now i want to display my rows in a listview, so I'd like to convert back time to some readible format. how to do that ? Jan 24 00:20:11 wierd issue occuring Jan 24 00:20:11 kafor7, if you store them as milliseconds you can just pull out the long and do new Date(longTimeStamp) Jan 24 00:20:32 but where should I do that ? Jan 24 00:20:40 I am passing a string into AsyncTask and it is fine before it is passed in but after it shows up as Ljava.lang.String;@432c2d Jan 24 00:20:42 where ever you pull them out from Jan 24 00:20:53 I use content provider... Jan 24 00:21:03 LoneSoldier728, are you .toString()ing the object coming in? Jan 24 00:21:07 So all my data is displayed automatically Jan 24 00:21:35 kafor, you may have to create your own adapter Jan 24 00:21:44 I have it toString before I pass it into this search_data = search_input.getText().toString(); Jan 24 00:21:51 ahhh... Jan 24 00:21:55 When calling this Jan 24 00:21:56 new search_send().execute(search_data); Jan 24 00:22:16 let me show code maybe easier Jan 24 00:22:20 yeah Jan 24 00:22:21 adapter that inherits from SimpleAdapter ? Jan 24 00:22:47 kafor7, not sure Jan 24 00:23:15 why ? Jan 24 00:23:25 never done it with a content provider Jan 24 00:23:27 http://pastebin.com/Ss5bDkVz Jan 24 00:23:42 so basically the url I am creating is sharing it wrong Jan 24 00:24:02 or changing it to something else not sure what is happening exactly Jan 24 00:24:27 So, I've stuck :) Jan 24 00:25:21 LoneSoldier728, it is because the String ... Jan 24 00:25:26 it means it was passed in as an array Jan 24 00:25:38 so do search_data[0] Jan 24 00:27:01 thanks Jan 24 00:27:14 didnt understand that till now Jan 24 00:27:36 yup, allow for variable number of parameters Jan 24 00:27:53 is it ever [1] etc, or how does that work Jan 24 00:28:07 when you create it you can pass as many strings in as you want Jan 24 00:28:38 ah ok Jan 24 00:29:19 also, quick question - i am doing this for going from screen to screen in the action bar which seems to work except for the fact that if i click one tab it seems to go to the tab next to it or open up one after the other Jan 24 00:29:19 https://gist.github.com/anonymous/8589750 Jan 24 00:29:50 It is like it is too sensitive or something, but from what I understood this was the right way to setup the action bar but i might be wrong Jan 24 00:30:37 store dates as a proper sql type timestamp or hwatever it is in sqlite. you wont regret it. not as long. then you canr search on intervals etc. Jan 24 00:31:19 I know sqlite doesn't support ms timestamps Jan 24 00:31:24 you could also store as a string Jan 24 00:32:08 just store the formatted date Jan 24 00:36:03 you can still search on intervals as a long field Jan 24 00:36:06 you just have to do math Jan 24 00:36:11 yeah Jan 24 00:37:07 anyone have the sensitivity issue for tabs on the action bar Jan 24 00:42:24 eeinteresting; gapps license is $0.75 usd per device Jan 24 00:42:36 yeah, I saw that Jan 24 00:43:29 hmm, there's a license fee? Didn't know that one, thought you only had to pass the certification (probably paid) Jan 24 00:43:49 it will be for device manufacturers that want to have the play store on it Jan 24 00:44:18 kindle won't have to pay, but samsung would Jan 24 00:45:32 jonc: well, that's gapps Jan 24 00:46:59 i guess its calld a "Google Mobile Services" license Jan 24 00:47:37 the fee depends on size oem & expected # of devices sold Jan 24 01:15:37 any Spring social users here? Jan 24 01:16:37 i've tried asking a few questions in #spring, that channel is soo dead ! Jan 24 01:18:30 g00s oh jeez, I thought I was in #spring. I've been joining #android-dev so much lately I did it by instinct. LOL. sorry Jan 24 01:18:45 g00s yeah, it is really dead Jan 24 01:19:13 is there a faster android emulator for android studio? Jan 24 01:19:19 x86 emulator Jan 24 01:19:22 and it's not for an ide Jan 24 01:19:22 coming from ios dev.... this android emulator is practically unusable :x Jan 24 01:20:10 dcope I've seen my ios coworker's emulator before, it is pretty sweet Jan 24 01:20:27 ugh, there's a com.android.tools.build 0.8.0 already? Jan 24 01:20:29 wtf changed I wonder Jan 24 01:20:38 ios "simulator" Jan 24 01:20:46 pfn not speed, thats for sure :D Jan 24 01:20:54 still slow as shit Jan 24 01:20:58 com.android.tools.build is not slow Jan 24 01:21:01 gradle is slow Jan 24 01:21:05 well yeah Jan 24 01:21:50 * pfn runs his test suite.... Jan 24 01:22:03 I wonder if it breaks compat again... Jan 24 01:22:43 pfn: how can i setup an emulator to use x86 arch? for whatever reason the only cpu i have available is ARM Jan 24 01:23:24 install x86 avd images Jan 24 01:23:44 hm genymotion looks neat Jan 24 01:24:03 pfn: do you reccomend genymotion? Jan 24 01:24:13 I don't care for it Jan 24 01:24:44 everyone seems to love it, though Jan 24 01:24:58 oh Jan 24 01:29:59 hi, a problem on first run of my app crash it and error in logcat is W/AllCapsTransformationMethod(639): Caller did not enable length changes; not transforming text Jan 24 01:30:21 is it my code oor settings of project? Jan 24 01:30:36 jaami-win W/ means warning Jan 24 01:30:45 that probably wasn't it Jan 24 01:30:48 post the whole ST Jan 24 01:31:10 ok, just a minute Jan 24 01:31:29 pfn: can you use the x86 emu with android studio? Jan 24 01:31:33 i can't seem to find my android-sdk dir Jan 24 01:32:54 http://pastebin.com/S3Si0jk0 here is the logcat Jan 24 01:34:43 oh i figured it out Jan 24 01:34:43 cool Jan 24 01:34:56 in AS Compiler / Gradle there is "make project automatically" … what exactly is that ? seems like it should be on by default, after all why not - but its disabled by default Jan 24 01:35:15 make project automatically … when ? Jan 24 01:35:33 while i'm typing? when i go to launch ? Jan 24 01:35:34 I turn mine off ... it was building on every code change I thought Jan 24 01:35:40 hm Jan 24 01:35:54 like real time ... that seemed excessive Jan 24 01:36:13 bankai_: here is activity http://pastebin.com/6TGZb8bk Jan 24 01:36:20 and honestly that was intelliJ/Idea so Jan 24 01:36:35 aha, maybe thats my problem then. i keep finding errors on *compile* because the ide is somehow oblivious, maybe i should try it Jan 24 01:36:40 jaami-win: what you posted wasn't a stack trace, just a list of errors Jan 24 01:36:59 oh, how to get stack trace Jan 24 01:39:03 bankai_: let me find out how stack trace is collected. i will get back to you Jan 24 01:41:44 my app got a dmca takedown Jan 24 01:41:45 fml Jan 24 01:43:34 jug6ernaut: for what? Jan 24 01:44:25 copyright infringement of "The Tetris video game" Jan 24 01:44:32 https://play.google.com/store/apps/details?id=jug6ernaut.lwp.blocks Jan 24 01:44:37 I had a couple of videos blocked on youtube last week - videos of me talking on local TV, blocked by the TV station Jan 24 01:45:11 Leeds: I wonder if you shouldn't be able to block the TV station from using the material, then Jan 24 01:45:54 p_l: I'm not so fussed, but it's not like they asked me to sign any releases or anything, so presumably I do have *some* rights in the material Jan 24 01:46:26 jug6ernaut: hmm. Given that you never mention tetris, I'd argue about the type of game being genericized and thus not falling under copyright Jan 24 01:46:31 jug6ernaut: I'd guess you're screwed - Tetris[TM] can be pretty aggressive about that sort of thing, and I think they have regular sweeps Jan 24 01:47:16 p_l thats the impress i was under. But as Leeds just pointed out, they would probably fight it. Jan 24 01:47:17 Leeds: I wonder if they actually have any real legal standing other than racketeering Jan 24 01:47:34 p_l: Tetris? They have money Jan 24 01:47:55 :S Jan 24 01:48:10 Leeds: a lot of the copyright racketeering business seems based on people not fighting back... Jan 24 01:49:00 also, the 'official' Tetris game is published by EA, who are well-known for fostering a community of honest competition, and for recognising when indie developers pose no threat to them Jan 24 01:55:07 heh Jan 24 01:56:51 jug6ernaut i'd try to get a hold of google customer service Jan 24 01:57:28 g00s thanks, ill try and do that. Jan 24 01:57:55 g00s: hah! Jan 24 02:01:41 wtf? convertByteCode now takes a folder for dex output? Jan 24 02:01:54 Hi guys, I'm trying to achieve this effect ( http://postimg.org/image/bi3nr7mgj/ ) with this code ( http://pastebin.ca/2580277 ) Jan 24 02:02:02 I just don't understand where I'm going wrong Jan 24 02:02:25 Basically, I want that top linear layout to take up all available vertical space, and then have the contents vertically centered Jan 24 02:02:44 I can't believe this is so difficult... even in silverlight this would be so easy to achieve haha! Jan 24 02:05:17 hey guys, I have a preference screen with a checkBox who's key is takePicture. I've implemented the preferenceScreen so that when that checkbox is clicked, the other two checkboxes become available, otherwise uncheck and disable the other two boxes. This works fine visually, I can see the checkboxes changing accordingly however, when I try getting the booleans of the preferences in the main acti Jan 24 02:05:17 vity, it only works the first time round. If I go back to the preferenceScreen and change the preference again, the takePicture boolean is always false Jan 24 02:05:21 here is the code https://gist.github.com/anonymous/ee105a5327a35c1f60da Jan 24 02:05:27 com.android.tools.build looks broken :( Jan 24 02:07:16 What am I doing wrong? Jan 24 02:07:39 wow, 0.8.0 is broken Jan 24 02:07:41 but master isn't? wtf Jan 24 02:08:29 I'm confused Jan 24 02:09:41 https://android.googlesource.com/platform/tools/build/+refs Jan 24 02:09:47 does the android team not tag their releases? Jan 24 02:10:06 where's versions 0.6, 0.7 and 0.8 Jan 24 02:11:20 shit, could it be they were using lightweight tags and those didn't get pushed to that repo? i'm not so good at git Jan 24 02:12:00 can anyone help? Jan 24 02:12:40 but yeah, 0.8.0 uses outDexFolder, not outDexFile Jan 24 02:13:02 I don't even see how the 0.8.0 plugin works Jan 24 02:15:53 so I wanna have some checkbox be unchecked and disabled if one of the checkboxes is unchecked, else do nothing Jan 24 02:16:00 or just enable them Jan 24 02:16:30 CocoStorm just use the checkedlistener thingy :} Jan 24 02:16:43 g00s, but isn't what I did the same thing? Jan 24 02:16:51 oh, this is a pref screen Jan 24 02:16:59 you may hve to use preference change listener instead Jan 24 02:17:45 oh, k. just read your whole thing. hm, so the value is not right Jan 24 02:17:51 ya Jan 24 02:17:54 O.o Jan 24 02:18:09 lol, am I doing it really wrong? Jan 24 02:19:34 Convert a set of classfiles into a dex file, optionally embedded in a Jan 24 02:19:35 jar/zip. Output name must end with one of: .dex .jar .zip .apk or be a direc Jan 24 02:19:35 tory. Jan 24 02:19:39 from build tools 19.0.1 Jan 24 02:19:51 that's annoying Jan 24 02:20:37 Hi guys, I'm trying to achieve this effect ( http://postimg.org/image/bi3nr7mgj/ ) with this code ( http://pastebin.ca/2580277 ) Jan 24 02:20:42 I just don't understand where I'm going wrong Jan 24 02:20:47 Basically, I want that top linear layout to take up all available vertical space, and then have the contents vertically centered Jan 24 02:20:54 I can't believe this is so difficult... even in silverlight this would be so easy to achieve haha! Jan 24 02:21:08 I don't like the way you ask questions, so I'm not going to answer you Jan 24 02:21:22 :( Jan 24 02:22:03 pfn, will you answer my question? :) Jan 24 02:22:58 ok so im running the x86 emu but its still VERY slow once booted Jan 24 02:22:59 any tips? Jan 24 02:23:47 hehe, major breakage in AS 0.4.3 Jan 24 02:23:53 g00s, what is up with my code? Jan 24 02:23:55 why the fuck did i bother Jan 24 02:24:24 g00s: i keep asking you that, man .... Jan 24 02:24:24 dcope, install haxm Jan 24 02:24:55 oh! i can use gradle plugin 0.8 with 0.4.2 i think Jan 24 02:25:09 well even that doesn't matter, i was hoping 0.8 would speed things up, it doesn't seem to Jan 24 02:25:09 pfn: in the sdk manager? Jan 24 02:25:23 can anyone help, like shouldn't what I've implemented be working by the looks of it? or am I completely off track? Jan 24 02:25:23 oh found it Jan 24 02:25:33 I would appreciate some clues.. Jan 24 02:26:06 dcope, install it, and install it from cli Jan 24 02:26:37 bankai_ well, i can file a bug; thats my ritual on a new release Jan 24 02:27:02 g00s: you know what works really well ? Jan 24 02:27:11 ok it's installed Jan 24 02:27:16 is it enabled now or anything Jan 24 02:27:34 bankai_ no i don't :) Jan 24 02:27:47 IJ.... plain old IJ (POIJ) Jan 24 02:27:55 hey guys, I have a preference screen with a checkBox who's key is takePicture. I've implemented the preferenceScreen so that when that checkbox is clicked, the other two checkboxes become available, otherwise uncheck and disable the other two boxes. This works fine visually, I can see the checkboxes changing accordingly however, when I try getting the booleans of the preferences in the main acti Jan 24 02:27:56 vity, it only works the first time round. If I go back to the preferenceScreen and change the preference again, the takePicture boolean is always false Jan 24 02:28:05 here is the code https://gist.github.com/anonymous/ee105a5327a35c1f60da Jan 24 02:28:28 dcope, you have to install it once you download it Jan 24 02:28:49 bankai_ but aren't you guys using some old crufty android plugin ? Jan 24 02:29:03 don't start with me, kid .... Jan 24 02:29:28 i mean, like some snapshot of the android crap before the official IJ release Jan 24 02:29:39 pfn: i installed via the sdk manager Jan 24 02:29:40 i'm actually still on 12 Jan 24 02:29:49 aha Jan 24 02:29:50 it's still quite slow Jan 24 02:29:50 :( Jan 24 02:30:06 I'm still using ant, and when my code doesn't build I know it's my fault Jan 24 02:31:28 bankai_ do you know the official term for that pane on the left, says 1:Project Jan 24 02:31:43 i guess in eclipse it would be a workbench view Jan 24 02:31:45 can someone please point out why the stored boolean isn't changing? Jan 24 02:32:15 g00s: dunno :S Jan 24 02:32:31 dcope, you need to *INSTALL* it still Jan 24 02:32:34 you *DOWNLOADED* it Jan 24 02:32:47 pfn: then android sdk manager lies Jan 24 02:32:47 CocoStorm: is it in there twice? Jan 24 02:33:17 CocoStorm: i've had problems in the past with funky behaviour with prefs and i had to clear the old file before commiting the new Jan 24 02:35:01 pfn: https://www.dropbox.com/s/r3kf6sfjsrtwqay/Screenshot%202014-01-23%2021.34.04.png Jan 24 02:35:05 check out that last, highlighted line Jan 24 02:35:13 *Installed* Jan 24 02:36:16 bankai_, honestly I'm not sure what's going on anymore. When I first change the preference, it would work as it should so for example I have logged takePicturePref boolean before and after loading. It would be true, true. Then true, false. Then false, false indefinitely right after loading, even when I change it's checkbox in the preference activity Jan 24 02:36:18 109 0 0xffffff7f81f29000 0x11000 0x11000 com.intel.kext.intelhaxm (1.0.6) <7 5 4 3 1> Jan 24 02:36:29 pfn: told you it was installed... dont know why you dont believe me. Jan 24 02:36:37 dcope, you DOWNLAODED it, you need to INSTALL it Jan 24 02:36:40 how hard is that to understand Jan 24 02:38:22 bankai_, actually, I've found once the value is false, it's always false so I open the app and the value of takePicturePref is false then it would always be false no matter what I set the checkbox to Jan 24 02:38:30 Intel Hardware Accelerated Execution Manager is already installed on this computer. If you continue installation, the Intel HAXM will be re-installed. Jan 24 02:38:39 it installed it through the sdk manager. u mad pfn? Jan 24 02:39:16 I'm mad that you don't listen Jan 24 02:39:23 have fun with your slow emulator Jan 24 02:39:35 pfn: maybe we have different defintions of install Jan 24 02:39:39 by install do you mean configure? Jan 24 02:40:01 I mean you go to where the sdk manager downloaded it, and run the installer Jan 24 02:44:21 i just ran the installer again, gave the thing 1 gb of memory, and it's still slow Jan 24 02:44:36 are you running an x86 image Jan 24 02:44:58 does it actually say haxm enabled when running an emulator Jan 24 02:45:38 dcope if you run the emu from the command line, it will say haxm loaded and running or something Jan 24 02:46:16 pfn: yep, i created a new emu to use the x86 image Jan 24 02:47:30 Hello, if I have a relative layout with two linearlayouts within it... and the second linearlayout has layout_alignParentBottom=true to force it to the bottom (and height set to wrap_content), what do I need to do to the first linear layout to make it take up all available space above the second linear layout, and have it vertically centred in that available space? Jan 24 02:48:05 hey guys, I have a preference screen with a checkBox who's key is takePicture. I've implemented the preferenceScreen so that when that checkbox is clicked, the other two checkboxes become available, otherwise uncheck and disable the other two boxes. This works fine visually, I can see the checkboxes changing accordingly however, when I try getting the booleans of the preferences in the main acti Jan 24 02:48:05 vity, it only works the first time round. If I go back to the preferenceScreen and change the preference again, the takePicture boolean is always false Jan 24 02:48:06 wow, so much nicer on my nexus 5 Jan 24 02:49:12 here is the code https://gist.github.com/anonymous/ee105a5327a35c1f60da Jan 24 02:52:08 can anyone help? Jan 24 02:52:08 Suppose I have 3 views, we'll just call them 1, 2 and 3. If on 2, i have android:layout_above="3", and on 1 I have android:layout_above="2"... would the integrity of that order be maintained if I was to change view #3 to Visibility.GONE? Jan 24 02:52:19 CocoStorm: please stop spamming the same question over and over Jan 24 02:52:50 bankai_, I'm tyring to get my question seen in case anyone has missed it Jan 24 02:52:58 we've seen it Jan 24 02:54:15 any feedback would be appreciated, even if it's 'you seem like you're doing everything right, can't see why it's not working as it supposed to' Jan 24 02:54:18 try sticking some |Log.d(...| messages in there and watch the log, or interactive debug Jan 24 02:55:43 CocoStorm: is there an onCreate in your preferences activity which is resetting the boolean variables? Jan 24 02:56:53 ir7466, there is an oncreate but the only reference to the checkbox in question is getting an instance of it, takePictureCheckBox = (CheckBoxPreference)findPreference("takePicture"); Jan 24 02:58:53 CocoStorm to be honest I've never dealt with preference activities before, so I assume they are different to regular activities... so I apologise if this question seems obvious Jan 24 02:59:02 How are you saving the boolean preferences you refer to? Jan 24 02:59:17 capella, I am logging takePicturePref boolean before and after the loadPrefs(). The result is, when i first open the app and the takePicture checkbox is checked, the takePicturePref boolean is true before and after loadPrefs(). When I go to preference activity to uncheck that box, after loadPrefs, takePicturePrefs is false. When I go back to the PreferenceActivity and check the box, takePictureP Jan 24 02:59:17 refs boolean is still false and is always false no matter what from there on Jan 24 02:59:22 If you are using findPreference to populate the takePictureCheckBox variable it must be stored somewhere **** ENDING LOGGING AT Fri Jan 24 02:59:59 2014