**** BEGIN LOGGING AT Fri Jul 18 03:00:00 2014 Jul 18 03:00:12 jamesson the docs are pretty clear Jul 18 03:00:38 g00s: could you please refer me? I have not forund the relevant one so far Jul 18 03:00:50 O.o Jul 18 03:00:52 http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#enable() Jul 18 03:04:35 g00s: sorry, how do I know that has been updated? Jul 18 03:05:23 g00s: that is, how do I know the state of the adapter has changed? Jul 18 03:05:35 jamesson it says in the javadoc i just linked Jul 18 03:05:56 i just joined the channel, can you send the link again? Jul 18 03:06:06 http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#enable() Jul 18 03:06:16 mny thanks =) Jul 18 03:06:26 are you guys working together ? Jul 18 03:06:59 g00s: ok, sorry, let me be more specific. What do they mean when they say "listen for action_state_changed"? Jul 18 03:07:00 no, i don't think i know anyone here Jul 18 03:07:45 jamesson it says in that sentence -- This is an asynchronous call: Jul 18 03:08:00 so you have to set up a broadcast receiver to listen for that state change Jul 18 03:08:30 g00s: ah now I got it ty Jul 18 03:09:30 jamesson actually, there is a little bug with this one if i recall Jul 18 03:09:45 " If this call returns false then there was an immediate problem that will prevent the adapter from being turned on - such as Airplane mode," Jul 18 03:10:15 problem is, sometimes it returns true when in Airplane, and the adapter can not be enabled Jul 18 03:10:28 to, be careful - bt involves lots of defensive programming Jul 18 03:10:29 good luck Jul 18 03:10:32 * g00s runs Jul 18 03:27:51 what is the easiest way to compile curl for android? i have a had a look around the interwebs and ive seen a acouple of different methods none of which i can get to work. in theory, i should be able to configure for arm and then cross compile with the tools in the ndk howver i dont get a libcurl.so as a result of that process. anyone have experience in stuff like this and can help me out? Jul 18 03:30:03 teasp00n: http://square.github.io/okhttp/ Jul 18 03:31:28 shipit: cheers man, im specifically wanting to use curl as im developing a library to share with iphone developers. it might not be the best approach but for now we are wanting to give it a try Jul 18 03:32:06 teasp00n: are you just fetching urls or form posting as well? Jul 18 03:32:24 shipit: sending post data as well Jul 18 03:32:34 teasp00n: in either case I like okhttp for Android and AFNetworking for iOS -- tons examples in both cases. Jul 18 03:32:59 shipit: hmmm, good to know those are there if this doesnt work out Jul 18 03:39:11 shipit quick q; if you were getting into iOS now would you go objc or swift Jul 18 03:42:39 swift . g00s .. but don't ask me the reason. :P Jul 18 03:42:51 g00s: if you want to ship apps quickly, I'd go w/ objc because tons of example Jul 18 03:43:35 shipit is the swift stuff in beta stage , or getting worked out ? Jul 18 03:43:40 I'd become comfortable w/ the core os first eg operation queues, grand central dispatch, spritekits etc Jul 18 03:43:52 g00s: swift is still early Jul 18 03:44:19 g00s: however, another approach could be to just pick up a project and power through using swift Jul 18 03:44:47 g00s: in short, to ship apps: objc, to learn: swift Jul 18 03:44:53 shipit ok, thanks Jul 18 03:45:35 anyone have any ideas if cloud sql is able to handle millions of users ? Jul 18 03:45:43 I am experimenting w/ java-rx for Android, going to put out an app soon, 1-2 days -- very productive Jul 18 03:46:05 iOS has ReactiveCocoa albeit more mature than java-rx Jul 18 03:48:34 shipit yeah, i like rxjava its nice Jul 18 03:50:21 shipit i think i'd like swift much more if it has or gets message passing over method invocation Jul 18 03:50:32 i like that from objc Jul 18 03:55:50 Hi guys, I’m trying to use a custom font, and keep getting the error described here http://stackoverflow.com/questions/12766930/native-typeface-cannot-be-made-only-for-some-people. Apparently, it simply doesn’t like some fonts. The suggested solution does prevent a crash, but I’m looking for other possible custom fonts that will work with android, as I have already tried 3 and android doesn’t like any of them. Does anyone know of any list Jul 18 03:55:50 of fonts that definitely work? or have another solution to fix the issue from the link? Jul 18 03:55:57 sorry for long message Jul 18 04:11:38 I'm interested in developing pretty much exact snowglobe like this for Android: https://itunes.apple.com/US/app/snowglobe-souvenirs/id293047205?mt=8 Jul 18 04:11:47 what technology, knowledge I need to develop it ? Jul 18 04:11:54 what custom font are you using aarondabomb Jul 18 04:15:08 aarondabomb: I had a similar problem with honeycomb with like just 1 or 2 specific tablets. Ended up being such a PITA we dropped (or should I say I) the font. Jul 18 04:15:34 Wasn't worth it. All the stacktraces came from HC code. Never a working solution as an answer on SO either. So meh. Jul 18 04:20:27 any graphics pro here ? Jul 18 04:22:27 wow, c++ devs will probably like this http://shop.oreilly.com/product/0636920033707.do Jul 18 04:22:40 i had the older versions, they were part of the c++ canon :) Jul 18 04:23:14 hmm i'm using play store to distribute a beta app, after publishing an APK, how long does it take before people get it? anyone know? Jul 18 04:29:42 4 hours Jul 18 04:29:59 plus or minus 2 hours Jul 18 04:34:29 sorry guys, I was afk for a bit. I was using Impact.ttf, but this answer solved my problem: http://stackoverflow.com/questions/12766930/native-typeface-cannot-be-made-only-for-some-people#comment35348078_18170916 Zooklubba desmin88 Jul 18 04:34:44 how can i get a view to follow my finger? i tried doing view.setTranslationY(view.getTranslationY() + distanceY) in onScroll for my view, but that just sends my view downwards. any ideas? Jul 18 04:35:12 why are you using the impact font Jul 18 04:35:34 cause memes use it and I wanna fit in Jul 18 04:35:53 why not use the android fonts Jul 18 04:35:55 like roboto Jul 18 04:36:05 or are you overlaying text onto photos Jul 18 04:38:03 JakeWharton, thanks! Jul 18 05:11:25 Hi, has anyone successfully using openvpn on the new Android L platform? Jul 18 05:11:43 i'm getting the following error Jul 18 05:11:43 Output from OpenVPN: error: only position independent executables (PIE) are supported. Jul 18 05:15:05 dck28: you probably shouldn't expect things to work on android l Jul 18 05:34:37 so on my journey of learning java/android. I've learned that everyone who likes to make how to guides likes to fuck up in one little piece of code through out the whole guide. Jul 18 05:35:31 probably with the enjoyment of knowing that newbies will be sitting there, for god knows how long, wondering where they fucked up Jul 18 05:39:47 or it would just be your welcome to the human race ;) Jul 18 05:40:18 everyone makes mistakes, no one writes perfect code, though when they are fresh from uni they like to pretend they can Jul 18 05:40:49 so, you're not such a newb as you might think Jul 18 05:46:08 Searched all forums but i didn't get the solution for my android unknown 960 error. can anyone help me? Jul 18 05:46:25 The problem is whenever i try to install an app it downloads successfully but throws an error "Unknown error 960" Jul 18 05:46:47 I am using Moto E Jul 18 05:46:54 Android Kitkat 4.4.4 Jul 18 05:48:18 greyhatpython: wrong channel Jul 18 05:48:35 i came from #android Jul 18 05:49:26 Carbonflux: I know.. but those feels when you sit there all that time... wondering what you did wrong. Jul 18 05:49:37 but its all venting.. Jul 18 05:50:10 which is the right chanel then? Jul 18 05:50:26 I celebrated my small victory with some shots Jul 18 05:50:32 I call them victory shots Jul 18 05:50:40 greyhatpython: this is for android development Jul 18 05:51:32 well i tried in #android they sent me here, now you are bouncing back. Jul 18 05:56:01 :) Jul 18 06:15:51 I am coming here from #android channel and have questions about android dev. I have started few months ago and some things are not clear. Jul 18 06:18:18 speak your mind detachYo Jul 18 06:18:36 I am trying to create an activity that will host a viewpager with three (3) pages. Jul 18 06:18:52 I can get that part going. First fragment will hav elist of contacts in list view Jul 18 06:19:00 so I made it ListFragment, works fine too. Jul 18 06:19:15 Second fragment will have a AutoCompleteTextView with list of contacts Jul 18 06:19:22 I can get that working too Jul 18 06:19:36 My concern is, is it a good idea to load list of contacts twice, one for each adapter? Jul 18 06:19:56 Is it better to load it in the parent activity then pass it on to fragments when creating them? Jul 18 06:20:02 hm Jul 18 06:20:50 detachYo you must be using a query and CursorAdapter in both cases? Jul 18 06:21:06 I use ArrayAdapter in both cases Jul 18 06:21:20 what happens is, I have a function that loads the contacts into HashMap Jul 18 06:21:32 then I Asynchronously load them into an adapter Jul 18 06:21:41 List* not an adapter Jul 18 06:21:50 then from that List Jul 18 06:21:54 I create an adapter. Jul 18 06:22:15 detachYo in case of ListView, why not use CursorAdapter so in case a user has a lot of contacts, the Cursor based approach will let you page through it Jul 18 06:22:32 what do you mean by page through it? Like pagination? Jul 18 06:23:13 well ... cursor will load just enough data ie a window of data Jul 18 06:23:16 I am new (3 months?) to android dev and some stuff might be new. I am a Web Developer. Jul 18 06:23:39 shipit so when I scroll it will only load for that portion? Jul 18 06:23:54 s/portion/window frame/ Jul 18 06:24:08 detachYo yes, and it does look ahead buffering for you so you don't have to worry abou thtat Jul 18 06:25:04 that way your fragments are also reusable since all they need is the query Jul 18 06:25:24 what do you mean by that last one? Jul 18 06:25:59 most importantly when your app goes into background you don't have to re-read the contacts, create a list and pass it around -- just use LoaderCallbacks Jul 18 06:27:13 the contact list fragment essentially works with query "select * from contacts" so it doesn't need keep that in memory as long as it can get a cursor Jul 18 06:27:30 so the hosting activity doesn't have to provide the fragment w/ anything Jul 18 06:27:31 I see. Jul 18 06:27:54 look at CursorLoader example and work your way through it Jul 18 06:28:29 if you end up w/ tight coupling between activity and fragment then you can run into lot of trouble Jul 18 06:28:42 what does tight coupling mean in this context? Jul 18 06:29:28 the way your solution works means that the fragments depend on the activity to provide initial dataset Jul 18 06:29:50 ah, I see Jul 18 06:30:03 so the fragment can't be re-used elsewhere unless the hosting activity does the same work there too Jul 18 06:30:06 should it depend on the activity though? They are kinda like 3 separate activities Jul 18 06:30:18 except, they are fragments Jul 18 06:30:20 I see. Jul 18 06:30:40 if I read you right, you have a ViewPager, so you must have a FragmentPagerAdapter and 3 fragments Jul 18 06:30:47 Correct Jul 18 06:30:52 none of these fragments should depend on the activity Jul 18 06:31:05 ie no direct method calls on the activity Jul 18 06:31:07 that's what I thought to Jul 18 06:32:04 But to be clear, its not a horrible idea to load contacts twice for each fragment? Jul 18 06:32:18 Or using CursorAdapter and LoaderCallbacks will eliminate this issue? Jul 18 06:32:45 it's not horrible at all Jul 18 06:33:16 when a Fragment lifecycle is over, it is cleaned up Jul 18 06:33:25 Got it Jul 18 06:33:35 and LoaderCallback will manage restarting and reloading data Jul 18 06:33:47 Makes sense. Jul 18 06:33:52 good! Jul 18 06:34:01 Thanks for explaining all this. Jul 18 06:34:10 Do you mind if I throw some more questions? Jul 18 06:34:14 np, good luck w/ your project Jul 18 06:34:15 sure Jul 18 06:34:19 thank you! Jul 18 06:34:42 so let's say a contact is clicked on contact list fragment, how can I pass that id to third fragment? Jul 18 06:35:43 I am so glad I've found this channel, for all this time I kinda had to figure out all essential questions by myself. Jul 18 06:35:56 there are two ways: 1) put all the attributes from the contacts into a Bundle and invoke targetFragment.setArguments() Jul 18 06:36:20 and in the targetFragment you can getArguments() and retrieve the info Jul 18 06:36:27 eg Jul 18 06:37:07 Bundle args = new Bundle(); args.putString("name", name); args.putString("phone", phone); targetFragment.setArguments(args); Jul 18 06:37:34 and in targetFragment, you can getArguments().getString("name"); etc Jul 18 06:38:21 easy enough to understand, thanks for that too Jul 18 06:38:35 cheers mate :) Jul 18 06:39:35 you're awesome! big thank you for taking your time to explain me these. I will now go and implement your suggestions! :) Jul 18 06:40:36 one last question, LoaderCallbacks are implemented for each Fragment or the Main Activity? Jul 18 06:45:28 each Fragment Jul 18 06:47:05 coolio, off to new adventure! I am sure I'll be back with more questions Jul 18 07:20:47 hmmm, why do some apps use "public static final String TAG ... " and others "private..."? Jul 18 07:30:20 detachYo: I guess it depends if you want to share the TAG across all your classes or just for that class Jul 18 07:36:38 guys, does anyone know if the google game service in-game scoreboard have a per-country filter Jul 18 08:32:28 Hi fellows, I have a general question about android dev. I have an app on the play store, for a long time, that is at the 4.2 version. Since the change from v3 to v4, everything goes fine, except for the users that have Samsung smartphone (S3 and S4), that reports instabilities and crashes… It works fine on Nexus 5, and many other phones that I test it on… Is there something different about Samsung ? Are there things to know or to avoid doi Jul 18 08:34:31 h3bus install acra Jul 18 08:35:11 h3bus, which of the Samsungs Jul 18 08:35:21 S3 and S4 are EACH at least 3 very different models Jul 18 08:35:24 sold under a same brand Jul 18 08:48:22 Hi. I'm experiencing a problem with my cursor loader. It loads the data and i use that to populate my listview, but after orientation change the data is gone and loader won't fetch the data again. Should i make the cursor static or something? Btw the loader fetches the data fine when i rotate the device again. Jul 18 08:49:16 skulltower did you check that the loader callbacks are being fired after you rotate it? Jul 18 09:00:21 lasserix_, createLoader is called but not onLoaderFinished is that the default behaviour when it's already loaded? Jul 18 09:06:29 Hi all Jul 18 09:06:46 how to run adb in my system when attached to a real device? Jul 18 09:06:51 How do I open the volume menu programatically Jul 18 09:09:45 No thanks I got it my device was actually not connected :( Jul 18 09:24:47 lasserix_ : thanks, didn't know acra, will definitely try it Jul 18 09:27:16 How do I open the volume menu programmatically Jul 18 09:28:28 Is there a way to get the SDK to work with 64bit JDK8? Jul 18 09:29:01 bithush what do you need from JDK 8? Jul 18 09:29:32 Just learning the new Java 8 things Jul 18 09:29:40 What is the recommended JDK version? Jul 18 09:29:44 still 6? Jul 18 09:33:51 bithush JDK 7 is supported at android Jul 18 09:34:05 but Try with resources is only for Kitkat+ Jul 18 09:34:51 Once I leave a activty and move to the next activity in the device or emulator. Will the previous activity get destroyed or it always runs in the background? Jul 18 09:34:53 Thanks yoavst Jul 18 09:35:03 Where can i get the lifecycle of an activity in an app Jul 18 09:35:50 any help? Jul 18 09:36:10 niru: if you finish the old activity it will be destroyed Jul 18 09:36:27 if you just switch to a new activity it might be destoryed Jul 18 09:37:23 heinrisch: what is meant by finish? Jul 18 09:37:47 call finish() in the activity you are living Jul 18 09:37:47 heinrisch: switch means may be I click on a button and land up in next activity Jul 18 09:37:51 leaving* Jul 18 09:37:57 heinrisch: ah ok... Jul 18 09:38:19 heinrisch: Is that a good practice to finish() the activities we leave? Jul 18 09:38:36 depends on what you want to do Jul 18 09:38:38 heinrisch: will that consume large heap if I dont finish them? Jul 18 09:39:01 niru, if you finish the activities Jul 18 09:39:03 they will be killed if there is need for memory Jul 18 09:39:05 your user interface will suck Jul 18 09:39:14 and you will totally trash the navigation inside your app Jul 18 09:39:22 Mavrik: depends on the case Jul 18 09:40:07 for example, if you have a login screen, after logging in I would finish the login screen, because the user should not return to that Jul 18 09:40:15 heinrisch: Mavrik so better i dont bother about such things as adndroid will take care of it. Isnt it? Jul 18 09:40:27 depends on the case Jul 18 09:40:35 niru, yes, unless you KNOW you want to finish the activity Jul 18 09:40:49 niru, note that finishing an activity also removes it from backstack so back button won't work Jul 18 09:41:01 Android will kill / destroy your activities itself if it needs memory Jul 18 09:41:23 heinrisch: For that login screen I enter login credentials and once gone to next pages I deactive the back button for few pages.Though I give a logout option for the user to logout and come to the main screen Jul 18 09:41:55 you should never deactivate the back button Jul 18 09:41:59 Mavrik: ah ok.. Jul 18 09:42:44 heinrisch: ohh so I simply dont want the user to come back to login screen I can finish the actvity? Jul 18 09:42:55 exactly :) Jul 18 09:43:01 so add finish(); Jul 18 09:43:03 heinrisch: This may be a good approach instead of deactivating a feature Jul 18 09:43:22 yes :) Jul 18 09:43:52 calling finish will remove activity from backstack, so if user presses back on next activity, your app will close Jul 18 09:44:00 which is what you want :) Jul 18 09:46:14 Mavrik: heinrisch I have something like this. The user will login once. And he may use that app any time in the day but should not be asked to login again and again. The user should get the next page directly Jul 18 09:46:51 Mavrik: heinrisch only if he restarts his device he should be asked for a login Jul 18 09:47:09 or else he can go ahead with his app from the next app page Jul 18 09:51:10 Mavrik: heinrisch sorry if I have asked a long question Jul 18 09:51:23 anyways thanks for the help :) Jul 18 09:51:24 I don't see any question O.o Jul 18 09:52:39 Mavrik: sorry :( Jul 18 09:59:24 I was compiling with sdk min 8 and so used appcompat till now. I want to change sdk min to 16 and compile the code it shows errros Jul 18 09:59:48 I changed the AndroidManifest file sdk min=16 Jul 18 10:00:55 and also the styles.xml to the 16 way Jul 18 10:01:09 I removed appcompat in build path and libraries list Jul 18 10:02:41 Why still errors? Jul 18 10:15:24 did you change the package names? Jul 18 10:15:34 what aerrors do you see? Jul 18 10:27:45 what’s the cheapest android 10” tablet i could find that’s good enough resolution for play store screenshots Jul 18 10:27:54 i’ve tried without success to get others to take screenshots for me Jul 18 10:30:30 If using screensize is bad, then how do you do to create levels in a game? I would like to use a tx map editor. Then generate levels from that. So then I would need to draw in pixels. You must know screensizes for this? Or I guess you could have different tilesizes for the different screensizes (small, normal, large) and have the tilesize in dp and then convert to px? Is that the right way to do it? But you have to convert to px... Jul 18 10:31:56 jush: I just made it to work. I changed Manifest file,Styles.xml files and also added android:showAsAction instead of app:showAsAction which solved the problem Jul 18 10:32:45 dongel: my app is for music production, and it changes the amount of items you see on screen based on physical screen size… do you want code for that? Jul 18 10:33:14 so 7-8 will be different than > 8 Jul 18 10:49:43 ultra-, are you asking if i want to see your code or if i think it is a good idea to solve that in code rather than xml? Jul 18 10:50:41 i was just asking if you want the code i used Jul 18 10:50:48 i don’t use xml so i don’t know another way Jul 18 10:51:56 i see. ty, i guess it wouldnt hurt Jul 18 10:52:25 one second Jul 18 10:54:21 http://pastebin.com/wx14b2Rq Jul 18 10:54:30 with that, you can use screenInches to test Jul 18 10:54:38 if (screenInches < 7), etc Jul 18 10:55:31 my views and everything else are done through code, so i don’t know if this helps you… i can do this before creating the main view and pass it in as a parameter Jul 18 10:55:46 then the main view decides what to put on the screen based on this Jul 18 11:21:42 ultra-, ty. Not sureif that is the right way to go though, have you taken screen resolution into consideration? Jul 18 11:22:21 that does take it into consideration Jul 18 11:22:51 i’ve deployed it to a nexus 7, droid razor x, and a galaxy note and it comes out correctly Jul 18 11:23:53 i didn’t write the code, i found it on the web (probably stackoverflow), but it works Jul 18 11:24:36 ok Jul 18 11:29:29 Hi Jul 18 11:30:09 My app asks me to login evertime I come out of the app even if clicking just back arrow. Jul 18 11:30:38 While that login page with credentials is not getting stored in the stacktrace? Jul 18 11:55:11 niru: you need to save the state in some way, if you press back and you are not in the app anymore, the app has been killed Jul 18 11:55:41 heinrisch: ok.. Jul 18 11:58:02 Is there any lib for android 3+ that adds date & time UI fields/elements/inputs ? Jul 18 11:58:31 Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=example://gizmos flg=0x10000000 ... } Jul 18 11:58:51 Android it self only offers Picker which is messy for adding programmatically and formatted EditText Jul 18 11:59:23 neredsenvy: not DatePicker? Jul 18 11:59:29 come on, you do the deep-linking tutorial 1:1 and it does not work Jul 18 12:00:38 Estel: I'm building the UI programmatically http://developer.android.com/guide/topics/ui/controls/pickers.html this creates more problems I was hoping there was a simpler solution Jul 18 12:02:14 You mean that the recommendations in that link create more problems? Jul 18 12:02:43 What exactly are you trying to achieve? An interface that allows the user to select a single date? A range of dates? Jul 18 12:03:59 Estel: I'm building my UI from a JSON schema. I'm adding all elements programmatically this requires me to create additional class for each datepicker/time picker i add onto the layout Jul 18 12:07:52 Does anyone here know a good solution to the 65k methods limit that does not involve proguard? Jul 18 12:11:07 heinrisch, uh... not using as many libraries? O.o Jul 18 12:11:33 I mean... you're asking "how do I fix this without using the solution" Jul 18 12:11:56 or just split up your code Jul 18 12:11:59 make two dex files Jul 18 12:12:11 nah, we don't have that many libraries but just added Google Play services for maps Jul 18 12:12:25 and google play services is too big Jul 18 12:12:33 it's 20k methods Jul 18 12:12:39 so somethwere you're still getting 40k. Jul 18 12:12:44 http://android-developers.blogspot.se/2011/07/custom-class-loading-in-dalvik.html Jul 18 12:12:46 you can also pre-strip jars and include those. Jul 18 12:13:01 so, take play services jar, strip stuff you don't need, use it Jul 18 12:20:47 Morning Jul 18 12:22:51 Mavrik: sounds like it is worth trying, thanks Jul 18 12:34:20 When I do installed.addView(singleLine); I get an error: The specified child already has a parent. You must call removeView() on the child's parent first. Jul 18 12:34:38 when I do ((ViewGroup)singleLine.getParent()).removeAllViews(); I get a nullpointer exception. Jul 18 12:34:52 so basically the parent that already has a child doesn't exist? Jul 18 12:35:57 I'm confused, what should I do? Jul 18 12:37:22 Syzygy__: I think that it is refering to installed, installed already has a child Jul 18 12:37:42 and I am guessing that installed is a scrollview, which can only have one child Jul 18 12:37:47 am I right? :) Jul 18 12:37:49 installed is a linear layout Jul 18 12:37:57 aww :( Jul 18 12:38:08 the childs parent wouldn't be installed since at that point it isn't added yet. Jul 18 12:38:49 so installed is a linearlayout and singleLine is a? Jul 18 12:39:01 linear layout :> Jul 18 12:39:08 Have you inspected singleLine at that point? Jul 18 12:39:12 I fixed it now btw Jul 18 12:39:51 I was executing in a loop, and I called the inflate method outside of the loop, but findViewById apperently reused the same object Jul 18 12:40:02 so now I inflate in the loop and it works Jul 18 12:42:35 in Retrofit, the RetrofitError.isNetworkError(). That is checking if it was a timeout, endpoint not found etc? But NOT a 500 or something similar? Jul 18 12:44:43 yes. Jul 18 12:44:55 if server responds with 500 then it's not a network error right? :P Jul 18 12:45:49 Yeah, just making sure Jul 18 12:46:05 I've seen stranger things Jul 18 13:30:19 hello Jul 18 13:31:34 hi all Jul 18 13:32:09 having a problem with DrawLine (a class that I have to draw a line), I have it (among other views) inside a listview, like 10 of them Jul 18 13:32:12 hello Sicp Jul 18 13:32:32 when Im changing part of its parameters I want it to redraw itself and not draw over the current version of itself Jul 18 13:32:47 cause Im changing its parameters and calling notifyDataSetChanged, it's changing but hte old line is still there Jul 18 13:32:56 Sicp: Do you have to have that DrawLine class or what? Jul 18 13:33:11 What does it do? Jul 18 13:33:12 http://pastebin.com/M668hE6r having some thread issues i think ... could someone explain some of the errors you see here to me if they know? Jul 18 13:33:13 do you think its because I have the drawline inside my adapter in the part where I recycle? Jul 18 13:33:29 it just does "quadTo(x, y, x, y)" like 5 times, to draw a sinewave Jul 18 13:33:41 if I change one of those parameters, it becomes different, it can be a line, or a curve Jul 18 13:34:35 Okay, so? Overdraw the old line... Jul 18 13:34:45 I assume you use Canvas? Jul 18 13:34:48 no Jul 18 13:35:00 yes, yes I do sorry Jul 18 13:35:05 was thinking of something else Jul 18 13:35:17 let me show Jul 18 13:35:43 http://pastie.org/9402655 Jul 18 13:36:29 do I get the Canvas object as a member and do .redraw() on it at every setMiniHeight? Jul 18 13:36:42 that's how Im changing the line's shape, by setting its miniHeight to something different each time Jul 18 13:37:17 yea canvas doesnt have redraw Jul 18 13:37:33 Of course not... Jul 18 13:38:07 How about inserting a call to https://developer.android.com/reference/android/graphics/Canvas.html#drawColor(int) at the beginning of onDraw? Jul 18 13:38:33 Or drawRGB, drawPaint or whatever you need. Jul 18 13:40:15 absolutely not what Im looking for Jul 18 13:40:38 I just want to get rid of the old line and create one a new Jul 18 13:40:40 anew* Jul 18 13:42:11 Sicp: Yeah, and you can do that like this... Or you can whip a fancy layering system, but... Jul 18 13:42:24 ok let me try Jul 18 13:45:22 anyone any thourhg ton my debug output? Jul 18 13:45:23 And then you should insert invalidate(); into your setter methods. Jul 18 13:45:26 thoughts* Jul 18 13:45:36 still drawing right over it flan3002 Jul 18 13:46:21 it gets thicker and thicker as notifyDataSetChanged calls increase Jul 18 13:46:36 Show me your changed code. Jul 18 13:47:17 http://pastie.org/9402669 Jul 18 13:48:28 Sicp: Oh sure. Insert mPath.rewind(); at the top. Jul 18 13:48:55 right after super? Jul 18 13:49:03 or at constructor Jul 18 13:49:04 Before using it. Jul 18 13:49:13 oh Jul 18 13:49:57 yea that worked, thanks a lot Jul 18 13:52:42 Hey #android-dev. I've got a question I can't seem to find an answer for. Anyone out there, who's available? Jul 18 13:52:55 nope Jul 18 13:53:06 Damn it Jul 18 13:53:30 * pfn watches the tumbleweeds roll by Jul 18 13:56:43 stupid questions... Jul 18 13:57:02 If I want to link a button to a function, the way to do so is mostly implementing an onClickListener. But actually, the other way to do with adding the "onClick"-Method in the .xml file is in my opinion much easier to use and understand. Does this way to link a function to a button have any disadvantages ? Jul 18 13:57:17 never do it in xml Jul 18 13:57:34 why? Jul 18 13:57:49 Imho it's hard to see where that function is coming from Jul 18 13:59:03 can you link functions of other activitiy classes to a button with xml? Jul 18 13:59:30 *activites, not other activity classes Jul 18 14:00:16 huh? Jul 18 14:00:36 are you saying call other classes methods inside your onClickListener of your button? Jul 18 14:01:25 almost, call other classes methods inside my xml Button-property "onClick". Sorry for my english. Jul 18 14:02:40 that onClick in xml links an interface to your activity's onClick that inflates that xml Jul 18 14:03:15 in your java is where you do any other calls to other classes Jul 18 14:04:00 oh okay fine thank you Jul 18 14:04:28 but as said, don't use the onClick in xml, just set your listeners in your code, much cleaner&keeps things seperate Jul 18 14:04:47 i'll do that Jul 18 14:04:54 thank you all Jul 18 14:04:56 If Java was cool enough, there wouldn't be a way to build the UI in XML... :) Jul 18 14:05:12 (See Macroid/Scaloid) Jul 18 14:05:12 you have 10 views in your layout all with onClick then you have to do a switch or if() in your onClick to find the view that sent the click, then do work, get's cluttered Jul 18 14:05:29 If I do something like: context.registerReceiver(new NetworkStateReceiver(), new IntentFilter("android.net.wifi.STATE_CHANGE")); will that be fired everytime the network state changes? Jul 18 14:05:29 building the UI in xml is pretty nice Jul 18 14:05:40 the wifi state changes* Jul 18 14:06:13 what do the docs say jonc? Jul 18 14:06:15 and to unregister it, do I have to unregister with the same instance of NetworkStateReceiver? Jul 18 14:06:54 I believe it will, but when I go to unregister the receiver I get the exception: java.lang.IllegalArgumentException: Receiver not registered: Jul 18 14:07:53 then if you know it's registered, and it won't allow you to unregister, have a member field of NetworkStateReceiver&check it's status upon registering/unregistering Jul 18 14:07:56 I can unregister it in the receiver anyways, I just was trying to do it in the service that I spawned from the receiver Jul 18 14:08:11 do I have to register and unregister with the same instance? Jul 18 14:08:30 seems so from your exception, but i haven't checked the code Jul 18 14:09:03 the service will reregister if a network timeout or exception occurs anyways, so I'll just unregister it inside of the receiver Jul 18 14:21:17 flan3002, so have you used either yet? the *oids Jul 18 14:25:25 pfn: Yeah, tried both shortly. I like the concept/approach really much, but ultimately don't use any of them because of not being able to use Scala anymore... Jul 18 14:25:59 not being able? Jul 18 14:26:25 Hey, I'm going to learn android development. I have three preferred route of options, taking the google made course @ udacity, taking the intro to android @ treehouse and then follow up with their application projects or https://buckysroom.org/videos.php?cat=6&video=16723 going through this 200 video course @ buckysroom. Recommendations? Jul 18 14:26:56 flan3002, $work says no? Jul 18 14:27:07 don't watch videos Jul 18 14:27:15 but that's a personal opinion Jul 18 14:27:24 maggern, first learn java Jul 18 14:27:27 maggern: I'd start with the Google/udacity course, if it's your sort of thing Jul 18 14:27:39 maggern, read thinking in java Jul 18 14:27:55 I know python Jul 18 14:27:55 maggern, then learn concurrency concepts, read jcip Jul 18 14:28:37 maggern, then follow the android development overview at d.android.com Jul 18 14:29:22 The Treehouse project is decent, but I've not really looked at any of the Udacity stuff Jul 18 14:29:59 I'm trying to put 3 UI elements next to each other, one of them is a view that's supposed fill all the available space. When I do stuff like relative layout with toRightOf the view I apply this on just vanishes Jul 18 14:30:36 pastebin the xml? Jul 18 14:32:47 Estel, one second, need to copy some styles together Jul 18 14:36:24 Estel, http://pastebin.com/fayUf86V Jul 18 14:36:55 the way this is right now, it basically works, but I want the View to be centered horizontally, so that it's in line with the textviews Jul 18 14:37:32 and the only way I've found to do that is to guesstimate the margin which I would like to avoid Jul 18 14:41:12 you mean centered vertically? what is the orientation of your linearlayout Jul 18 14:42:11 you're right. this linearlayout has no orientation set, but a parent layout has orientation="vertical" Jul 18 14:43:16 you want left to right views? so horizontal orientation? can you show a screenshot Jul 18 14:44:34 if yes to views on same row, change your line gravity to center vertical, take out your margin, and what do you get? Jul 18 14:44:49 canvs2321, right now it looks like this Jul 18 14:44:51 https://www.dropbox.com/s/urdvjlszgrhcyml/linearlayout.png Jul 18 14:46:07 when I center_vertical it just goes straight to the top Jul 18 14:46:28 it ignores gravity Jul 18 14:46:45 hi, i have a listview, but when scroll, my values is change, how i can solve this? Jul 18 14:47:31 t0th_-: When you do you change your values? Jul 18 14:47:34 t0th_-, are you using an adapter for the listview? Jul 18 14:47:38 yes Jul 18 14:47:39 adapter Jul 18 14:48:00 set the values in getView() of the adapter Jul 18 14:48:16 i set Jul 18 14:48:33 can you post your adapter on pastebin? Jul 18 14:48:39 ok Jul 18 14:48:47 getView? Jul 18 14:48:54 the whole class preferably Jul 18 14:50:54 canvs2321, could it be that I can't set the gravity via a style? i just set it outside of the style and now it's actually centered Jul 18 14:53:54 Syzygy__: http://pastebin.com/Ueka8tv5 Jul 18 14:55:01 in what way do the values change? Jul 18 14:56:36 scroll Jul 18 14:57:12 Syzygy__: gravity isn't a style component Jul 18 14:57:39 sorry i got busy] Jul 18 14:57:53 no problem, I fixed it canvs2321 Jul 18 14:57:55 try what voip is saying Jul 18 14:57:59 did that work? Jul 18 14:58:12 yeah, i did it before he said it, but now I know why it didn't work before Jul 18 14:58:44 t0th_-, what is the change when you scroll? Jul 18 14:58:53 the values Jul 18 14:59:06 cool Syzygy__ Jul 18 14:59:38 in what way do they change? Jul 18 15:00:18 are they all the same? are they displaying values from other elements of the list? Jul 18 15:01:52 randombly Jul 18 15:01:59 when i scroll the values is randomly Jul 18 15:02:32 i solved Jul 18 15:02:49 ok Jul 18 15:03:05 not solved:( Jul 18 15:03:58 you see my error? Jul 18 15:04:12 what kind of values do you expect what and what kind of values do you actually get? Jul 18 15:04:34 no, I'm still having trouble understanding what exactly is wrong Jul 18 15:04:59 i populate my listview, when i scroll down, the values in list view are changed... Jul 18 15:05:03 randomly Jul 18 15:05:27 Hey all. I've run into a bug in my app that only seems to happen under low memory conditions, but I'm having trouble reproducing it in a repeatable way. What is the best way to produce a consistent low memory environment on a device? Jul 18 15:06:57 t0th_-, give me a sample of a value you expect to get and a value you're actually getting. are these numbers or strings? Jul 18 15:07:13 get your memfree for you app, then create a large bitmap just shy of the OOM Jul 18 15:07:23 jpiche: Jul 18 15:08:59 canvs2321: will the system let you make that large of bitmap? Jul 18 15:09:19 jpiche, if not, try Byte or Byte buffer. Jul 18 15:10:05 Strings Jul 18 15:10:12 my adapter is correct ? Jul 18 15:10:20 as gar as I can see, yes. Jul 18 15:10:43 Syzygy__: cool, thx, I'll try that Jul 18 15:11:10 although at some point your app will just crash, happened to me recently when I tested database performance with content providers... it loaded the 50 MB of garbage strings just fine, but it just crashed after that with an out of memory exception Jul 18 15:13:35 t0th_-: you might have to set the opposite case in your adapter? Jul 18 15:15:07 merf, maybe you are Jul 18 15:15:27 i making some changes.. Jul 18 15:18:34 jpiche: yes, you can easily create bitmaps too big :) Jul 18 15:38:17 Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=example://gizmos flg=0x10000000 ... } Jul 18 15:38:19 come on, you do the deep-linking tutorial 1:1 and it does not work Jul 18 15:38:44 does not ... compute Jul 18 16:00:59 I want to alter the drawable used for the holo seekBar, but I don't want to build my own drawables from scratch. How can I open the default drawables on my computer? Jul 18 16:01:21 I want to copy the default drawable to a new file, then edit it there Jul 18 16:02:20 oh, nm, found them! Jul 18 16:02:50 d0de: Do you just want to change the color? Jul 18 16:02:55 Because then I'd use a generator. Jul 18 16:03:01 Android Asset Studio Jul 18 16:08:24 Is there any kind of activity launch mode/application launch mode that will do this? "if the activity exists in the current task stack, clear task stack, start new activity" I think this is possible with Intent flags, but I want to set this in the xml. Jul 18 16:09:30 does Android Studio allow nested resource directories "out of the box" now that build system is all gradle based? Jul 18 16:14:37 Is there a (fairly low) limit on how many linear layouts you can stick into each other? Jul 18 16:15:21 No limit that I know of, but if you need to ask that question there might be something wrong with your layout alltogether Jul 18 16:15:56 Might very well be, I'll pastebin it in a moment Jul 18 16:19:23 no, there's no limit Jul 18 16:19:32 but you will destroy performance with deep layouts Jul 18 16:24:10 http://pastebin.com/TuUYxQKG my problem is that the last 3 textviews are not displayed Jul 18 16:24:30 I had that problem earlier as well when I wanted to group up some other linear layouts logically Jul 18 16:24:37 (same depth) Jul 18 16:25:27 the layout_line_menu is just width= match_parent, height=wrap_content Jul 18 16:29:26 is line 45 LL pushing your last textviews off? Jul 18 16:30:07 you have it's style set to the parent LL on line 40, and with no orientation set, i'm guessing horizontal, so your first LL in that parent would take all width Jul 18 16:30:12 but just guessing without screenshot Jul 18 16:31:05 it should take all width, but the height should wrap_content Jul 18 16:31:36 shouldn't the text views be in the next line? Jul 18 16:31:45 but if the orientation on the parent line 40 LL is horizontal, it'll take all the width, and push your other textviews down the screen squished Jul 18 16:31:56 only if orientation is set to vertical Jul 18 16:32:06 you aren't setting orientations on your linearlayouts Jul 18 16:32:15 you need to Jul 18 16:32:28 i think default is horizontal, just guessing Jul 18 16:32:41 I thought default was vertical Jul 18 16:32:53 trying it right now Jul 18 16:33:11 the default is horizontal. Jul 18 16:33:42 well, seems like you were right, thanks canvs2321 Jul 18 16:35:03 yep :) Jul 18 16:35:35 always set a orientation, even if just default, you probably get Lint warnings not setting it Jul 18 16:36:38 http://pastebin.com/M1q0c6aM < I can't figure out why btnShare won't show... Jul 18 16:36:45 No errors Jul 18 16:38:40 jesperj: is there a reason you are doing this strictly in code and not xml? Jul 18 16:40:13 and i'm not familiar with doing it in code, but if you are using weights, you usually have a 0dp height/width depending on what you want scaled. Are all your other views showing correctly? can you show a screenshot Jul 18 16:42:05 plus what does R.layout.activity_history_view_date_chooser look like Jul 18 16:46:03 Yes everything is showing correctly but not the btnShare button. since lLayout2 and lLayout are almost the same I find it strange that it doesn't show. If I change so lLayout2 comes before lLayout, then btnShare shows correctly but btnExport and btnExportImg does not show. Jul 18 16:47:13 canvs2321: I could do this in xml probably, I've just gotten used to doing it in code from other parts of my app. Jul 18 16:48:42 what about line 25? Jul 18 16:49:02 &26, it sets your first layout to match_parent, height/width Jul 18 16:49:26 same with line 72&73 Jul 18 16:50:08 maybe set height to wrap_content Jul 18 16:50:58 hi o7 Jul 18 16:51:00 Can somebody please recommend a good introduction to developing with Android Studio? Jul 18 16:51:13 Is there anyway to set a global bottom/top margin on all elements on layout ? Jul 18 16:51:20 or give your two child linearlayouts weights if you want them sized specifically on a scale, of 1/2screen, or if first LL1 should take X amount of screen and LL2 take the rest etc Jul 18 16:51:34 So I could say each element has 10(px) bottom margin ? Jul 18 16:51:43 styles/themes neredsenvy Jul 18 16:51:56 ?? Jul 18 16:52:00 canvs2321: Thanks I'll try Jul 18 16:52:05 Need to do it programmatically Jul 18 16:52:23 I have a LinearLayout object Jul 18 16:52:49 jesperj: i'd say first try with wrap_content on height of your two LinearLayouts Jul 18 16:56:42 canvs2321: You were right! It shows now. Thank you :-) Jul 18 16:57:05 excellent :) Jul 18 17:10:39 I'm making a number tracking app, which works mostly except when I rotate the screen - Jul 18 17:10:44 http://lpaste.net/1900088944725327872 is the code Jul 18 17:11:20 onConfigurationChanged does work, but the integers don't update at the end Jul 18 17:11:34 Is it just something silly? Jul 18 17:16:01 Anybody know what the problem is? Jul 18 17:16:09 which orm do you se? I need to start with one, I'm sick of wasting time for creating tables Jul 18 17:17:00 *use Jul 18 17:23:53 Is there something like onOverscroll or do I need to overwrite scrollview to do that myself? Jul 18 17:24:02 OpenJDK shows intermittent performance and UI issues. We recommend using the Oracle JRE/JDK. Jul 18 17:24:10 ^^android studio Jul 18 17:40:43 hello Jul 18 17:42:33 Xenasis: what do you expect to happen? You specifically reset them from the old values. This is a java issue. Jul 18 17:43:17 I want them to be reset from the old values, but they're reinitialised to 5 (from onCreate) Jul 18 17:44:20 So I created temp variables to store it then restore after it has been re-initialised Jul 18 17:44:31 But it's not restored properly Jul 18 17:44:52 you've obviously set a break point and inspected the values in the debugger? Jul 18 17:45:13 (you dont provide anywhere near enough info there since we dont know where they are set on what the recreate does. Jul 18 17:45:23 s/on/or Jul 18 17:45:59 Hey, I'm having a little trouble gettign my android studio up and running. This is the error I get when I try to run my hello world app on my g3: Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. Jul 18 17:46:02 Ah, sorry about that - they're set at the top of onCreate, and recreate isn't overridden Jul 18 17:46:22 I'm not sure on debugging in Android yet, but I guess I should try and delve into that Jul 18 17:46:46 my System.out.printlns aren't being printed to Eclipse, at least Jul 18 17:46:51 how can you be trying to create an android app if you cant debug? Its a must. Also the onCreate is probably being called again. Jul 18 17:47:01 what IDE are you using? Jul 18 17:47:02 Yeah, I figured that Jul 18 17:47:07 Eclipse Jul 18 17:47:20 But I /want/ onCreate to be recalled Jul 18 17:47:27 then there's no excuse. println's suck and introduce whats called heisenbugs. use the debugger. Jul 18 17:47:32 Any1? Jul 18 17:47:34 and then the old values restored Jul 18 17:47:47 there are no old values. Its recreated. Jul 18 17:47:52 you need to store them- Jul 18 17:47:55 I think the underlying issue is that it's set to target android L... Jul 18 17:48:12 I /did/ store them Jul 18 17:48:18 int oldp1Credits = p1Credits; Jul 18 17:48:20 int oldp2Credits = p2Credits; Jul 18 17:48:26 before the recreate()o Jul 18 17:48:59 but you said in onCreate they are reset. its a new instance most probably. 2 seconds to check in the debugger. set a break where you initialise them. Jul 18 17:49:25 p1Credits is reset, but not oldp1Credits Jul 18 17:49:38 I call recreate /after/ storing them Jul 18 17:50:01 I dont think you are understanding the lifecycle. Set the breakpoint. Jul 18 17:50:12 I can't find the pane to change the target though, unless it's pressing the app and right clicking the app in the project navigator then open module settings. Is that the correct place to change the target version? Jul 18 17:50:45 the activity is recreated. the stored values are gone. they are then reinitialised. Jul 18 17:50:47 I'm trying to google debugging, but ints in Java aren't passed by reference (unlike objects) Jul 18 17:51:02 thats bot nothiong whatsoever to do with it. Jul 18 17:51:08 got Jul 18 17:51:09 How do I check which branch I am on? Jul 18 17:51:13 I know, but I stored them as a temp variable Jul 18 17:51:32 which do not exsit . It is +recreated+. Jul 18 17:51:49 go read the lifecycle doc in the excellent online android help. Jul 18 17:52:22 So in short, don't call recreate()? Jul 18 17:52:26 you'll get there. But please : use the debugger. It's so simple these days. Nicely integrated. Jul 18 17:52:50 Xenasis: I have no idea what recreate does so I cant say. Read the doc. Set the breakpoint. All will become clear. Jul 18 17:54:35 There can only be one. Jul 18 17:59:22 Does L's camera API support changing ISO/shutter speed? Jul 18 18:00:03 I can't seem to find any API docs for it Jul 18 18:03:25 Tobias|, ISO: yes, shutter speed: I think so Jul 18 18:06:20 Awesome Jul 18 18:06:21 Thanks Jul 18 18:07:48 can you manipulate views if they have gone off screen? Jul 18 18:07:55 mattblang, yes Jul 18 18:08:21 EPG thanks. wanting to do a login from the nav drawer in the background, and if they star tthe process then close the nav drawer I didn't want to error out if I update the list view Jul 18 18:09:04 Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. Hmmmm Jul 18 18:09:11 Any ideas? Jul 18 18:11:21 maggern, correct target/compile sdk version? Jul 18 18:18:42 That is the problem Jul 18 18:19:48 but I'm having a hard time finding the right place to modify it in adroid studio.. Jul 18 18:20:18 maggern, build.gradle Jul 18 18:21:25 When you want to update your minSdkVersion in an existent project... Jul 18 18:21:25 Update manifest.xml Jul 18 18:21:25 Update build.gradle Jul 18 18:21:25 Sync gradle button Jul 18 18:21:25 Rebuild proyect. Jul 18 18:21:45 Changed in gradle, fixed it, but I can't find the manifest :o Jul 18 18:22:00 maggern, no need Jul 18 18:22:10 sync does it for me? Jul 18 18:22:25 maggern, manifest should get the correct values during build from build.gradle Jul 18 18:22:25 but where is the manifest located anyways? Jul 18 18:23:38 Still, I want to read the manifest Jul 18 18:24:12 in the src/main directory in a gradle build Jul 18 18:24:47 It doesn't even say target in there haha :) Jul 18 18:25:49 after sharing an image, when can I delete the file? Directly after 'pContext.startActivity(Intent.createChooser(shareIntent, "Share Image"));' or does the file need to stay around after that? Jul 18 18:30:55 Can I tell what task stack I'm currently in? More importantly... if I'm in my applications task stack? Jul 18 18:31:13 agh. import supporr library hell. gah. Jul 18 18:31:41 do you version control R.java? Jul 18 18:32:14 tinker, no Jul 18 18:32:36 have a look at an android project's .gitignore on github Jul 18 18:33:48 maggern, the manifest should be in src/main but you don't need to put minSdk in the manifest any more Jul 18 18:34:09 I figured Jul 18 18:34:21 though what does the CompileSDKversion do? Jul 18 18:34:27 in gradle Jul 18 18:34:35 compiles the app against that sdk Jul 18 18:34:51 so what does target do? Jul 18 18:35:30 specifies the API level your app targets Jul 18 18:35:50 ok. Im aiming at API 11 or higher. I want the support library with resources. I have the resource in my build.gradle : compile 'com.android.support:appcompat-v7:19.1.+'. Now what do I need to import to actualise ActionBartActivity. Ive been through the support library page on the docs ten times now. Its got to be something really really obvious I'm now blind to! Jul 18 18:35:56 :/ Jul 18 18:36:04 yeah it's like a "max" sdk sort of thing Jul 18 18:36:15 but then there's max too Jul 18 18:36:30 so put target @ 19 and compilesdkversion @ 20? Jul 18 18:36:33 sounds good? Jul 18 18:36:52 guess not for the developer preview of android l Jul 18 18:37:18 ?? Jul 18 18:37:29 maggern, put target as 20 well (?) Jul 18 18:37:54 maggern, also: https://developer.android.com/guide/topics/manifest/uses-sdk-element.html Jul 18 18:38:41 maggern, I use 'android-L' for compileSdkVersion at the moment Jul 18 18:38:51 I'm using studio Jul 18 18:39:02 me too Jul 18 18:39:08 I put 20 at target and compile Jul 18 18:39:11 #yolo Jul 18 18:41:20 rgr: minSdkVersion=15 Jul 18 18:41:27 No point in supporting 11-14 Jul 18 18:42:43 any better way for doing a login http request to a server than using AsyncTask? Jul 18 18:43:16 volley Jul 18 18:47:10 kakazza: thanks but that wasnt the Q. I want to support them. I fugured it anyway and it wasnt linked. I'd missed the mainActivity needind to go back to extending from Activity and not ActionBarActivity. Silly of me. Jul 18 18:47:32 lasserix: stop being an arse. Jul 18 18:48:35 You're missing out on good APIs and they make up <0.4% of the active devices. (Since they don't even show up in the platform dashboard, which means that each of them has <0.1% market share) Jul 18 18:49:49 Coding coding coding, 1 hr of dagger problems, coding coding coding Jul 18 18:49:52 (Sure, you can still use the newer APIs, but why not skip the unsupported platform alltogether) Jul 18 18:50:55 Btw, version 20 is out Jul 18 18:51:24 It is? Jul 18 18:51:32 Isn't it still just in preview; Jul 18 18:51:32 Of the support library Jul 18 18:51:37 Oh heh Jul 18 18:51:39 My bad Jul 18 18:52:12 (Actually, 21-rc1 is the newest, but 20 is what you should use afaik, but since rgr is using 19.1) Jul 18 18:57:22 Dagger pls, this class *IS* in the INJECTS field of a module on the graph. Jul 18 18:57:29 Ah you know what, no it isn't Jul 18 18:57:31 dammit Jul 18 18:58:00 Failgramming Jul 18 19:02:43 hi. I've uploaded some alpha version of apk to Google, but the link won't work? Can I specify individual testers instead of a Google+ group? Jul 18 19:03:00 use an google group and add them to it Jul 18 19:05:26 I have a project that depends on a good number of external files. I'd like to simply stitch up all the dex files and have it built. Is there a way to get around the 2**16 method reference limit, short of --multi-dex (which doesn't have tool support) and using something like DexDex to load in dependence? Jul 18 19:09:54 Does a regular android phone have a running service so that you can send it a request to install an app? I'd like to make a thing for my house so that when new devices connect to my wifi I send them a request to install "Xabster's home music controller" thingy Jul 18 19:12:27 Hey all. Does anyone know if you can retrieve the scale factor on an imageview? Jul 18 19:12:47 I want to set a certain scaletype on one imageview, then retrieve the scaling factors and apply to other imageviews. Jul 18 19:19:38 and I guess an app id need to be unique on play store? moving to another dev account is easy? Jul 18 19:25:17 How do I use ActivityManager.RunningTaskInfo? Everytime I do ActivityManager.RunningTaskInfo a = new ActivityManager.RunningTaskInfo(); I get a==null Jul 18 19:32:25 How do you test multiplayer games if you only have 1 device? Jul 18 19:33:01 tinker: The assumption is that if you have enough money to develop a game, you have a spare $200 for another phone. Jul 18 19:33:02 I guess you could install the app twice on the phone if you make a copy of the projct and name it something different'' Jul 18 19:34:58 tinker: if you need to test on another device, but really can't get another phone, you could try the emulator. Jul 18 19:35:12 * drkfdr 's questions have been answererd Jul 18 19:35:28 freeone3000, it doesnt necessarily take any money at all to develop a game, only time Jul 18 19:36:21 tinker: necessity and practicality are two different things. you're going to hear the "get another phone" line from a lot of people Jul 18 19:36:47 tinker: but there is an opportunity cost to your time Jul 18 19:38:54 Is there a way to set margin for all UI elements on a layout ? I have a LinearLayout and I would like to set it that each element placed on it has 10(px) margin down/bottom Jul 18 19:40:50 neredsenvy: you could make a style and set it on all the views Jul 18 19:42:28 JesusFreke, true about the opportunity Jul 18 19:49:01 http://stackoverflow.com/questions/24831889/activity-has-a-method-called-gettaskid-how-do-i-know-if-this-task-id-matches Jul 18 19:56:09 eghdk: responded with a possible alternative solution. Jul 18 19:58:38 JesusFreke: Thanks. I've thought about it. But will save that if I can't get any other answer. Jul 18 19:59:55 heh.. I'm updating my Android Studio install again and I haven't even really used it yet.. seems like it's getting closer and closer to 1.0 Jul 18 20:00:09 The version number is going up, yes. :) Jul 18 20:01:21 0.8.2 (beta) Jul 18 20:01:34 closer than 0.6 (alpha) Jul 18 20:03:08 last time I tried it needed my test project to be manually updated with some things and thought.. I better wait Jul 18 20:03:14 if I want to call an alert dialog, but also a progress dialog, is there a good way to do it so the progress dialog is on top? Jul 18 20:12:06 Is there any way i can reference current themes default background color, inside of xml? Jul 18 20:16:26 is tehre any way to make retrofit sleep if using an async callback, just for testing purposes Jul 18 20:16:35 sleep how? Jul 18 20:16:45 or take longer Jul 18 20:16:54 artificially Jul 18 20:17:28 see MockRestAdapter Jul 18 20:23:02 JakeWharton, do you still check pull requests for VPI? Jul 18 20:23:06 no Jul 18 20:23:47 ok, anyway thanks for it :) Jul 18 20:35:46 Anyone knows how can i set a listview's background to the default background of current theme? (It's holo but i switch between light and dark) Jul 18 20:36:41 skulltower, maybe http://stackoverflow.com/a/14468034 ? Jul 18 20:48:37 EPG, Tyvm! This worked wonders :-) Jul 18 20:55:08 how can i make a view move and fade out at the same time? when i try to do a TranslateAnimation and AlphaAnimation together in an AnimationSet, the area not covered by the view when its translateY() property is 0 is not animated Jul 18 20:56:41 when using jackson for json, if i have an abstract class that has multiple concrete classes. in order to configure the annotations correctly does the json response need to be modified? Jul 18 21:20:18 offtopic - just heard a senior bad ass dev complain about MBA types; I kinda agree w/ him. Jul 18 21:24:59 shipit, any non-technical types Jul 18 21:25:03 Uh. Who pays the bills, deals with corporate, assigns deadlines, directs projects, and interfaces with other departments where you're at? Jul 18 21:25:52 freeone3000 and does not understand software Jul 18 21:26:06 shipit: So what? He doesn't have to do in order to do any of the above things. Jul 18 21:27:07 shipit: Sure, some technical knowledge would be useful in determining feasibility and completeness of deliverables in deadlines (or rather, determining the accuracy of lead dev's estimates on those points), but it's not required. Jul 18 21:27:08 well, the problem is that they end up treating developers as short order cooks and their product as mediocre "widget" -- Jul 18 21:27:30 Because it *is* a product, it *is* sold, and developers *are* workers working on it. Jul 18 21:28:00 ah yes, I see the disconnect Jul 18 21:32:09 please see the condition of MSFT after they took the coder dude out and replaced w/ non-tech dude, the latter had all the technical knowledge Jul 18 21:42:03 Hey guys Jul 18 21:42:36 MSFT is actually doing really well. Jul 18 21:45:08 Hey guys. I have a database file on the assets folder. I've just added a column to one of the tables, but when I run the project the changes doesnt take effect Jul 18 21:45:22 I've already tried to completely remove the app and restart the phone Jul 18 21:47:20 Would anyone here happen to know whether or not Android stores the declared field "loadedLibraryNames" to figure out which JNI .so files have been successfully loaded? Jul 18 21:47:36 Typically in plain Java the normal ClassLoader will give you that field Jul 18 21:47:43 but it seems like Android doesn't have it there Jul 18 21:47:48 I also tried the BaseDexClassLoader Jul 18 21:47:48 D: Jul 18 21:50:04 guys, is there any good page about the lifecycle of an app and what the differences between processes/apps/etc are? Jul 18 21:52:03 or alternatively, is there a way to figure out if a certain JNI library is loaded successfully? Jul 18 21:52:12 what's the difference between an animator and an animation? Jul 18 21:56:07 anyone? Jul 18 21:58:27 whomp: Animator animates a component, whereas an animation is a set of rules to animate a component by. Jul 18 21:58:43 whomp: Which sounds like they accidentally made two things which do the same thing, which.. yes. Jul 18 21:58:57 freeone3000, thx :) Jul 18 22:09:35 freeone3000, any ideas why this code doesn't work? https://gist.github.com/michaeleiselsc/3dd54921c9bdc7b52a72 Jul 18 22:12:05 freeone3000, this gist is more complete actually: https://gist.github.com/michaeleiselsc/234b7df4386a1b916f5b Jul 18 22:12:33 "this code doesn't work" is not a descriptive statement of the problem :) Jul 18 22:13:34 JesusFreke, it just doesn't do any animations at all Jul 18 22:14:29 JesusFreke, here's a much smaller example which still doesn't do fading: https://gist.github.com/michaeleiselsc/a4a15bd4392c493f5596 Jul 18 22:15:19 Does anyone know how to color the status and navigation bar pre Android L and with as much support as possible? Jul 18 22:15:37 whomp: I don't know anything about animations :) Jul 18 22:15:56 no worries Jul 18 22:16:16 "Google will stop calling games 'free' when they offer in-app purchases", seems like just the EU though ? Jul 18 22:19:10 g00s: Just the EU. Jul 18 22:19:27 g00s, EU ftw Jul 18 22:19:46 yeah EU seems to be pretty smart - also that right to forget law Jul 18 22:29:36 The whole concept of removing information seems hazardous to the integrity of the whole. Jul 18 22:29:44 hey Jul 18 22:29:49 why isn't this working? Jul 18 22:29:51 http://pastebin.com/TwL8brum Jul 18 22:32:48 When I say it's not working Jul 18 22:32:53 I don't see a notification Jul 18 22:36:43 I fixed it Jul 18 22:36:48 Just realised I needed an icon Jul 18 22:38:25 http://spectrum.ieee.org/consumer-electronics/audiovideo/holographic-displays-coming-to-smartphones Jul 18 22:38:37 android 6 : Holographic Matrial :) Jul 18 22:38:42 *Material Jul 18 22:38:46 ugh Jul 18 22:38:58 ugh Jul 18 22:48:07 heh, chromecast is pretty simple thing :D Jul 18 22:49:51 eeinteresting "Larry Page told Samsung Vice Chairman Jay Y. Lee that he was frustrated Samsung was investing more in smartwatches running Samsung’s Tizen operating system than in smartwatches running Google’s Android Wear software, according to three people briefed on the conversations." Jul 18 22:51:27 i have to wonder, lets put tizen aside for a moment - since the wearable space is so new, if these OEMs - especially ones that have lots of product experience in other areas - have a different vision of wearables that isn't in line with what android provides; and thus they feel freer to experiment (in this case, tizen) Jul 18 22:51:43 i think the wearable space is very up in the air atm Jul 18 22:53:31 the killer wearable app for me, which is exercise oriented, would be ekg quality sensor / data and realtime analysis of my heart functioning under stress, to possibly let me know if i'm knocking on heaven's door :) Jul 18 22:54:00 but thats very intimate data; not going to let just any company have access to that Jul 18 23:13:07 my actionbar isn't showing the title icon for some reason :s Jul 18 23:13:11 can't figure out why Jul 18 23:16:01 Can someone explain Calendar, SimpleDateFormat, and working with JSON ISO 8601 Dates returned from a server in GMT time Jul 18 23:16:16 Or, you know, that sort of stuff Jul 18 23:18:36 I have a date in a JSON object that looks like this: "2013-05-25T20:00:00.000Z". I need to display it in the users local time. Pulling out display names for the Month, Day Of Month, and Day of Week, as well as the 12-hr formatted time. Jul 18 23:20:00 speedblue47: and what have you tried so far that isn't working? Jul 18 23:20:55 speedblue47: http://stackoverflow.com/a/10621553 Jul 18 23:21:10 Jodatime for Android probably handles it, too. Jul 18 23:21:12 parsing it with simpledateformat with the pattern "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" and then using gregoriancalendar.settime(parsedDate) Jul 18 23:24:36 So my problem is that it is not understanding the implied time zone since i'm telling it that Z is just a constnat? Jul 18 23:24:47 or even a constant Jul 18 23:28:11 who loves fragments? say aye! Jul 18 23:28:17 aye! Jul 18 23:30:25 eye! Jul 18 23:31:00 I want to maximize an android studio tab with hotkeys. Jul 18 23:31:34 I'm really starting to like android studio Jul 18 23:32:00 seriously, this is like way better than eclipse for android development. Jul 18 23:32:04 Waay better. Jul 18 23:32:06 lol Jul 18 23:32:45 reminds me of my reaction first time I experienced IntelliJ auto-complete Jul 18 23:34:13 =) Jul 18 23:34:43 I dont' have to remember Everything!!!??? Hallelujah \o/ Jul 18 23:36:23 .... Jul 18 23:36:33 ok Jul 18 23:45:21 too much? Jul 18 23:46:40 ._. Jul 18 23:47:00 a gnat just walked underneath one of my keyboard keys Jul 18 23:48:53 are there any VM options i should set in android studio for compilation? Jul 19 00:19:42 does android studio's monitor support android.os.Trace? Jul 19 00:26:52 do i have to use linux to trace this all :| Jul 19 00:28:06 what are you trying todo? Jul 19 00:29:23 the fact that you need to use linux is undoubtful ;) Jul 19 00:31:44 Ugh why did I ever wait so long to use the adb wireless!? Jul 19 00:32:23 pastebin any idea why uncommenting this one line causes genymotion to flip out? http://pastebin.com/anaeEZRr Jul 19 00:33:14 tinker: if you have a walmart near you, virgin mobile sells a kyrocera event phone running android 4.0 for 25 bucks Jul 19 00:33:20 lasserix: I dont like it Jul 19 00:33:22 it's slower Jul 19 00:33:38 gordon: yeah it is slower, Jul 19 00:35:42 mattblang: gonna need more than that Jul 19 00:36:25 canvs2321 man, i literally have only generated a navigation activity through android studio, and started adding those startActivity calls for the nav drawer Jul 19 00:36:28 can't believe, you wanted a response with an actual answer Jul 19 00:36:37 define "flip out" Jul 19 00:36:55 as in relation to if it had "flipped in" Jul 19 00:37:03 or "flipped a lid" Jul 19 00:37:25 or "flipped a quarter 50 times, and caluclated the heads/tail ratio" Jul 19 00:38:40 canvs2321 the error that is thrown is in the title, eglSurfaceAttrib not implemented. it gets into an infinite loop. it is very reproducable, if I uncomment the line in that pastebin it occurs, not so if I comment it out like what is shown in the pastebin Jul 19 00:38:55 stacktrace? Jul 19 00:38:58 none Jul 19 00:39:52 then how is an error thrown? are you catching it? Jul 19 00:40:20 also what SO posts have you read that didn't relate to you, or closely did but didn't actually solve your issue fully? Jul 19 00:40:58 canvs2321: i'm trying to do http://developer.android.com/tools/debugging/systrace.html#app-trace Jul 19 00:41:31 the article suggests i use systrace.py which is apparently linux-only Jul 19 00:41:55 after googling and reading the first post and answer a good starting point, is your DashboardActivity activity declared in the manifest? Jul 19 00:42:05 mattblang^ Jul 19 00:42:12 and i can't find any mentions of my trace in monitor's trace Jul 19 00:42:23 moreover monitor's traces are BROKEN Jul 19 00:42:29 mattblang: but it's best to get your stacktrace posted Jul 19 00:42:34 the search doesn't work and i can't even zoom out... Jul 19 00:43:09 sq: without me actually reading that link, what is the trace related to, in like 3-4 words, what are you tracing? Jul 19 00:43:26 ..a part of a method? Jul 19 00:44:07 as in the speed it runs? i peaked alittle at that link Jul 19 00:44:23 yup Jul 19 00:44:55 what is your issue, are you expeirencing(sp?) slow downs/bottle necks, or just having fun checking your code? Jul 19 00:45:31 stuff works slowly, want to speed it up Jul 19 00:45:49 and somewhere in that link i think it said something about API 18...blah...blah, so have you tried googling the errors you are having with AS? as it probably should be a working function Jul 19 00:46:10 well, it compiles and runs fine Jul 19 00:46:12 what works slowly? a listview, swiping a new fragment, loading a new activity, etc.... Jul 19 00:46:18 i understand it runs Jul 19 00:46:29 i'm saying, where are your hiccups, visuallly that you see Jul 19 00:46:34 i suspect a listview works slowly Jul 19 00:46:35 like what is involved Jul 19 00:46:42 custom adapter? Jul 19 00:46:54 yup. i have a lot of displayed items Jul 19 00:47:13 and swiping fragment is fast ? Jul 19 00:47:14 ok, what data is involved? any network calls, db calls etc? Jul 19 00:47:18 like 70 textviews Jul 19 00:47:23 gordon_: huh? Jul 19 00:47:25 I need to check if it's 1st of April Jul 19 00:47:39 70 textviews per listview item? Jul 19 00:47:52 70 items constantly on display Jul 19 00:47:54 swiping fragments is fast when nothing is done Jul 19 00:48:05 sq: ok, that isn't too unusual Jul 19 00:48:12 it's not fast Jul 19 00:48:23 no as fast as list view Jul 19 00:48:27 maybe post your getview() of your adapter, and what data structure you are using, with layout Jul 19 00:49:00 swiping new fragment is faster because adapter loads two items Jul 19 00:49:04 like first item and next Jul 19 00:49:12 gordon_ sure it is, but you usuallly have one/two fragments per screen, listview can show as many as 1-50 items at a time Jul 19 00:49:24 gordon_ you are confused Jul 19 00:49:31 about what ? Jul 19 00:49:33 it's all about loading that you get slowdowns Jul 19 00:49:50 thinking about swiping fragments&using a listview as apples to apples Jul 19 00:50:04 canvs2321: https://github.com/oakkitten/weechat-android/blob/master/weechat-android/src/main/java/com/ubergeek42/WeechatAndroid/ChatLinesAdapter.java Jul 19 00:50:07 and that thinking one is faster, as they both can be just as fast Jul 19 00:50:41 canvs2321: someone asked what is faster Jul 19 00:50:46 or what makes hiccups Jul 19 00:50:47 it's not like the code is without obvious problems Jul 19 00:51:03 but it's hard to tell what's the most slow part without running a nice trace Jul 19 00:52:04 author of that code doesnt like extracting methods ;) Jul 19 00:52:26 sq: well i'll take a peek at code, but others maybe able to help. But i'm saying, once you get the hang of how coding android works, you'll suspect your hiccups&be able to find them easily based off how things work :) Jul 19 00:52:56 canvs2321: i see that you hate tracing :< Jul 19 00:53:20 sq: this is your code? Jul 19 00:53:36 no Jul 19 00:54:02 i have my own ways of finding issues. I know what I expect&when i see issues, i know how to debug simply reading my code, and using alot of Log.X() :) Jul 19 00:54:15 canvs2321 its a generated AS project with a generated nav drawer activity. im not a new developer, there isn't anything like what you were mentioning going on. if I uncomment that one line in the pastebin it goes into an infite loop of blue warning messages that genymotion is somehow throwing (eglSurfaceAttrib not implemented). it is very bizarre, and very reproducable. Jul 19 00:54:27 *infinite Jul 19 00:54:50 sq: i can't go any further with you then. As that code seems to be well thought out&structured by someone who has been around. to debug ALL that based on the little you can give, would mean me re-writing the app Jul 19 00:55:09 what's the problem btw ? ;) Jul 19 00:55:32 yeah, if you have written the code—not just know most of it but have actually written it—finding slow parts is much easier Jul 19 00:57:13 sq: basically you have to understand that code, by studying ALL of it, then once you basically have the working knowledge of it, then you debug. As i'm sure there maybe parts outside the adapter alone that have slow downs. Are you in contact with the Author? start doing git commits or whatever it is&join the team&collaborate Jul 19 00:58:53 mattblang: that's why i'm saying i can't believe you asked that question&wanted a full answer, as i've seen you around here forever. A generated AS Project with a generated nav drawer activity automatically creates DashboardActivity & RecipeListActivity for you? Jul 19 00:59:23 hum. i wonder if i can use android:freezesText="true" to save the state of textview Jul 19 00:59:42 sq: on a orientation change? Jul 19 00:59:50 yup Jul 19 00:59:53 don't do that Jul 19 01:00:00 why not? Jul 19 01:00:08 read about saving state Jul 19 01:01:11 sq: activities&fragments are different and similiar, but you have to read¬ just take a guess, based on hey i'm changing orientation, so I wanna Freeze my text, then while typing autocomplete or just browising the XML design you see the word freeze :/ Jul 19 01:01:21 there is a structure to what you want Jul 19 01:01:49 sq: how long you been developing android apps? Jul 19 01:02:21 on every screen rotation i've got these 70 textviews, well, actually thrice that in current design, for every tab, that makes like 1000 textviews on average, and they are using html Jul 19 01:02:44 canvs2321 yes, it did automatically create it. I did a nav drawer activity and a master detail flow. and my hope is that someone else has run into the issue with genymotion. I don't see why you think it's so bizarre that I asked here before going to SO Jul 19 01:03:03 recreating all of them from scratch takes quite some time... Jul 19 01:03:11 canvs2321: well, uh, about a week Jul 19 01:03:55 sq: all your textviews don't mean much, atleast not as much as having your data, then upon rotation simply having your listview be connected to your adapter which in turn is connected to your data, which in return your listview only has to load a few views, based on your multitude of data Jul 19 01:04:23 sq: k, you are making it too complicated, don't worry about saving each View, just worry about your data Jul 19 01:04:27 canvs2321 i mean really, the pastebin I sent you is all that I had written. and commenting that one line out stops the problem. seriously, tell me that isn't bizarre lol Jul 19 01:04:29 you'll get it Jul 19 01:04:39 well, 1000 sounds like quite a lot Jul 19 01:05:07 but it's hard to tell without proper traces Jul 19 01:05:08 mattblang: but if there is errors, then it crashes, therefore producing a stacktrace, UNLESS you are catching exceptions&ignoring Jul 19 01:05:17 i'm sorry about being stubborn Jul 19 01:05:28 sq: 1000 views visible is insane, & not a likely design Jul 19 01:05:38 you have to think of what is visible, 1000 won't be visible Jul 19 01:05:46 if it is then you are designing wrong Jul 19 01:06:12 canvs2321 like I said, genymotion is somehow catching and logging it. the error is from genymotion, the app does't crash nor does it throw a stacktrace Jul 19 01:06:36 it's a viewpager which initializes a couple of pages to left and to right of the current view Jul 19 01:07:05 and sq: you said something about tabs, something that isn't visible isn't loaded, you may have a listview with 100,000 items, but only maybe 10 of those 100,000 items is visible with maybe 10+ views per item Jul 19 01:07:22 sq: exactly, viewpager doesn't keep EVERY single textview in memory Jul 19 01:07:42 mattblang: so genymotion is crashing in your OS? Jul 19 01:07:50 but it keeps about 1000 of them :< Jul 19 01:08:12 sq: you have a big misconception of what is happening Jul 19 01:08:43 sq: show me a screen shot Jul 19 01:08:54 of your view hiearchy&of the app running Jul 19 01:09:08 uhm Jul 19 01:10:44 uhm what? if you ever think you'll have 1000 views visible on the screen@oone time, you fucked up Jul 19 01:11:52 uhm let me remember how to do that Jul 19 01:11:55 screenshots Jul 19 01:12:01 https://dl.dropboxusercontent.com/u/21637985/Screenshot_2014-07-19-04-09-51.png Jul 19 01:12:16 i broke it a bit but the picture should be clear Jul 19 01:13:06 each line is actually 3 textviews although i removed the other two for testing purposes Jul 19 01:13:52 sq: counting everything on that screen there are around 73-75 total views just visible, not counting layouts. your #'s are off Jul 19 01:14:26 &that is counting everything i see on that screen, the chat list line by line, the 3 buttons on bottom, the total status bar, the action bar, etc.... Jul 19 01:14:38 the view pager entries Jul 19 01:15:31 multiply that by 3 and consider fragments to both sides of this thing Jul 19 01:15:41 and, your listview is just linked to data, entries don't matter how big, it only loads what is visible Jul 19 01:15:45 nope Jul 19 01:15:50 those 3 aren't on screen Jul 19 01:15:59 yet the views are inflated Jul 19 01:16:12 but the listviews won't load Jul 19 01:16:17 til shown Jul 19 01:16:22 it's not as much as you think Jul 19 01:16:33 hum Jul 19 01:16:40 * sq checks Jul 19 01:17:23 hiccups are usually in doing non-short processing of data on UI thread Jul 19 01:19:01 if things are known before hand they can be set easily without any questioning of the data, other things like loading images, or setting states, or guessing if(a==b)c etc. If all processing of data and their states are done on another thread then returned with preallocated data set til returned, things will go smooth Jul 19 01:19:56 *etc. will slow things, If all processing Jul 19 01:22:57 getView is called for all items, on current fragment and on the adjacent ones Jul 19 01:23:28 and do you know how many items that is? Jul 19 01:23:56 hum, i'd have to count Jul 19 01:24:19 roughly 300 with two tabs open Jul 19 01:24:24 &why is getView being called? and how many times? do you know when getView gets called? Jul 19 01:24:44 i counted 50 or less on that main screen if it's just one entry per person speaking Jul 19 01:24:58 all i have to say is your bottle neck isn't what is being show, it's how Jul 19 01:25:42 it's 281 textviews in current, stripped-down design Jul 19 01:25:56 or 843 in the full one... Jul 19 01:26:08 for two tabs Jul 19 01:26:36 if it doesn't repeat calls Jul 19 01:27:10 * sq checks again Jul 19 01:27:17 sq: basically the slow downs aren't happening based on your thoughts, it could be your device, or possible bad I/O work, or layout Heiarchy, or a lot of things. i don't think reading a Trace is gonna pinpoint it, if you don't have basic understanding of Android Jul 19 01:27:48 &it isn't your app, which makes it even more mysterious on your process of debugging Jul 19 01:29:16 and sq i'm not knocking you, i'm just saying you are jumping to areas that won't help you a bit, without getting your feet wet in smaller areas of water Jul 19 01:29:24 wrong numbers, only 264 textviews Jul 19 01:30:21 yeah, i have to remove a lot from the main thread, currently basically everything runs in it Jul 19 01:30:32 thing is i might not get much from it Jul 19 01:30:38 that'd be next place to start Jul 19 01:30:53 lies, any processing should be done off main thread Jul 19 01:30:58 any/all Jul 19 01:31:43 i do things as simple as sorting a List off main thread then return just to stop any slowdowns Jul 19 01:31:51 ..according to trace, 50% of cpu time is eaten by Html.fromHtml Jul 19 01:31:54 i try todo as much stuff that may take 1sec off the main ui Jul 19 01:32:14 sq: then do that off main UI thread and reply back to handler Jul 19 01:32:28 if using Html.fromHtml in getView that'd be horrid Jul 19 01:32:54 and if doing it anywhere before getView on items such as a IRC chat Jul 19 01:32:58 on main thread Jul 19 01:33:23 i'll have to thing hard where to put it :< Jul 19 01:34:32 no you don't. In your code you may have Html.fromHtml in a method, that's fast, but if that method is called multiple times, or if looping in one method over multiple items and applying Html.fromHtml, do that on a seperate thread Jul 19 01:35:17 basically getView calls Html.fromHtml for every text item Jul 19 01:35:24 that's your problem Jul 19 01:35:31 do that before hand Jul 19 01:35:56 is it just to support mIRC colors? Jul 19 01:36:06 yup Jul 19 01:36:08 or to color nicks and color too Jul 19 01:36:19 to color nicks and other stuff too Jul 19 01:37:01 i don't think i can save Html.fromHtml() objects.. Jul 19 01:37:05 best bet would be to have the processing done before getView is called, so you could pull the color from your data, or have the String formatted before hand Jul 19 01:37:17 so i can't make them in advance Jul 19 01:37:18 is it just one TextView per chat message? Jul 19 01:37:23 three Jul 19 01:37:43 three? i just see a nick: message Jul 19 01:38:02 yeah, i removed the other elements for now Jul 19 01:38:18 so you see only one Jul 19 01:38:41 I'm saying you can set it before hand with your data object Jul 19 01:39:48 or if you don't, in your getView you can use Loaders, that'll change your views lazily Jul 19 01:41:27 beforehand as in in another process? Jul 19 01:41:36 * sq looks up loaders Jul 19 01:44:03 i have to go Jul 19 01:44:17 canvs2321: thanks a lot for your advice Jul 19 01:44:37 sq: here's a screenshot of an app i'm working on, as you can see i have tons of custom views, works flawlessy, even with 20,000+ items. http://imgur.com/zMM9apl Jul 19 01:45:12 canvs2321 cool, what is that ? Jul 19 01:45:20 yep, and like i said, do as much processing before your getView as possible, even color codes! i do know switch/if&else/etc... conditions in getView Jul 19 01:45:40 g00s: it's a break off of my main app, it's a logcat utility Jul 19 01:45:48 nice :) Jul 19 01:46:17 thanks :) i have sooo much detail left, wish could release, but i'm a perfectionist :) and love small things Jul 19 01:47:29 the main app is gonna be even better if i ever get it done :) complete system info, similar to using a desktop Jul 19 01:48:11 canvs2321 so is this one module (logcat) in the complete app ? Jul 19 01:49:59 any game developers - if not - where can i read about conceptual game design - not programming specific - but general game flow - game design patterns, etc. ? Jul 19 01:50:41 g00s: yeah, have a full file browser w root, networking stats/iptables, system monitoring I/O(per device), CPU(usage,running processes,memory), Memory(usage),Battery, etc...all sorts of stuff :) Jul 19 01:51:57 can view SQL from apps, view/play bootanitamtions, view/install fonts, modify build.prop with explanation, all sorts of geeky stuff Jul 19 01:55:36 Can somebody please recommend a good introduction to developing with Android Studio? Jul 19 02:05:44 Orbixx: what do you need to know about it? you wanting a introduction to Android, or just AS? Jul 19 02:06:11 canvs2321: Mostly just UI design through AS Jul 19 02:06:27 Java and Android libraries I can handle Jul 19 02:06:57 UI Design is pretty similar to Eclipse, what's your question? Jul 19 02:08:16 &Just UI design is pretty vague, do you know your layouts? **** ENDING LOGGING AT Sat Jul 19 03:00:00 2014