**** BEGIN LOGGING AT Mon Aug 04 02:59:59 2014 Aug 04 03:00:51 ok, i'm set, let's go! Aug 04 03:02:12 Got a general question: What are some things I should clean up in an activity's onPause and onStop? (and thus re-initialize in onStart and onResume) Aug 04 03:02:27 Listeners for example? Aug 04 03:02:50 and fragments? Aug 04 03:03:00 those are two main compononents i was worried about Aug 04 03:06:00 ThomQ: If you do any checks like "if_connected_to_internet", use them in oncreate and onresume Aug 04 03:07:28 yeah, i already do that. Actually i do those checks everytime I need to connect to something. Aug 04 03:08:04 * Jesperhead scribbles notes in a little notepad Aug 04 03:08:25 I was more thinking of heavy mem or cpu consuming things I could kill, other then the obvious services that are running etc. Aug 04 03:09:06 Since I have a ton of listeners going on, I was wondering if it was smart to set them in onStart, and kill them in OnStop Aug 04 03:14:05 anybody have experience iwth protocol buffers? Aug 04 03:14:17 need some help in wiring up the lib to my project Aug 04 03:42:36 I just set up my permissions in my gradle (compile "com.google.android.gms:play-services:3.1.+") and it produced a new manifest.java file? Aug 04 03:42:52 now android studio says "file under the build folder are generated and should not be edited) Aug 04 03:42:56 "* Aug 04 03:44:35 or was that because of the C2D_MESSAGE permission? Aug 04 03:46:35 was faulty xml attribute in manifest Aug 04 04:23:39 Hi, I want to implement an autocomplete textview whose suggestions will be from a web dictionary, could someone give hints on how I can do that? Aug 04 04:24:48 have a look at textchangelisteners Aug 04 04:24:55 and some rxjava :) Aug 04 04:24:59 and filters and async tasks Aug 04 04:25:05 argh ... i was getting there, g00s :P Aug 04 04:25:28 alright, thanks :) Aug 04 04:26:58 When I am creating a Wifi hotspot through the Android's "Settings" menu, I am able to connect to the Wifi. However, when I create it programatically, I am not able to do connect to the Wifi. So, what's the difference between connecting it via the "settings" menu and doing it programatically? Aug 04 04:28:16 well, in one case your fingers are interacting with an app that may have a required set of permissions :) Aug 04 04:28:49 while the app you write doesn't have those permissions ;) Aug 04 04:29:09 i think thats a pretty big difference Aug 04 04:29:10 XD Aug 04 04:30:39 that will be $5 Aug 04 04:30:47 bankai_au what are you up to ? Aug 04 04:31:07 fighting robovm and ios Aug 04 04:31:33 hm Aug 04 04:31:47 i'm fighting java's Calendar classes Aug 04 04:31:56 fights all round! Aug 04 04:31:57 so much fighting :( Aug 04 04:32:58 ihave a very simple date calculation with TZ & DST, i shouldn't need Joda for this - but every time i use this api i get completely confused Aug 04 04:33:27 like , TimzeZone.getOffset vs Calendar.DST_OFFSET Aug 04 04:33:34 just the worst api ever Aug 04 04:44:13 * g00s gives bankai_au a holy hand grenade Aug 04 04:44:57 bankai_au remember, the counting shall be 3 Aug 04 04:45:14 throw it at robovm :) Aug 04 04:45:53 i don't think it's robovm, i think it's the dumb programmer and the idiot who wrote the testrunner :P Aug 04 05:00:41 who here has learnt anything from AS tips on startup? Aug 04 05:05:10 < Aug 04 05:05:19 I wasnt familiar with IntelliJ before AS. Aug 04 05:05:47 Shortcuts and whatnot, granted I could look, but I wouldnt know what I am looking for until it is shown to me ;-) Aug 04 05:07:59 :) Aug 04 05:08:08 I just turned it off Aug 04 05:14:11 wow, there is a broadcast for timezone change Aug 04 05:21:01 hey all, I'll try this again.. Is there anybody here that can help me do a compilation with protobuf to an existing Android app? Aug 04 05:21:11 The basic example doesn't seem to work for me. Aug 04 05:22:23 g00s : i do have the necessary permissions Aug 04 05:22:58 ACCESS_WIFI_STATE, CHANGE_WIFI_STATE, ACCESS_NETWORK_STATE Aug 04 05:23:25 i don't think i need more, do i? Aug 04 05:50:24 I tried to convert the FragmentBasics example to use only Android version 19: I removed the v4 support jar, and made changes to keep Eclipse (Luna), but the App failed when I clicked on an article heading. it crashed. Debugging showed that: in ArticleFragment.updateArticleView(int position) line 81 article has a null value. Aug 04 05:50:26 MainActivity.java http://fpaste.org/122925/40712805 Aug 04 05:50:27 ArticleFragment.java http://fpaste.org/122926/28122140 Aug 04 05:50:29 HeadlinesFragment.java http://fpaste.org/122927/71281581 Aug 04 05:50:31 Ipsum.java http://fpaste.org/122928/71282051 Aug 04 05:50:32 AndroidManifest.xml http://fpaste.org/122929/12826714 Aug 04 05:51:49 (1) I want to get it working (2) I want to be better able to work out how to fix this kind of thing myself Aug 04 05:55:26 is there any ready made library to project my gyro and accelerometer trend ? Aug 04 05:56:59 Nivag, check each step - what does getActivity() return? what does findViewById() return? do you have an element with id "article" in your layout? Aug 04 05:57:45 not much else to do but to dissect your code and test it piece by piece Aug 04 06:03:10 what triggers a WakefulBroadcastReceiver onReceive() event? Aug 04 06:03:36 ravilov: Thanks, I'll look at it more in about an hour, go to cook dinner! Aug 04 06:04:46 hm, since AS 0.8.0, its taking about another 600MB of memory. I always see this java process which keeps growing and growing. i thought that this was in-process (of AS) Aug 04 06:06:23 i have 'in process build' enabled Aug 04 06:11:42 when i include a fil in assetts and compile and install my app does that file that i included in assetts geet installed automatically ? if it does where is it stored ? I look in /data/data/mypackage but i dont see anything there Aug 04 06:13:06 is anyone here Aug 04 06:13:23 im still here el guapo! Aug 04 06:13:46 do you know ? Aug 04 06:13:53 no :( Aug 04 06:15:46 oh, i think i just understood your question Aug 04 06:16:31 so im not the best on this, but basically... the assets are *in the application* https://www.youtube.com/watch?v=TV3Oncvz_cU Aug 04 06:17:10 thats what compiling does... compiles everything into one nice Android PacKage (apk) Aug 04 06:17:52 i know Aug 04 06:17:59 /data/data/com.me.myapp will hold sharedprefs and a few other files (cookies if you have webviews for example) Aug 04 06:18:07 but where is the asset stored Aug 04 06:18:12 once you install the apk Aug 04 06:18:23 what do you think happens when you "install an apk" Aug 04 06:18:30 is that supposed to include any assets you added to your app ? Aug 04 06:18:47 no Aug 04 06:18:54 unless explicitly created there Aug 04 06:19:05 err Aug 04 06:19:11 assets like images Aug 04 06:19:15 is the accelerometer and gyro so very inaccurate in the handhelds ? http://stackoverflow.com/questions/7829097/android-accelerometer-accuracy-inertial-navigation Aug 04 06:19:25 i am looking for a ready made library to project my gyro and accelerometer trend ? Aug 04 06:19:34 and came acorss that link when i was googling Aug 04 06:19:42 need inputs from experts here please Aug 04 06:19:54 0 accel experience im sorry Aug 04 06:28:53 devslash, when an app is installed, the assets are still within the apk, why would they be elsewhere Aug 04 06:28:56 ? Aug 04 06:29:11 the only thing that gets copied out of the apk automatically is the contents of lib/ Aug 04 06:29:43 i think they were assuming .apk shared similarities with a windows .exe installer Aug 04 06:30:26 yeah people like to make assumptions often times based on entirely unrelated platforms Aug 04 06:31:10 if i created a misc folder in res can i use getResources to get the path of that resource Aug 04 06:31:17 in my code Aug 04 06:31:53 devslash, res/ does not support having arbitrary dirs Aug 04 06:32:06 that's precisely what assets/ is for Aug 04 06:32:07 ok Aug 04 06:32:16 so how do i load an assest Aug 04 06:32:19 I have never used assets myself so I don't know how to get them Aug 04 06:32:23 you should probably google Aug 04 06:34:23 ravilov, trouble you for a second? Trying to implement GCM for push notifications. Any knowledge on the topic? Aug 04 06:34:27 Jesperhead: thanks for replying, any idea where i can find more information/people where i can get some help from ? Aug 04 06:35:13 solofight: I dont hear many devs talking about that specific feature, but I reckon' you'd have a larger audience if you asked the same question in ~12 hours Aug 04 06:35:26 Jesperhead, sorry, never used any google services before Aug 04 06:35:31 np Aug 04 06:35:38 Jesperhead: because of the US time ? Aug 04 06:36:08 solofight: possibly. Though being completely honest, I don't know when this channel is most active Aug 04 06:36:32 I personally have better luck having a conversation during the US early PM hours Aug 04 06:36:53 Jesperhead: got it - thanks Aug 04 06:37:18 solofight you may also try asking on google groups for android development Aug 04 06:37:56 it also depends on your application. yeah, if you are trying to use these for inertial guidance, good luck there :) Aug 04 06:45:54 hey guys, what's the top guarded secret around changing the action bar's spinner textColor? I've been able to change selectors etc Aug 04 06:48:58 shipit: you need to apply a stylesheet to it in your activity http://stackoverflow.com/questions/5861661/actionbar-text-color Aug 04 06:49:49 Jesperhead: Thx. I'm looking to change the spinner textColor, action bar's title/background is working fine for me through styles.xml Aug 04 06:50:23 Jesperhead: info - I start in tab mode however in landscape, the tabs change to spinner Aug 04 06:50:59 Jesperhead: in tab mode the text color looks fine but spinner/dropdown/items are completely out of whack Aug 04 06:51:04 hrm not sure. i found that simply through google. Im sure someone else has wanted to do it/posted about it before Aug 04 06:51:39 thank you for your help Jesperhead Aug 04 06:51:47 sorry i cant be much more Aug 04 06:52:07 np :) this is a black hole, across SO and google Aug 04 06:52:21 even Android's official blog post has it wrong Aug 04 06:54:26 use the source? ;) Aug 04 06:54:51 * ravilov often peeks at android source code when unsure how something works or why Aug 04 06:55:34 that was overwhelming for me at first. i cant help but encourage people to just try to dig in any way they can Aug 04 07:01:24 ravilov: the styling source is all xml and it's a mess esp if using appcompat Aug 04 07:01:59 one of AS releases should be a style visualizer w/ sample data Aug 04 07:02:32 and eventually we'll get to a XIB editor ... lolz Aug 04 07:08:23 What is deciding which sub packages that are created under "gen"? Aug 04 07:09:28 Which package does a layout file belong to? Aug 04 07:09:32 anli_: in Eclipse? Aug 04 07:09:35 yes Aug 04 07:09:41 Project Properties Aug 04 07:10:13 So one project can not generate layout resources under different packages then Aug 04 07:10:36 hey shipit! Aug 04 07:10:39 How are ya Aug 04 07:10:52 no, resources are generated under the app package Aug 04 07:10:57 hey detachYo! how's going Aug 04 07:11:26 Not bad Aug 04 07:11:40 late night crunchin Aug 04 07:12:44 hehe, me too, sort of Aug 04 07:12:50 messing w/ styles.xml Aug 04 07:13:11 i stay away from that Aug 04 07:13:18 i let the designer mess with it :P Aug 04 07:13:23 they're usually better haha Aug 04 07:14:25 :) Aug 04 07:14:40 how's your project? having fun w/ content providers? Aug 04 07:15:29 i actually got that down Aug 04 07:15:31 haha Aug 04 07:15:35 content providers are fun Aug 04 07:15:46 after learning how to use them, comes the hard part, deciding how to use them Aug 04 07:17:24 incorrectly, obviously :p Aug 04 07:18:24 detachYo: keep going! Aug 04 07:18:26 ravilov, of course :P Aug 04 07:18:39 shipit thank you! Aug 04 07:19:53 and, ravilov, when things go wrong, i tend to do 'git reset --hard origin/master' Aug 04 07:19:58 and start over Aug 04 07:20:00 haha Aug 04 07:20:13 you get to practice over, and do things right Aug 04 07:20:46 L is officially ditching dalvik correct? Aug 04 07:21:01 detachYo: that's wisdom my friend :) Aug 04 07:23:17 do I have to do something special to use getActivity() from fragment? Aug 04 07:24:48 I get RuntimeException: Unable to start activity ComponentInfo Aug 04 07:25:15 what are you trying to do there? Aug 04 07:25:22 query the database Aug 04 07:25:56 I could pass in the activity from the parent activity, which is calling the function Aug 04 07:30:40 I think that's what I'll do. Aug 04 07:32:56 detachYo: you shouldn't have to and it's not recommended Aug 04 07:33:15 detachYo: gist the code where you invoke getActivity(), something else is going on Aug 04 07:38:54 it was literary Cursor cursor = getActivity().getContentResolver().query(URI, null, null, null, null); shipit Aug 04 07:38:59 literaly Aug 04 07:39:09 literally Aug 04 07:39:12 damnit Aug 04 07:39:30 in response to a click or onRefresh()? Aug 04 07:39:36 click Aug 04 07:39:39 oops, onResume() Aug 04 07:39:40 hm Aug 04 07:40:34 in the main Activity I did, ExampleFragment exampleFragment = (ExampleFragment) mPagerAdapter.getItem(0); Aug 04 07:40:50 hm, try this, final Activity a = getActivity(); if (a != null && !a.isFinishing()) { a.getContentResolver(...); } Aug 04 07:41:17 if it breaks in first line the something super nasty is going on Aug 04 07:41:24 then exampleFragment.methodName(id); in methodName, in ExampleFragment, I was able to Log the ID, but as soon as I ran the query, it failed. Aug 04 07:41:38 ok, trying Aug 04 07:42:19 it may not like running in ui thread, best to implement a LoaderCallback and use a CursorLoader Aug 04 07:42:43 altho, it will tell you if it has a thread issue Aug 04 07:42:48 for a single query? Aug 04 07:42:58 it's a single query, retrieving 1 item. Aug 04 07:43:10 I thought LoaderCallbacks are for big queries :D Aug 04 07:43:31 shipit, your code worked! Aug 04 07:43:38 hehe Aug 04 07:43:48 wtf -- it's the same thing Aug 04 07:44:00 Yup, I wonder why Aug 04 07:44:04 ah, it is the isFinishing() Aug 04 07:44:20 so, does it wait until its finished? Aug 04 07:44:38 no, it doesn't execute if the parent Activity is going away Aug 04 07:45:04 hm, but in either case, the parent Activity is staying. Aug 04 07:45:07 which happens sometimes when configuration changes eg portrait to landscape changes Aug 04 07:45:28 i have a fix for that, make the app portrait only XD Aug 04 07:45:35 :) Aug 04 07:50:47 shipit, is this what you were taking about? "W/ActivityThread﹕ ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader())" Aug 04 07:51:37 hm, that looks nasty Aug 04 07:51:37 When I am creating a Wifi hotspot through the Android's "Settings" menu, I am able to connect to the Wifi. However, when I create it programatically, I am not able to do connect to the Wifi. So, what's the difference between connecting it via the "settings" menu and doing it programatically? Aug 04 07:51:57 I am giving the appropriate permissions to my program Aug 04 07:52:24 To connect programatically I am using the WifiManager class Aug 04 07:52:39 shipit, I think I am going to branch out with current changes, I don't seem to get those messages before recent changes. I'll keep updated. Aug 04 07:53:05 cool, I recommend using LoaderCallbacks Aug 04 07:53:25 https://developer.android.com/training/load-data-background/setup-loader.html Aug 04 07:54:44 All of my fragments use them for queries that build adapters Aug 04 07:54:58 I guess I have to use them for small queries too Aug 04 07:57:40 still seeing them, i'll spend my time implement loaders for all queries Aug 04 07:58:11 I use greendao Aug 04 07:58:30 greendao was recommended by someone else yesterday Aug 04 07:58:44 does it handle all those internally? Aug 04 07:59:38 anyways, off to bed Aug 04 07:59:43 thanks again shipit for your help Aug 04 07:59:45 i'll see you around Aug 04 08:00:08 cool, good luck Aug 04 08:00:09 well I just got up. Aug 04 08:01:52 hi, I have an activity that has a fragment. the activity creates a menu in onCreateOptionsMenu(), the fragment can respond to the options in onOptionItemSelected() however in onPrepareOptionsMenu(Menu menu) menu.findItem(id) returns null, i need to onCreateOptionsMenu inside the fragment in order to find the items... why is that? Aug 04 08:09:35 ohcibi: I think it's because of the order that the operations are called in Aug 04 08:09:55 onOptionsItemSelected gets propgated through various receivers until it finds a home, which is why it's in the fragment Aug 04 08:10:14 but the same class that inflates the menu items should also be responsible for preparing them Aug 04 08:33:39 If I'm using a SimpleCursorAdapter to update my ListView, and the Cursor for the adapter is passed by a CursorLoader, which component get's notified when the ContentResolver.notifyChange() is called? Aug 04 08:33:55 The CursorLoader, or the Adapter? Aug 04 08:52:28 shouldn't a view loses his focus when the activity is destroyed? Aug 04 08:54:23 doesn't it? Aug 04 08:56:16 no. onFocusChange is not being called Aug 04 09:00:31 How can I have resources from a library project added to my apk? Aug 04 09:02:48 anli_: have you checked this http://stackoverflow.com/q/16053141#16053523 Aug 04 09:05:46 Yeah, into that now Aug 04 09:05:59 Too bad something is named "raw asset" Aug 04 09:06:08 I have no idea what makes an asset raw Aug 04 09:06:36 Do they mean binary file? Aug 04 09:12:48 Or just something stored in the "assets" directory? Aug 04 09:13:04 something that is not processed by the compiler/packager Aug 04 09:13:17 left "as is" Aug 04 09:13:47 So that includes files in res/drawable that are png files as well? Aug 04 09:14:04 Are those assets at all? Aug 04 09:14:11 no, they are processed Aug 04 09:14:20 phew Aug 04 09:14:52 Now I have problems with multiple dex files, wonder if I even have more than one of them Aug 04 09:15:21 Hm, nope Aug 04 09:16:35 can libraries have resources? Aug 04 09:16:45 AFAIK no Aug 04 09:16:55 FacebookSDK has Aug 04 09:17:06 hm Aug 04 09:17:11 How would it _not_ make sense to have resources? Aug 04 09:17:21 Can a library want images? Aug 04 09:17:31 because all the "libraries" I've seen so far are in fact .jar packages Aug 04 09:17:45 They produce a jar file, yes Aug 04 09:17:54 but I haven't been working with libraries at all really, so I wouldn't know Aug 04 09:18:05 Must check if those pngs goes into the jar file, I dont think jars holds suchs Aug 04 09:18:17 Else, the use of the jar file format seems strange Aug 04 09:18:24 adroid libraries != libraris (jar) Aug 04 09:18:43 A library project produces a jar file Aug 04 09:18:46 afaik library projects can have assets (as they can have images) Aug 04 09:18:53 yeah Aug 04 09:19:28 In software, JAR (Java ARchive) is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) Aug 04 09:19:31 I have problems accessing the class com.facebook.android.R however Aug 04 09:19:34 Aug 04 09:19:48 I know what JAR files are in normal java world Aug 04 09:19:58 thing is, android-support-v4.jar for example is a JAR file too Aug 04 09:20:13 and? Aug 04 09:20:21 and I just checked, it has no resources Aug 04 09:20:32 although I would expect it does Aug 04 09:20:33 because it does not need any Aug 04 09:20:46 mmm ok Aug 04 09:20:57 but only because you can find 1 package without resources, it doesnt mean there arent any Aug 04 09:21:04 it just says this one does not have any Aug 04 09:21:12 ravilov: I solved my problem using the idea in http://stackoverflow.com/questions/19844244/fragmentbasics-gives-null-pointer-exception - however, I do not understand why this change is needed (see //xxx in http://paste.fedoraproject.org/122966/14401914) Aug 04 09:21:25 danijoo, I stated already I have limited experience Aug 04 09:21:45 How come that library projects have an assets folder at all Aug 04 09:21:50 Thats confusing Aug 04 09:23:51 anli_: arent they merged with the projects assets then? Aug 04 09:24:05 Seems like a library project cant contain them Aug 04 09:24:15 But that would make sense if they did, yeah Aug 04 09:24:25 this is how see my app's users Aug 04 09:24:26 http://9gag.com/gag/aoZm8Lw Aug 04 09:24:31 Nivag, cool, I don't know why that is needed, fragments are another thing I haven't dealt with just yet Aug 04 09:24:34 ok.. so only processed assets. Aug 04 09:24:40 yeah Aug 04 09:24:41 like drawable Aug 04 09:24:42 I can create a CRUD Project in PHP and throw it up. How difficult would it be to create an android wrapper apk? Aug 04 09:24:57 So it is an error that an asset directory can actually exist in a library project then... Aug 04 09:25:27 not really. I mean.. you can create whatever folders you want. The compiler will just ignore them. Aug 04 09:25:41 Yes, and if the compiler ignores them, it makes no sense they exist Aug 04 09:25:56 Because I did not automatically know I could ignore the folder Aug 04 09:26:13 so it also makes no sense that theres a 'penis' folder, but still i can create it and you would assume its ignored :) Aug 04 09:26:21 :) Aug 04 09:26:25 I already have one, lol Aug 04 09:26:33 but i get your point. Aug 04 09:26:40 * ravilov is not surprised the FacebookSDK has a penis folder Aug 04 09:26:44 I can create a CRUD Project in PHP and throw it up. How difficult would it be to create an android wrapper apk? I'd also like location information of the users with their permission. Aug 04 09:26:59 ravilov: hidden cookie by zuckerberg :D Aug 04 09:27:01 It is not that android development is extremely straight forward, so I would appreciate if irrelevant stuff is not generated Aug 04 09:27:12 anyone using https://github.com/koush/ion ? Aug 04 09:27:15 :) Aug 04 09:28:56 I dont see how dex merging could apply to my projects, there is only one dex file Aug 04 09:29:21 I'd just use the webview class and call it a day? Aug 04 09:31:43 anli_, that one dex file was generated from numerous class files Aug 04 09:31:52 SthNotTaken: then app wont work offline Aug 04 09:31:52 Hm, ok :) Aug 04 09:31:58 so if you have a few dex files, I guess it is not inconcievable they can be joined Aug 04 09:32:10 I only have one Aug 04 09:32:17 bhagi: understood Aug 04 09:32:37 bhagi: thanks. Any way to install a *.html into the apk or keep temporary files? Aug 04 09:32:42 anli_, maybe your library will generate another? Aug 04 09:33:24 SthNotTaken: if you want to package html files, just put them in assets/www folder (www is just a convention) Aug 04 09:34:24 bhagi: thanks for the information Aug 04 09:34:34 Is it possible that Android Studio can see dependency, compilation is valid, however running on device triggers NoClassDefFoundError ? I've got no runtime/provided/test/... dependencies, just Maven and always 'compile' Aug 04 09:34:49 anli_: whining about your case which might be minimalist doesnt take into account other projects where there are more libraries and dex files and resources. The build system isnt there for the minimalist case but rather the general case. Accept that and you'll be happier in your progress. Aug 04 09:35:04 [dx] com.android.dex.DexException: Multiple dex files define Lcom/facebook/AccessToken$SerializationProxyV1; Aug 04 09:35:28 I already accept a lot so why not Aug 04 09:35:32 bhagi: using this wrapper class, would it be possible for the phone user to send location to the site? Aug 04 09:35:49 Apparently, there are multiple dex files then Aug 04 09:35:56 Even if I cannot find them Aug 04 09:38:34 SthNotTaken: if you want to use pure javascript way check this http://caniuse.com/#search=geo, otherwise you have to use cordova/phonegap and write a plugin to execute native code to fetch location based on ondevice GPS Aug 04 09:39:12 bhagi: you're full of information. I'll go do a more in-depth search now Aug 04 09:40:49 Wow, not wonder, I had a facebooksdk.jar file in my libs directory Aug 04 09:40:53 :) Aug 04 09:43:57 Do I need to put a library project in the java build path as well? Eclipse seems to report errors else Aug 04 09:53:01 Hi! Why Fragment's child Fragment can't show other Fragments when reopen from background? Aug 04 09:53:01 http://stackoverflow.com/questions/25114009/android-fragments-child-fragment-cant-show-other-fragments-when-reopen-from-b?noredirect=1 Aug 04 10:15:13 Is there a faster way to get image metadata (width, height, mime type) than using a BitmapFactory to decode the uri? Aug 04 10:16:08 hello, guys. Having problem with edittextpreference = findpreference. If I am not wrong, this makes int to string... Aug 04 10:17:22 Sorry, I mean like in sharedpreferences there is init, after I am going in preference activity it changes to string from int. And I am about 80% sure that it's editextpreference = findpreference Aug 04 10:17:43 Because it's only who gets that int. Aug 04 10:18:19 the command ldd emulator shows this error message "not a dynamic executable" does it mean 32bit support is not there? Aug 04 10:18:32 Leftas: massively huge amount of context missing there Aug 04 10:18:44 abator: no, it means it's a static executable... try running 'file' on it Aug 04 10:18:52 I will post my prefsfragment and prefsactivity Aug 04 10:19:07 ok, ty Leeds i try Aug 04 10:21:24 http://pastebin.com/ygw4aWCt http://pastebin.com/GRi6r1MF Aug 04 10:21:49 anyone using https://github.com/koush/ion ? Aug 04 10:21:59 how do you set get params for a request Aug 04 10:22:21 tagrudev: what params you want to set? Aug 04 10:22:43 url params Aug 04 10:23:42 why cant you pass along with url in load method? Aug 04 10:24:06 Leftas: do you want to ask your real question now? Aug 04 10:24:32 Yes, why in shared preferences, iport and eport is changing into string? Aug 04 10:24:33 bhagi, isn't there another method for doing that what if I want to pass 5 10 params ? Aug 04 10:25:19 tagrudev: have to check Aug 04 10:27:00 bhagi, yeah I am searching too but I can't find a builder Aug 04 10:28:10 tagrudev: there is setBodyParameter, but that is for request body Aug 04 10:28:21 bhagi, yes Aug 04 10:28:27 that's for body params Aug 04 10:28:30 I need URI params Aug 04 10:29:02 Leftas: I'm not sure what you think it should be... also, randomly leaving letters out of your variable names doesn't help Aug 04 10:29:18 er... or maybe not... Aug 04 10:29:57 meh, I'm not here today Aug 04 10:30:40 So what should I do ? Because it breaks my prefs.getInt Aug 04 10:39:25 Hi! Why Fragment's child Fragment can't show other Fragments when reopen from background? Aug 04 10:39:25 http://stackoverflow.com/questions/25114009/android-fragments-child-fragment-cant-show-other-fragments-when-reopen-from-b?noredirect=1 Aug 04 10:39:31 Guys, I really need help with that... Aug 04 10:39:40 Me too Aug 04 10:42:27 bhagi, nope I can't seem to find a builder Aug 04 10:44:01 tagrudev: ya, me neither Aug 04 10:44:15 you better write a builder yourself, wont time much time Aug 04 10:47:47 bhagi, https://github.com/koush/ion/blob/2e7d38ab9044aeb51da7c2dd5e5c2298f4cb66e6/ion/src/com/koushikdutta/ion/builder/RequestBuilder.java#L157 Aug 04 10:47:53 I think I found it Aug 04 10:52:17 tagrudev: how will you invoke it? Aug 04 10:53:40 after the load Aug 04 10:53:51 addQueries Aug 04 11:17:11 Correct me if I'm wrong: I can use SharedPreferences a bit like I use cookies on a web server? Aug 04 11:19:19 basically Aug 04 11:20:55 tagrudev: you got it working? Aug 04 11:21:26 bhagi, yup Aug 04 11:21:57 tagrudev: could you please gist the code? Aug 04 11:22:06 bhagi, yeah moment Aug 04 11:23:41 bhagi, https://gist.github.com/tagrudev/96488bbef34a05ec3575 Aug 04 11:24:44 tagrudev: thanks man Aug 04 11:25:43 Can someone help me with this ? http://stackoverflow.com/questions/25117034/preferencesactivity-changes-in-sharedpreferences-to-string-from-int Aug 04 11:28:55 Hi Messii. Aug 04 11:32:02 you store your setting as strings using putString. did you set your debugger yet? There are no calls to getInt in your code. A major fail from you once again : you dont even bother to post the correct code. Aug 04 11:32:05 How would I set up a preference where custom code is executed? Like selecting an image on click Aug 04 11:34:19 platzhirsch: please elaborate Aug 04 11:34:39 bhagi: I want to add a preference where a user can select an image profile Aug 04 11:34:46 profile image* Aug 04 11:36:45 platzhirsch: so you want to customize http://developer.android.com/guide/topics/ui/settings.html with image picker? Aug 04 11:36:52 yeah Aug 04 11:37:01 probably just go with a custom preference Aug 04 11:37:14 "Building a Custom Preference" :) Aug 04 11:38:27 What correct code ? Now I know where is problem. No, because it dosen't work. When I set breakpoint breakpoint dosen't get execute when it goes through that line, for example I set breakpoint on log I see that log wrote in logcat, but app dosen't stop on there. ... Aug 04 11:46:22 bhagi: or just extend Preference and override onClick Aug 04 11:49:45 What’s a straightforward way to sync the state of a checkbox in the preferences screen, with a webservice? Aug 04 11:52:06 i'd create a singleton to handle with settings and implement an interface that handles settings changed callbacks Aug 04 11:53:13 most apps i read have singletons to handle the settings Aug 04 11:53:15 for some reason Aug 04 11:53:46 or if it's a simplething Aug 04 11:53:49 just an interface Aug 04 12:00:21 In the Google Play Developer Console in the Finance Overview, the Overall sum there is with or without the 30% Google takes? Aug 04 12:00:33 its still in there Aug 04 12:00:40 The note only says "All figures on this page represent estimated sales (amounts paid by users including tax)" Aug 04 12:00:41 if its says 1000, you still need to give Google 300 Aug 04 12:00:49 and subtract tax, if applicable Aug 04 12:01:01 well then the note is clear: its the amount users paid, not the amount you get Aug 04 12:01:51 so to get the amount I get what do I need to do ? subtract tax and 30% ? Aug 04 12:02:00 yup Aug 04 12:02:28 the estimate sales reports contain the exact cuts Aug 04 12:02:35 (as currently estimated ;)) Aug 04 12:02:55 Why there is even an estimate, we can know *exactly* Aug 04 12:03:30 because refunds, and credit card transactions take 7 (or was it 14 or 30?) days to be truly final Aug 04 12:04:02 however, if you use the estimated sales reports, in the end that's usually 95% or more correct Aug 04 12:04:18 its rare for there to be a significant difference, but it has happened in the past Aug 04 12:06:05 my sales reports are always 100% accurate at $0.00 Aug 04 12:21:42 Messii or Leftas as you know call yourself : you do not call putInt in that code. Try to post the correct code. Aug 04 12:23:02 jvrodrigues: A singleton? Actually since some of the preferences are normal preferences, and only one preference needs to be in sync by using an API, I was thinking of a custom Preference type. Aug 04 12:23:04 Yes I know, that was my issue... I didn't called putint. sorry Aug 04 12:23:43 e.g. a Preferences that initially displays ‘Loading…’ executes a AsyncTask and displays its state. Aug 04 12:24:15 mlangenberg, that would work too, the only thing you need to implement then is an interface, but that way you would have to pass the object of your preferences class to the webservice, and that might not be too easy Aug 04 12:24:41 wait Aug 04 12:24:54 preferences that display loading? i don't understand that part Aug 04 12:24:58 you mean the value they hold? Aug 04 12:26:24 jvrodrigues: On loading of the preference activity, I would like to do a web request to load the initial checkbox state of that checkbox. Aug 04 12:26:37 Ah Aug 04 12:26:47 that's totally diferent than what i thought you were asking lol Aug 04 12:26:55 haha Aug 04 12:27:14 well do you have a url? do you know the response type? Aug 04 12:27:24 you probably will need to do a GET request to that url Aug 04 12:27:27 Yes, I control the backend. Aug 04 12:27:36 alright then Aug 04 12:27:50 now all you have to do is extend asynctask Aug 04 12:27:53 and code it Aug 04 12:27:56 quite easy Aug 04 12:28:23 on that class just implement an interface that calls back the loading status and then on the preference activity you can load things according to the loading status Aug 04 12:28:45 there are tons of asynctask tutorials out there Aug 04 12:28:51 but basicaly Aug 04 12:29:21 My app has a PreferenceScreen with two normal checkboxes e.g. Aug 04 12:29:38 Should I define my own ‘SyncedCheckBoxPreference’? Aug 04 12:30:03 no, no Aug 04 12:30:32 so lets say you have two check boxes Aug 04 12:30:41 and want to know if they're checked or not Aug 04 12:30:54 in the xml just define the checkbox layout has gone Aug 04 12:31:09 and a framelayout as visible Aug 04 12:31:15 with a textview on it Aug 04 12:31:20 the textView just says loading Aug 04 12:31:24 now Aug 04 12:31:47 when the activity opens it also calls an asynctask class that gets the states of the checkboxes from the server Aug 04 12:31:59 now three things may happen Aug 04 12:32:04 1 no connection Aug 04 12:32:08 2 server error Aug 04 12:32:13 3 good response Aug 04 12:32:42 on the onPostExecute in your asynctask all you do is sendback to the preference activity the result Aug 04 12:32:42 and Aug 04 12:32:45 according to that result Aug 04 12:32:58 you either change the text of the textview to error or no connection Aug 04 12:33:17 or set that framelayout to gone and the layout with the checkboxes to visible and set their states accordingly Aug 04 12:33:40 if you want to sync the states of the checkboxes with the server, the thing is pretty much the same, only the otehr way around Aug 04 12:33:46 it's quite simple really Aug 04 12:34:33 right, but do you assume that the textview covers all the checkboxes? Or just the single one that depends on the AsyncLoader? Aug 04 12:34:42 that depends Aug 04 12:35:02 if the server response cover the two checkboxes then yes Aug 04 12:35:08 if not then you'd have to do it another way Aug 04 12:35:50 you can also have two textviews per checkbox and change that accordingly, but you would also have to make two GET requests to the server, one per checkbox Aug 04 12:36:14 i mean one textview per cehckbox Aug 04 12:36:24 Ah, I see Aug 04 12:36:30 you can do pretty much anything really Aug 04 12:36:32 its up to you Aug 04 12:36:41 the trick is understanding how asynctask and httpget works Aug 04 12:37:03 and how to communicate from the asynctask class back to the activity that called it Aug 04 12:39:06 How can I have com.facebook.android.R in the jar created by the library project FacebookSDK? Aug 04 12:39:14 Isnt gen a source folder? Aug 04 12:39:36 Is listed as one in the java build path at least Aug 04 13:01:09 jvrodrigues: Thanks! My first attempt will be to start the activity with a disabled checkbox, then use AsyncTask to load the initial state from the backend. Aug 04 13:04:56 mlangenberg, that makes perfect sense! Aug 04 13:05:07 if you need any help just ask Aug 04 13:07:38 thx Aug 04 13:13:47 anli_: gen, as the name suggests, is generated. As is R. As you know. Aug 04 13:20:55 Hey guys. How can I check the media type that the user has selected? I need to check if its a video or photo, because he can select both from gallery. Aug 04 13:22:33 The answer was more like ant release Aug 04 13:22:59 Also, it seems like R is not in the jar Aug 04 13:26:02 Seems it goes into ant-gen Aug 04 13:26:05 for every stupid dialog I have to create a dialogfragment? wat Aug 04 13:28:37 gdrc: if they are simple you can create a general dialogfragment Aug 04 13:29:16 I have 3 different dialogs Aug 04 13:30:46 Simple things use alert dialog Aug 04 13:31:30 I have two columns one of type date one of type time, how can I create a timestamp out of them ? Aug 04 13:32:03 err, wrong channel Aug 04 13:34:45 pfn: they don't handle rotation Aug 04 13:35:30 Then what's so stupid Aug 04 13:37:11 this is a thing of long serie wich makes android development boring Aug 04 13:45:44 Regarding EventBus (greenrobot): I have 2 activities with each own fragments. A1(F1) opens A2(F2). When F2 post and close A2, F1 does not get any events. Why? Aug 04 13:49:56 F1 didn't subscribe? Aug 04 13:51:34 pfn: it does Aug 04 13:51:58 Then it unsubscribed Aug 04 13:53:52 pfn: is it ? http://pastie.org/9444357 Aug 04 13:57:48 i have objects with Date attributes. is there a way I can modify my objects so that if I use Collections.sort on an arraylist of my objects, that it uses the date attribute? Aug 04 13:58:33 aaearon: look at compareTo? Aug 04 13:58:45 thank you Aug 04 13:58:47 pfn: you are right, F1 is recreating something like that Aug 04 13:59:15 aaearon, use a comparator Aug 04 13:59:37 Unless you only have a single ordering by date Aug 04 14:02:44 aaearon: standard java in the tutorials (they really are very good for official tutorials imo) http://docs.oracle.com/javase/tutorial/collections/interfaces/order.html Aug 04 14:03:25 thanks. looks pretty solid Aug 04 14:04:19 comparables are one of those really nice things that when you use them you think "yeah".... of course most languages have them but... Aug 04 14:14:49 Thank you pfn: ! Aug 04 14:18:51 hi, how can i play a video from Assets ? Aug 04 14:19:58 i have thi code http://pastebin.com/Y9BwLR04 but it doesn't work.. Aug 04 14:20:42 devuser: files in your package are private, so you wouldn't be able to open them in an external app Aug 04 14:20:55 so ? Aug 04 14:21:02 i copy in sdcard? Aug 04 14:21:11 Either copy the file into the public file directory, or use a media player in your app Aug 04 14:21:25 ok Estel thanks Aug 04 14:23:56 Estel... i know android 4.4+ kitkat has problems with copy file in sdcard ? it's true? Aug 04 14:24:18 Uhh, maybe, not that I know of? O_o Aug 04 14:27:25 devuser, you just need to declare extra permissions AFAIK Aug 04 14:35:20 Hello! For example i have Relative Layout. In this layout i have 2 linear layouts. Both linears have match_parent by height and width. So second(front) layout intercepts all touch events. I want to redirect all touch events to first(back) layout. I tried to call onTouchEvent in "back" layout but this event not delivered to childs. Also i tried to set descendantFocusability="beforeDescendants" to " Aug 04 14:35:21 back" layout and redirect events. But all this not help. Aug 04 14:45:25 hi guys, I'm having an issue where my amazon appstore package is being updated by the google play store. does anyone know what causes this? and or how to fix it so this doesnt happen? Aug 04 14:48:10 xgear, try returning false from onTouchEvent Aug 04 14:48:28 sedontane, will need more details about this Aug 04 14:49:29 ravilov, RelativeLayour that i described - is my custom layout and from my code i can call onTouchEvent in front or back linear layouts Aug 04 14:50:06 so all events i want to redirect to back layout Aug 04 14:50:29 i call mBackView.onTouchEvent(event) Aug 04 14:50:53 but this event not delivered to childs Aug 04 14:51:01 perhaps your linearz are not touchable? Aug 04 14:51:10 I'm trying to intercept URLs to a certain domain with an intent filter for my app. As I understand it, when done correctly, user should be presented with a "which app to use?" prompt when my intent filter is working Aug 04 14:51:11 ok, my I publish my app to both stores, with the same version number in the manifest, but when I update the GP one (to patch issues with specific devices etc that aren't needed for amazon) it will then start trying to overwrite the amazon appstore version if a customer has installed from amazon rather than GP. Aug 04 14:51:56 I have the filter in my manifest with an intent receiver, but the prompt isn't appearing. Do I need to have some code tied to the intent receiver for the prompt to show? Or is the problem something else? Aug 04 14:52:24 ravilov, no, just default. Aug 04 14:52:56 or is there some special permission I need? Aug 04 14:53:21 sedontane, the original install source is irrelevant, if GP finds the app with the same package and newer version code, it will always try to update Aug 04 14:53:47 sedontane, is a different package name for the two versions an option? Aug 04 14:54:06 xgear, I thin, you'll need to paste some code Aug 04 14:54:44 ravilov: the amazon store recognises the source if GP installs the app, I was hoping there was a tag I could add to the manifgest to make it ignore the app Aug 04 14:55:05 nope Aug 04 14:55:37 ravilov: by package name do you mean the com. thing? Aug 04 14:56:11 yes Aug 04 14:56:53 ravilov: this would mean republishing right? I couldnt just overwrite the version on the store with one with a new package name? Aug 04 14:58:43 I have no idea, I've never published anything on GP (nor do I intend to) Aug 04 14:59:12 thanks man Aug 04 14:59:23 (haven't published on amazon either for that matter) Aug 04 15:08:36 If I register an implicit intent receiver in the manifest for an activity, do I still need to create an IntentFilter and LocalBroadcastManager in the activity to actually process the intent? Aug 04 15:13:48 d0de: nope Aug 04 15:14:32 you need to ovverride onNewIntent if necessary if you need to recieve intents while backgrounded Aug 04 15:15:16 and you can simply call getIntent() to grab it in the first place Aug 04 15:16:34 sedontane, so getIntent() will fetch the intent that was used to start the activity? Aug 04 15:17:22 yes, I actually store this as a member variable so then I can replace it with onNewIntent() if another intent is called while my app is backgrounded Aug 04 15:18:40 sedontane, thanks, that sounds extremely convenient. I'll test and see if I can get it working Aug 04 15:19:09 I'll stick around, gimme a shout if I can help further... Aug 04 15:24:21 What might be the cause of this error Error? encountered while downloading: com.android.okhttp.internal.http.HttpURLConnectionImpl cannot be cast to javax.net.ssl.HttpsURLConnection Aug 04 15:24:57 full stack trace Aug 04 15:25:13 sedontane, what should getIntent() return if the app was started normally, e.g. tapping on an icon? Aug 04 15:25:46 i think it just returns an empty intent, dunno, let me check Aug 04 15:28:11 d0de: I'm pretty sure the data field will be blank if your app was opened from the launcher Aug 04 15:31:01 heeey, it's working :) Aug 04 15:31:11 d0de: excellent Aug 04 15:31:39 sedontane, however, it seems like onStart is called even when the app is backgrounded, and onNewIntent() is not called Aug 04 15:31:51 d0de: dont forget onNewIntent() otherwise you wont capture intents fired while your app is already running/backgrounded Aug 04 15:32:01 interesting Aug 04 15:32:17 Ah Aug 04 15:32:24 Hi, i have a problem, i work with a Fragment, and inside i have put a listener for something (like a button pressed, but in my case it's "i receive a packet"), but .. In that listener i need to acces to a ui component, when i run the cod i have an error "Only the original thread that created the view hierarchy can touch hist view" So basicly i watch for use runUIonThread(), but ... This doesn't work in Fragment (cause it's not "Activity" ba Aug 04 15:32:25 I do my initial call in onCreate() Aug 04 15:32:38 Here is an example of my app http://pastebin.com/p0zEg6k6 Aug 04 15:33:27 sedontane, I'll add the onNewIntent() call anyway. Thank you so much for your help! Very pleased it's working :D Aug 04 15:34:09 Enjoy your shiny new toy, bane of my life were intents Aug 04 15:34:19 im out, thanks for the help ravilov Aug 04 15:34:29 here is a better exemple http://pastebin.com/TVcs5Ycg Aug 04 15:34:31 cyber37 getActivity().runOnUiThread() Aug 04 15:35:21 omg dafuk EdGeorge it's reconised by "this" so i can try it, thanks i try and i tell you if it works Aug 04 15:35:42 You dont need to tell me...it does! Aug 04 15:37:54 EdGeorge thanks a lot it works Aug 04 15:46:26 hey guys, what location picker ux you prefer? Aug 04 15:49:30 com.android.dex.DexException: Multiple dex files define Lbolts/AggregateException; Aug 04 15:49:40 Any idea how I can find out where this is defined? Aug 04 15:51:51 seeing GC_FOR_ALLOC every few milliseconds, after I startActivityForResult(), any ideas why? Aug 04 15:51:56 nevermind, seems a rebuild fixed it Aug 04 15:53:07 I'm trying to use a library. The instructions on github say to run "ant" in the root project dir and then you'll get the jar. How do I do this? Aug 04 15:53:23 More specifically, talking about this project: https://github.com/pardom/ActiveAndroid/wiki/Getting-started Aug 04 15:54:03 eghdk if on AS, why not use gradle? Aug 04 15:54:15 shipit: Not on AS. Aug 04 15:54:20 ah Aug 04 15:54:42 Open terminal, type ant Aug 04 15:54:45 Press enter Aug 04 15:55:10 Probably need a debug or release after that tho Aug 04 15:56:21 SimonVT: ant not found Aug 04 15:56:29 install ant then. Aug 04 15:56:30 Then install it Aug 04 15:56:31 Do I have to add it to eclipse first? Aug 04 15:56:39 I definitely have ant. Aug 04 15:56:44 there's probably an eclipse plugin for that. Aug 04 15:56:46 I have adb added to my path. Aug 04 15:56:58 ant and adb has nothing to do with eachother Aug 04 15:56:59 and now you have to add ant on your path too Aug 04 15:57:13 if it's installed, you can right click your project and run as ant Aug 04 15:58:05 Syzygy: Right click my project and run as ant? Aug 04 15:58:14 yeah# Aug 04 15:58:18 something like that Aug 04 15:58:23 Are you talking about in eclipse? Aug 04 15:58:29 yeah Aug 04 15:58:37 SimonVT perhaps you know; if i have 'use in process build' selected for gradle in AS, should I ever see the gradle daemon running outside of AS? i keep having to shut down AS every 20-30 builds (or so) -- so it kills this, because it keeps growing in memory usage Aug 04 15:59:00 and my machine runs out of memory :| Aug 04 15:59:22 No idea, never used that Aug 04 15:59:44 :( it used to be nothing showed on the gradle console unless you used in-process Aug 04 15:59:45 SimonVT: SO I should add ant to my path and that'll do the trick? Aug 04 16:00:17 Ask on the adt-dev mailing list, they're fairly active there Aug 04 16:00:19 Syzygy: Didn't see anything about "run as ant" Aug 04 16:00:32 eghdk: yes Aug 04 16:00:47 do you have the ant plugin installed? Aug 04 16:01:16 also, maybe just "run as> ant build" Aug 04 16:01:54 SimonVT: Hm... but isn't "ant" the default build system for Eclipse. So I already have ant, isn't that part of the adb? Aug 04 16:01:59 I mean erm... ADT? Aug 04 16:02:05 Nope Aug 04 16:03:23 SimonVT: Nope to the "default build system" question or the "isn't is part of adt" question? Aug 04 16:04:41 I have no idea what eclipse uses behind the scenes, or what it bundles.. If you want to execute ant from the command line, install ant Aug 04 16:04:53 If it's bundled somewhere in eclipse, you certainly haven't added it to your path Aug 04 16:06:59 SimonVT: Sorry. Don't mean to piss you off, I'm just curious because http://developer.android.com/sdk/installing/studio.html says that ADT uses ANT. Aug 04 16:07:18 So now I'm just curious to see whether or not my osx machine has ant or not. Aug 04 16:07:40 as a 3rd party, it came off pretty rude Aug 04 16:08:00 bankai_au my fight with Calendar is over, and I won ! Aug 04 16:08:09 * g00s does victory lap Aug 04 16:08:57 im experiecing a problem with 1 user ...i am using HTML5 manifest offline capabilities in my app and for some reason her webview cache keeps invalidating and or clearing itself what could cause this? Aug 04 16:09:07 i have 100 installs where its working fine Aug 04 16:13:10 jaspertheghost HTML5 ... android ... good luck with that :) Aug 04 16:13:29 its certainly gotten better from what i've heard but, if your users have some older 4.0 phones ... Aug 04 16:14:00 i got it working, pretty good on all phone all teh way back to 2.2 Aug 04 16:14:19 just this one user with shitty provider she looses data connectivity alot Aug 04 16:14:42 it should and does swirch over to offline mode but for her only seems to invalidate the cache Aug 04 16:43:07 Is there any way getting the arraylist to store it's data to the device or cache the results out of the memory to avoid outofmemory in some cases? Aug 04 16:43:14 objects are all serializeable Aug 04 16:45:03 Hi, I'm making an app for android using Unity. I want to display the status bar but I guess unity sets some layout paramater and it fades and hides most of the icons. I'm sure I can overwrite it but I need to know how that is controlled in native android development (which I don't know). Anyone here knows what kind of setting has that effect? I only see batter and the clock, network status Aug 04 16:45:03 and notificaiton icons disappear Aug 04 16:46:28 I have image examples if it's not clear in a post I made at http://answers.unity3d.com/questions/753485/android-status-bar-hides-icons.html Aug 04 16:49:06 marmotje: for the arraylist caching, you can look at protobuffs Aug 04 16:49:42 you have the wrong guy :p Aug 04 16:50:22 thank you. I was looking for something like the HugeArrayList in vanilla-java collections, but i would like to avoid using extern librarys because of licensing-issues. Is there no comon way doing this? Aug 04 16:50:43 marmotje: oopsy, sorry man Aug 04 16:51:31 and afaik the library has been renamed and updated as guava, which is pretty big in size Aug 04 16:51:48 My app opens when a user opens urls to my domain. I do this with getIntent() in onStart() .How can I get the app to process the intent the first time, but ignore it if a lifecycle event happens that triggers onCreate() (e.g. the user rotating the device?) Aug 04 16:52:26 at the moment, everything works fine when the app opens for the first time, but if the screen is rotated, the app behaves like it's received the intent all over again Aug 04 16:53:05 maybe I could store a copy of the last intent and compare it against the new intent, and ignore it if they match? Aug 04 16:55:52 d0de: onNewIntent() Aug 04 16:56:49 shipit, onNewIntent() never fires for me. Every new intent calls onStart Aug 04 16:57:28 http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) Aug 04 16:57:53 you need FLAG_ACTIVITY_SINGLE_TOP Aug 04 16:57:54 I'm using launchmode singleTop, perhaps that's why? Aug 04 16:58:28 oh Aug 04 16:58:39 I'm already declaring singleTop in the manifest, so it should work right? Aug 04 16:58:47 yes Aug 04 16:59:12 go over the manifest carefully Aug 04 16:59:15 easy to miss Aug 04 17:00:16 what layout should i use that autobreaks/new-line when a children hits say right border? Aug 04 17:00:39 linear layout it’s only 1 line, grid layout needs specific colums... Aug 04 17:01:11 my children are irregular size. In iOS Collection Views handle all this automatically Aug 04 17:01:21 havent found a solution for android yet Aug 04 17:02:36 imton: look at Android Design Guidelines to figure how to represent the control/information on Android Aug 04 17:02:49 d0de: https://code.google.com/p/android/issues/detail?id=17137 Aug 04 17:02:54 No idea if it has been fixed in newer versions Aug 04 17:02:55 imton: https://developer.android.com/design/index.html Aug 04 17:03:24 shipit: thanks. I’ve already read it Aug 04 17:03:56 SimonVT, thanks! Aug 04 17:09:31 What does getIntent actually do? Aug 04 17:11:14 I'm having real problems trying to process an intent just once instead of over and over :( Aug 04 17:13:41 oh, I can just use setIntent to set a blank intent on the activity once I've processed the original intent? Aug 04 17:19:15 yes Aug 04 17:19:54 hi, is it possible to set a ActionBar.TabListener for don't stop the class of the active tab when we switch ? http://pastebin.com/ZedRMJPA Because actualy when my tab change, it do "replace" Aug 04 17:20:25 where can i get app ideas Aug 04 17:20:26 D: Aug 04 17:20:47 iffa: brain? Aug 04 17:20:50 #android-appideas Aug 04 17:20:56 iffa: noffence Aug 04 17:21:04 :P my brain doesnt like the thought of "app ideas" Aug 04 17:23:46 which freelancing site can i use to get good android work? Aug 04 17:24:35 iffa: try /r/AndroidApps Aug 04 17:25:42 bhargavg for freelance in programming and all "informatics" there is a nice french site https://www.codeur.com/ Aug 04 17:27:03 cyber37: it looks like it is not english... dont know which language is it Aug 04 17:27:46 it french site Aug 04 17:28:02 but there is one like it in english but i don't remember the name Aug 04 17:31:37 i'm guessing that supporting tablets is very important, i see an app placed before mine (in order) despite (1) it hasn't been updated (2) it has worse reviews (3) it has fewer users -- but they do support 7/10" tablets Aug 04 17:32:00 any idea why this selector is not working when checkBox:checked=false? https://gist.github.com/anonymous/d992721ccebdd7135cdc Aug 04 17:32:09 basically its carppier in every possible way Aug 04 17:32:13 *crappier Aug 04 17:32:28 g00s: ugh Aug 04 17:33:00 less users, less reviews, worse reviews Aug 04 17:33:09 what universe is this better :| Aug 04 17:36:23 Unless you have a tab, then that other one is better Aug 04 17:38:51 Regaurdless how good something is, if i cant use it, its no good to me. Aug 04 17:39:27 Or regardless even Aug 04 17:41:01 it would certainly help if Play gave metrics concerning my user's screen size Aug 04 17:41:12 so i can see how many people are using the app on tablets Aug 04 17:42:35 atm i suspect very few, so i have a hard time justifying it - except maybe to game Play's nebulous ranking Aug 04 17:43:06 analytics? Aug 04 17:43:21 I'm with g00s, no point forcing the developer for a tablet version, sometimes it doesn't even make sense eg messaging apps Aug 04 17:43:55 danijoo Play should give me those analytics Aug 04 17:44:09 it gives me a breakdown of android version, it should do so for screen sizes also Aug 04 17:44:43 but i will add analytics to the app Aug 04 17:50:00 how would I go about mapping a retrofit observable response to the response object itself? Aug 04 17:52:40 shekibobo: if your response class supports @SerializedName annotation for gson, you don't have to do anything Aug 04 17:55:21 shekibobo it would suck if they applied this ranking to wearables : priority to apps with wearable components Aug 04 17:56:24 oops, soeey shekibobo i mean shipit Aug 04 17:56:35 autocomplete ftl Aug 04 17:57:07 hehe np, I also see that w/ SDK manager -- L and W SDKs checked on by default Aug 04 17:57:32 google think -- force ppl to follow their hidden agendas Aug 04 17:57:54 developers: adopt our stuff or pay the price Aug 04 17:58:03 (rankings) Aug 04 17:58:37 they should see what's happening w/ G+ Aug 04 17:58:43 learn from that adventure Aug 04 17:59:45 yeah, thats a complicated one. lots of factors, privacy, and of course large companies creating social products when they don't even understand people Aug 04 18:00:09 i'll post stuff to google+ if they pay me for it :) Aug 04 18:00:44 shipit: so I'm doing a thing where I start with Observable.from(thingId), end up with an observable, which I want to map to a Thing. https://gist.github.com/shekibobo/e972d54752ece7dc1a61 Aug 04 18:01:53 it's those last steps where I'm not quite certain what to do, or even if I'm starting this out, really Aug 04 18:01:58 pretty new to Rx Aug 04 18:02:17 use flatMap Aug 04 18:02:37 instead of map? Aug 04 18:02:40 or for retrofit? Aug 04 18:02:58 https://speakerdeck.com/jakewharton/2014-1?slide=30 Aug 04 18:03:00 instead of map Aug 04 18:17:44 hi, is it possible to set a ActionBar.TabListener for don't stop the class of the active tab when we switch ? http://pastebin.com/ZedRMJPA Because actualy when my tab change, it do "replace" Aug 04 18:18:03 My problem is also i never go in "onReselected" Aug 04 18:18:46 so i can't put inside something like "just show" when it's reselected ? Aug 04 18:19:22 My problem is that reset the class of the tab every time you switch to another tab Aug 04 18:22:21 https://github.com/Leandros/ActionBar-with-Tabs/blob/master/src/de/arvidg/exampleactionbartabs/StartActivity.java here is an exemple, it work but, when you switch to a tab you "reset" him Aug 04 18:36:20 Hi all- can someone tell me how to properly startActivity (where intent is shortcut to some external app) from Service? it looks like this doesn't work, but then again,... why does compiler say that i have to use FLAG_ACTIVITY_NEW_TASK on intent if i want to run it from Service? Aug 04 18:36:27 Does this code look horrid with all that DAO thing or is it just me? https://gist.github.com/autrilla/898ed028eb2ffa5bc2e1 Aug 04 18:36:39 is this new task meant as object of my service class? Aug 04 18:38:38 JakeWharton, would you inject DAOs and have them be singletons? Aug 04 18:38:41 what i get when running from service is nullpointer exception that just shows on startActivity(intent) line, where intent is full intent (as checked with debugger) Aug 04 18:38:48 Is that a proper usage of dagger? Aug 04 18:39:06 sure Aug 04 18:40:19 Also I wonder what kind of drugs the ORMLite author took when making a Dao that only throws runtimeexceptions Aug 04 18:44:55 sorry, got dc'd. so... when i'm running startActivity(intent) from my service, i get nullpointer exception even though intent is proper and full intent, or.. i get libc? Fatal signal 11 (SIGSEGV) error. can someone tell me why's this happening? Aug 04 18:47:30 the only thing why this could be is that i run background service from onCreate in Main Activity. and startActivity is running from Background Service. Could this be the reason? should i start/create service in onResume of Main activity? Aug 04 18:47:38 JakeWharton: I did a thing with flatmap. From what I can tell, the server call is made, but I never get to any of the subscriber methods. Any thoughts? https://gist.github.com/shekibobo/e972d54752ece7dc1a61 Aug 04 18:49:51 I think I had this problem the last time I tried rxjava. My subscriber would never fire... Aug 04 18:52:57 what are most android developers using now-a-days eclipse or android studio? Aug 04 18:53:20 Studio 0.8.4 just came out, pretty nice Aug 04 18:54:42 shekibobo: cool, it seems that’s where the momentum is shifting Aug 04 18:55:41 Please i need help with fragment, i have made a TEST program, can someone help me to do that i want ? the program make 3 tabs, when you are in a tab you have a edittext, you put something in that you press enter and it view the message writed on a TextView, But my problem : When you change to another tab, and come back again, the class of the Tab is reseted, so you loose that you do before ! Aug 04 18:55:52 Here is an archive with eclipse project with api 14 Aug 04 18:56:11 https://drive.google.com/file/d/0B8Wmm_jgqSprcVFIUlpxVkt3Y2c/edit?usp=sharing Aug 04 18:56:57 When i go to another tab, and come back to the first, i loose the work who was made in. Because maybe the class is re created Aug 04 18:59:32 my app intercepts certain URIs. When I click a link in say FB messenger and my app intercepts it, my app opens as a "child" of facebook messeger. As in, if I press the home button, then the FB messenger icon, my app comes up. If I press the back button, I go back to FB messenger. Is this normal / expectred behavior? Aug 04 19:00:07 omg Aug 04 19:03:30 JakeWharton, is it fine (or a good practice) to call a @Provides @Singleton method on another @Provides @Singleton method? Aug 04 19:03:42 no Aug 04 19:03:47 add its type as an argument Aug 04 19:04:10 https://github.com/JakeWharton/u2020/blob/d5dc1aff3eb23ab185bb191f609b6f6187dcfaaa/src/main/java/com/jakewharton/u2020/data/api/ApiModule.java#L29-L31 Aug 04 19:04:26 Thank you Aug 04 19:04:27 https://drive.google.com/file/d/0B8Wmm_jgqSprcVFIUlpxVkt3Y2c/edit?usp=sharing Can someone watch it ? i use mutiple tabs with Fragment, but my problem is "if i go to another tab, and come back to the tab where i was" the tab is reloaded/recreate Aug 04 19:05:02 JakeWharton, and it'll get injected into the method? Aug 04 19:05:07 yep Aug 04 19:05:28 I'm getting Fatal signal 11 (SIGSEGV) when i try to startActivity for 2nd time. what could be the problem? startActivity opens 3rd party app. after that, i can't open my app to trigger the startActivity anymore. i have to uninstall and install again? Aug 04 19:05:47 autrilla: https://speakerdeck.com/jakewharton/2014?slide=72 Aug 04 19:06:53 JakeWharton, I guess @Provides @Singleton ShoppingListOpenHelper provideShoppingListOpenHelper() {return new ShoppingListOpenHelper(ShoppingListApplication.this);} is wrong too. Aug 04 19:07:13 put the Application into the graph Aug 04 19:07:25 https://github.com/JakeWharton/u2020/blob/d5dc1aff3eb23ab185bb191f609b6f6187dcfaaa/src/main/java/com/jakewharton/u2020/U2020Module.java Aug 04 19:09:29 Thank you again Aug 04 19:17:41 Everything looks so much better when it's injected Aug 04 19:21:27 .subscribeOn(Schedulers.newThread()).observeOn(AndroidSchedulers.mainThread()), right? Aug 04 19:22:04 then .subscribe(new Observer ...) Aug 04 19:22:29 getting this with RxJava-android: java.lang.IllegalStateException: Must be called from main thread of process Aug 04 19:27:59 Can someone help me about fragment Actionlistener .. ? I am borred :( Aug 04 19:29:57 with RxJava-Android: subscribeOn(newThread).observeOn(Android.mainThread).subscribe(new Observer() { onNext() {}); onNext for some reason seems not to be running on the main thread. Aug 04 19:41:07 has anyone experienced the following error? "java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image%3A1468 from pid=26707, uid=10125 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()" Aug 04 19:41:53 It is happening while using Picasso library to open a Uri Aug 04 19:43:30 http://pastebin.com/qiRqM63M Aug 04 19:43:41 the last line is the offending code Aug 04 19:43:55 Using Android Studio, trying to use proguard, I get a sweet error in the Messages panel after a build: "java.io.IOException: Please correct the above warnings first." But there are no warning in the panel. Aug 04 19:44:32 JakeWharton, any ideas? Aug 04 19:44:35 I'm creating menu items for a PopupMenu programatically, how do I show icons? https://gist.github.com/anonymous/cc07caf3f46b8793d610 Aug 04 19:54:47 c2h6o: I haven't used it, but have some vague memory that to access stuff from the storage access framework you may need to poke around https://developer.android.com/guide/topics/providers/document-provider.html - (possibly action_open_document, dunno) Aug 04 19:56:29 c2h6o: the exception tells you the problem Aug 04 19:56:40 and it tells you the fix Aug 04 19:57:01 huh, didn't realize MANAGE_DOCUMENTS is available to general apps Aug 04 19:57:15 * kbs should re-read the storage access stuff Aug 04 19:58:33 JakeWharton, I have an IntentService that calls Picasso in onHandleIntent... and the following is my Manifest file android:permission="android.permission.MANAGE_DOCUMENTS" Aug 04 19:58:33 /> Aug 04 20:01:17 you need at the root of the , not on the Aug 04 20:01:34 If anyone is willing to find an error in my project (explained here: http://stackoverflow.com/questions/25126530/after-running-startactivity-for-2nd-time-in-service-my-app-starts-crashing-with), i'm willing to pay some small amount of cha-ching! Aug 04 20:02:07 JakeWharton, I also had this at the root Aug 04 20:09:10 JakeWharton, same problem as https://plus.google.com/107653617156896888676/posts/3783jYkageC Aug 04 20:12:11 hi guys I am trying to follow this tutorial https://developer.spotify.com/technologies/spotify-android-sdk/tutorial/ in eclipse instead of Android Studio. I added the two jars and the aar file to libs directory. Still I am not able to import com.spotify.sdk.android.Spotify. Can someone let me know what am I missing? Aug 04 20:12:13 nice, android is a no-show on the pwnie awards :D Aug 04 20:12:38 although maybe indirectly from heartbleed on some versions Aug 04 20:23:32 is it time for the pwnies again? Aug 04 20:23:43 it is! Aug 04 20:24:15 oh... those! I thought we had a real life bronie in here for a second. Aug 04 20:24:30 :D Aug 04 20:25:32 omi Aug 04 20:26:30 the bronys are from bronycon Aug 04 20:26:30 Hi, I'd like to store a single string (user setting). The user should be able to edit the string later in the app's settings. What way do you recommend to store the string? Aug 04 20:26:56 SharedPreferences Aug 04 20:27:10 Thanks I check that out Aug 04 20:27:30 Hi, how can I add a Parcel to a bitmap which contains other data? Aug 04 20:27:39 I meant bitmap to a Parcel Aug 04 20:28:12 I'm not sure how to do it, so far I'm just passing everything apart from the images and then redownloading the images. Aug 04 20:28:21 But it's a good solution :( Aug 04 20:30:51 Please someone Aug 04 20:31:57 I have an object which has many String and int members but it also has a Bitmap. How can I pass this object to another Activity? Aug 04 20:32:21 I've tried Parcelable but I don't know how to Parcel the bitmap properly. Aug 04 20:33:16 Pass an url or something to the Activity then fetch the Bitmap from a memory cache, or re-download if necessary Aug 04 20:35:03 https://drive.google.com/file/d/0B8Wmm_jgqSprcVFIUlpxVkt3Y2c/edit?usp=sharing Can someone help me with that ? Aug 04 20:36:08 I use action tabs + fragment but when i change the tab it "reload" the class of the tab so everytimes the class "is restarted" when the tab change = not good Aug 04 20:46:50 SimonVT, thanks would you recommend passing it as a bytearray? Aug 04 20:49:41 No, I'd recommend passing an url Aug 04 20:49:48 A bitmap wont fit in an intent Aug 04 20:53:22 But I don't really want to download again Aug 04 20:53:32 Is using LruCache recommended? Aug 04 20:53:42 AKK9 or maybe DiskLruCache Aug 04 20:57:16 So a disc cache is same is lru cache but i syncs to disc every now and then? Aug 04 20:57:37 or every time a bitmap is added Aug 04 21:01:18 Someone know RxJava? Aug 04 21:05:39 g00s: congrats for winning. i won my battle too, but i had to ask for help :P Aug 04 21:07:15 bankai_au \o/ Aug 04 21:08:08 so with actionbar navigation modes being deprecated in L, is a good bet then to just use a viewPager with fragments? Aug 04 21:12:37 those are orthogonal Aug 04 21:19:11 oh yeah, crap Aug 04 21:21:39 If I create an Lru cache in my activity doesn't it get lost when on orientation change/ Aug 04 21:21:41 ? Aug 04 21:21:59 Or do i put in in a bundle, and restore after orientation change? Aug 04 21:26:18 Or just don't put your data (LruCache) into your presentation (Activities). Aug 04 21:35:39 Mavrik, where can I put it that it doesn't get lost Aug 04 21:35:40 ? Aug 04 21:37:46 My app has a main activity so doesn't everythign exist in that main activity? Aug 04 21:38:00 so when it rotates the activity is destroyed? Aug 04 21:38:13 Sorry mate im quite new to this Aug 04 21:45:31 Hi, if my targetSdkVersion is 19 and I'm using setExact() which is available in API Level 19+ and I want app to be compatible with older versions of Android then I have to surround setExact() with "if (android.os.Build.VERSION.SDK_INT>=19)" or not? Aug 04 21:45:48 Hey guys, I'm looking for a best practice concerning the navigation drawer. When the triggered intent resolves to the currently active activity, it should just close the drawer in stead of reloading the activity Aug 04 21:51:24 tetraktys, what are you trying to do? Aug 04 21:52:15 I have a navigation drawer, with a "news" item. But i don't want the activity to reload when i'm already there Aug 04 21:52:35 its a waste of bandwidth Aug 04 21:57:13 AKK9 ^^ Aug 04 22:12:53 tetraktys, sorry was afk. Aug 04 22:13:28 I was going to say just store an int of the currnet selection and then check against it to see if a different item was selection Aug 04 22:13:33 selected* Aug 04 22:13:35 No problem :) I'm just weirded out, since i can't find anything on SO or google Aug 04 22:14:04 do you have a listview in your nav drawer? Aug 04 22:14:09 i think i'm going for that solution as well Aug 04 22:14:10 i do Aug 04 22:14:17 yeah thats what i would do Aug 04 22:14:35 im definitely no expert though so... Aug 04 22:15:02 there's probably a better practice, but i'll just add it to my to do list :) for now it'll work Aug 04 22:15:04 thanks! Aug 04 22:18:22 not sure how to do it though :/ See my Listener: http://pastebin.com/JiTT2wUC Aug 04 22:21:49 Is there a way that I can simulate a bad connection for debugging? Aug 04 22:25:45 tetraktys, i would have a private int in your activity called currentPosition. In the listener I would do: if (position != currentPosition) { send my intent } Aug 04 22:25:49 Does that make sense? Aug 04 22:26:23 Syzygy: use wifi and walk away from the hotspot far enough Aug 04 22:26:54 guess i'll have to turn off my regular network for that just in case Aug 04 22:27:45 supposedly i can provoke them when routing to an unresolvable IP Aug 04 22:28:21 tetraktys, so it's saying if the user has selected somethign different to what is currently selected then send the intent to start the new activity. Aug 04 22:28:22 It kind of does, but i think i've already figured something else... It equally non-pretty, but with getLocalClassName() i get the name of the current activity and i can check against that. Aug 04 22:28:25 going to try that first, otherwise I'll have to put on pants and go for a walk in the middle of the night Aug 04 22:29:06 tetraktys, that seems a bit more expensive that just checking an int. but im not expert so whatever works i guess. Aug 04 22:29:49 you are so right :) i'll try your option first Aug 04 22:32:44 it does it's job just fine AKK9 :) sticking to your answer Aug 04 22:43:11 Hello, Aug 04 23:07:38 Anyone familiar with fragments? I am trying to understand why a fix is needed when converting the BasicsFragment example not to use v4 support, see: the method updateArticleView() in http://fpaste.org/123155/71935511/ Aug 04 23:14:20 so, is Android Studio any good? should I bother to try to migrate? (I asked this same question here 1 year ago and the answer was a sounding “NO”) Aug 04 23:15:30 I like it Aug 04 23:15:37 nuh, migrate to IJ Aug 04 23:16:02 ^ Aug 04 23:16:17 rottz: you can run them all at the same time Aug 04 23:17:06 I think qt necessitas is better to program in android than with qpython, because android is officially supported by qt? Aug 04 23:19:10 I search a example for a listview with more than 2 values in the row, somebody have a link? Aug 04 23:20:48 is there a way to detect a change to a view element, such as when a NetworkImageView has its image loaded from the network Aug 04 23:32:19 how do I disable debuggable in my apk so I can publish it to the play store Aug 04 23:32:41 haha i just noticed Log.wtf Log.wtfStack Aug 04 23:33:23 where wtf = "What a Terrible Failure" ... mmhhmm :P Aug 04 23:34:16 does anyone here use Aide ? Aug 04 23:34:21 devslash: it's kinda tricky. iirc you want to do Build -> Generate Signed APK. there's tutorials you can google that explain it Aug 04 23:34:37 well im not using android studio Aug 04 23:36:17 I added android:debuggable="false" to my AndroidManfiest.xml but BuildConfig.java shows DEBUG=true Aug 04 23:37:48 devslash, build release Aug 04 23:37:59 ? Aug 04 23:50:50 debuggable is independent of build type Aug 04 23:51:46 pfn, the androdmanifest one is, but I'm pretty sure the build process generates a buildconfig.java with debug as false when you make a release build unless the the manifest one is true Aug 04 23:51:56 at least it's always done so for me Aug 04 23:52:03 nope, build system ignores value in androidmanifest.xml Aug 04 23:52:07 it generates the type you request Aug 04 23:52:18 e.g. with ant and gradle, ant release/debug or gradle assembleDebug/assembleRelease Aug 04 23:52:31 never used either one of them ;) Aug 04 23:52:41 maven or just IDEA Aug 04 23:52:49 maven should be doing something similar Aug 04 23:53:08 but whatever, the answer is to build a release build Aug 05 00:03:07 bankai_au: be careful, calling Log.wtf has actually crashed some of my devices ;p Aug 05 00:05:04 but it doesn't... Aug 05 00:41:40 is there any way to use a preference widget in a regular activity Aug 05 01:11:58 anyone know if there's any country-specific data on installed Android versions? Aug 05 01:13:24 I theoretically need two listviews inside of a scrollview to accomplish the UI I am trying to design. any suggestions for how I should approach this? Aug 05 01:16:36 mattblang_: in my experience, it's not a good idea to embed a listview inside a scrollview, let alone 2 of them :) Aug 05 01:16:57 barbs yeah I know, but what should I do. that is what I need lol Aug 05 01:17:47 not sure exactly what your layout is supposed to be, but you could consider just placing objects in a vertically-aligned LinearLayout (though this might be inefficient) Aug 05 01:17:58 barbs got two dynamic data sets I want to show in a scroll view, definitely don't wnat to have to programatically make views if I can help it Aug 05 01:18:09 or you could use the headers and footers of the listviews to add more views Aug 05 01:20:23 barbs man, I guess I'll just have to dynamically create all the views and append. man that sucks, I'd really like all the convienance of an AdapterView Aug 05 01:22:34 yeah, kinda sucks... Aug 05 01:27:29 UX sucks to have 2 list views like that Aug 05 01:28:07 pfn well, its a detail page that has some detail stuff, blah, blah, then two groups of data. the whole thing would be in a scroll view Aug 05 01:28:23 pfn it looks nice, I'm just realy not sure how to go about it besides making a createView function and dynamically adding rows Aug 05 01:28:42 It doesn't look nice.. Aug 05 01:29:05 pfn any suggestion for how I could improve it? Aug 05 01:30:00 By looking at other apps that do similar things to what you want? Aug 05 01:35:09 pfn lol, I know I probalby shouldn't be doing this, but the lists aren't that long http://www.java2s.com/Code/Android/UI/setListViewHeightBasedOnChildren.htm Aug 05 01:35:24 barbs ^ Aug 05 02:41:58 mattblang_ why not use cwac-mergeadapter Aug 05 02:42:12 i think i recommended this a week ago ;) **** ENDING LOGGING AT Tue Aug 05 03:00:00 2014