**** BEGIN LOGGING AT Sun Apr 26 02:59:59 2015 Apr 26 03:02:00 I have a service running in the background and I want a dialog to show progress updates from my background job. I am using a BroadcastReceiver to get notified of updates but when the the Activity is brought to the background and then again to the foreground the dialog doesn't resume progress as I want because I have to unregister the receiver. Any ideas of what I should be doing? Apr 26 03:03:05 how often are you broadcasting progress updates? and where are you registering the receiver? Apr 26 03:03:43 show the correct progress onResume Apr 26 03:03:52 ^ Apr 26 03:04:08 broadcasting probably every 500 millis. receiver is registered in a DialogFragment Apr 26 03:04:28 in onResume the background job might already be complete, no more broadcasts Apr 26 03:05:11 surf2b1 use an event bus with sticky things Apr 26 03:05:38 that way, when its done, you come to foreground and still get the last result Apr 26 03:05:43 never used an event bus. Are you referring to some library? Apr 26 03:05:52 either greenrobot or otto Apr 26 03:05:58 or rxjava, if you use that :D Apr 26 03:06:47 I'll check otto out. Apr 26 03:06:48 I'd definitely recommend an event bus or RxJava over a local broadcast receiver Apr 26 03:07:21 yeah, that class was nice as a transition away from using real broadcasts, but is kinda lame Apr 26 03:07:42 like 4 years ago, state of the art then :) Apr 26 03:07:48 Don't remember when it's from but I'm guessing before event buses Apr 26 03:08:20 it was put there so people wouldn't leak private data to the system if they were using broadcasts for events Apr 26 03:10:23 & to be more efficient (not parceling data for ipc to some system service) Apr 26 03:11:19 g00s: When you refer to "sticky things" is that some feature of a specific library? Apr 26 03:11:32 i think both libs have it Apr 26 03:11:47 otto has 'Producer" , greenrobot has it too someway Apr 26 03:14:50 g00s: thanks. Otto looks nice Apr 26 03:22:55 one more time...how can i keep the emulator from writing a bunch of stuff to disk on startup? Apr 26 03:23:05 and during execution it does this too Apr 26 03:23:20 and *where* exactly does it write stuff Apr 26 03:25:13 why do you want it to not write to disk Apr 26 03:27:26 desmin88: well wouldn't it fill everything up eventually? Apr 26 03:28:04 it seems to be writing to /dev/shm. hmm. Apr 26 03:28:08 that made no sense Apr 26 03:28:23 desmin88: it is writing data to some file in my filesystem. Apr 26 03:28:30 ok. and? Apr 26 03:28:35 thats expected Apr 26 03:28:51 well if it's insignificant and nothing to worry about then alright Apr 26 03:29:11 how else is it suppsoed to persist across runs, by writing to disk Apr 26 03:36:48 having trouble figuring out how to implement RecyclerView adapters cleanly with MVP Apr 26 03:37:19 they seem like they should be in the View layer but they need to access the model too Apr 26 03:37:58 listview adapters are like that too Apr 26 03:39:41 guess I'm just passing in presenters and delegating work to them but it feels weird for some reason Apr 26 03:39:57 Accessing the SQlite database file only works in the emulator or on a rooted device. Apr 26 03:39:57 A standard Android device will not grant read-access to the database file. Apr 26 03:40:05 CedricBeust: from the tutorial I read the above Apr 26 03:40:50 Does this mean when I deploy an app, I cannot have a sqllite database file that I read from? Apr 26 03:43:25 mendozao Apr 26 03:43:46 it means that you cant read directly from the db file created by a sqliteopenhelper Apr 26 03:49:21 g00s: I don't think Produce is sticky. I still have to unregister in onPause and I don't get the event in onResume Apr 26 03:49:36 sticky events suck Apr 26 03:50:00 and you don't have to unregister receivers on pause Apr 26 03:50:21 pfnQ: Don't have to, but it says you should o.O Apr 26 03:50:51 desmin88: so my goal is to read from an existing sqllite file - in my project I saved it to the app/src/main/assets folder. So now I want to basically read from it from inside a fragment. Any idea on how to accomplish this in the simplest way possible? Apr 26 03:51:21 the tutorials I've seen just create a database from scratch Apr 26 03:51:27 using a few commands Apr 26 03:51:32 by using the sqlite api in android.database Apr 26 03:51:42 mendozao: just transfer the asset to your files directory Apr 26 03:51:47 simplest way, read the docs Apr 26 03:53:01 pfnQ: http://developer.android.com/reference/android/database/sqlite/package-summary.html ? Apr 26 03:53:22 yes Apr 26 03:54:14 i don't see an example in the docs Apr 26 03:54:31 examples are not the way to write code Apr 26 03:57:30 mendozao: what kinda data is in the existing db Apr 26 03:58:00 mendozao: so, check if the current db is in your files directory. If it's not there, transfer it from your assets directory and then open it with SQLiteDatabase.openDatabase(path, null, SQLiteDatabase.OPEN_READWRITE); Apr 26 03:58:01 desmin88: state, county, and city data Apr 26 03:58:52 Okay, I did some profiling. AppCompatTextView is around 0.1ms slower to create than TextView. Apr 26 03:59:00 And I feel bad for my phone now. Apr 26 03:59:13 whats the cause? Apr 26 03:59:26 0.1ms ? who cares ! Apr 26 03:59:29 It just had to create 100,000 TextViews. Apr 26 03:59:42 50,000 at a time. Apr 26 03:59:45 hahaha Apr 26 03:59:57 .1ms isn't that big of a deal though Apr 26 04:00:00 Yeah. Apr 26 04:00:18 why create 100,000 textviews? Apr 26 04:00:24 to get a nice average Apr 26 04:00:29 Also, I found out that creating in Java code is about 0.3ms faster than inflating from a very basic XML file (with just the TextView). Apr 26 04:00:46 now that is useful info Apr 26 04:01:05 doh Apr 26 04:01:15 how the hell do I make a repeating alarm? I just don't understand what I'm missing Apr 26 04:03:24 surf2b1: You haven't really lived until you've created 100,000 TextViews. Apr 26 04:04:47 what a thrill it must be Apr 26 04:08:56 Hmm, I kinda wish AppCompat made us refer to AppCompat in XML. It would kinda be simpler. Apr 26 04:08:59 More transparent. Apr 26 04:10:00 would it be okay to Apr 26 04:10:09 i mean, are there downsides Apr 26 04:10:29 It's more manual work, I guess. Apr 26 04:10:52 TacticalJoke do ever use @TestClass ? Apr 26 04:10:59 Nah. What is that? Apr 26 04:11:06 TacticalJoke: haha.. I've tried around 100,000 and the UI thread punched me in the face. Apr 26 04:11:14 hm, seems like the annotation that replaces 'extends TestCase' Apr 26 04:11:32 ok, nm Apr 26 04:23:04 alarmManager.setRepeating(AlarmManager.RTC, 0, 5000, pendingIntent); <-- apparently android thinks 5000 == 60000 for repeating interval... Apr 26 04:24:27 yeah i think they changed that Apr 26 04:24:42 can't set below 1 minute Apr 26 04:26:29 that's fair, I was just doing it for testing Apr 26 04:26:44 now that I know that, I can see that apparently the alarm is getting set and going off... Apr 26 04:27:18 but for whatever reason, either my pending intents aren't getting fired or my app isn't receiving them properly Apr 26 04:27:49 I've got set up for the intent Apr 26 04:28:03 when would you ever use an AsyncTaskLoader over an IntentService? Apr 26 04:30:39 joshkovach,unless you are just writing your thoughts, if you are wanting help you should pastebin relevant code Apr 26 04:32:20 Pwnies, don't leave us hanging, when? Apr 26 04:33:05 To get to the other side. Apr 26 04:34:22 what do you guys think, legit or not? https://github.com/jgilfelt/android-sqlite-asset-helper Apr 26 04:35:01 Pwnies: for a custom CursorLoader Apr 26 04:37:27 Hey. Anyone here that's Able to look at a Windows app/script and can make a android runnable? It just. Does like 10 or so commands and you could release out online for donations helping 1000s at the same timed Apr 26 04:37:51 lolwut Apr 26 04:41:10 mendozao what did the db have in it ? Apr 26 04:41:34 g00s: the one i'm using? state, county, and city data Apr 26 04:41:54 what kind of data though, does it change often ? Apr 26 04:42:03 g00s: so after a user selects a state, i retrieve all counties in that state etc Apr 26 04:42:09 no it won't change Apr 26 04:42:30 does your app ever need to change it , i guess not then ? Apr 26 04:42:35 https://gist.github.com/shekibobo/522ae54fc7e3273e1166 Apr 26 04:42:39 no need to write Apr 26 04:42:41 just read only Apr 26 04:42:45 ^^ relevant code, I think Apr 26 04:43:36 basically trying to set up a repeating timer to update the widget every few minutes Apr 26 04:43:56 whatitis: loading data from an api that updates annually Apr 26 04:44:08 adb dump shows the alarm is running and updating after 65 seconds Apr 26 04:44:23 but I'm not seeing any activity in the widget Apr 26 04:44:57 into a database Apr 26 04:46:22 mendozao i guess its preference, but i prefer not to ship sqlite db with the app Apr 26 04:46:50 you could ship a version for say 3.7 but the phone only has 3.4 - it should work, but heh Apr 26 04:47:16 g00s: yea would be way cleaner to get from a web service Apr 26 04:48:50 you can ship an initial container, but i'd either import it into new sqlite db Apr 26 04:49:45 Pwnies, you are asking about the loader vs intentservice for data updated once a year, or seperate issues? Apr 26 04:52:01 joshkovach, did you post the code that is broadcasting the intent your widget is listening for? Apr 26 04:52:39 n/m, i'm a scroll idiot :) Apr 26 04:52:44 :) Apr 26 04:53:01 setUpdateTimer + getWidgetUpdatePendingIntent Apr 26 04:54:33 is the context in OneHourAlarmManager still relevant when timer goes off? Apr 26 04:54:59 hmmm Apr 26 04:55:07 might not be Apr 26 05:27:02 g00s: greenrobot's has sticky events Apr 26 05:27:16 (I'm not a fan of an event bus keeping my state) Apr 26 05:46:55 whatitis: same issue Apr 26 06:05:19 Pwnies, same isssue what? Apr 26 06:23:07 mornin android people :) Apr 26 06:23:30 lies Apr 26 06:31:03 hey Mavrik thebiffman Apr 26 06:31:07 oops thepoosh :D Apr 26 06:31:16 oh hi there Apr 26 06:31:22 more feedback from google Apr 26 06:31:23 :S Apr 26 06:31:29 thepoosh good ? Apr 26 06:31:40 3 more change requests Apr 26 06:31:44 2 very minor Apr 26 06:31:47 one huge Apr 26 06:31:56 they making you guys jump tthrough hoops :D Apr 26 06:32:04 yeah Apr 26 06:32:09 but i think it's for the best Apr 26 06:32:16 what is the huge one ? Apr 26 06:33:05 *The navigation drawer contains items that are all just lower-level screens or actions. The drawer should be removed and the actions moved/condensed into categories in the action overflow (in the app bar). Apr 26 06:33:47 d'oh Apr 26 06:33:53 ? Apr 26 06:35:45 https://www.youtube.com/watch?v=H22t-tiWiLw Apr 26 06:35:52 oh Apr 26 06:35:54 yeah Apr 26 06:35:55 :S Apr 26 06:36:33 categories in the action overflow ... huh Apr 26 06:36:49 i thought it was nav to the left, actions in the uh action overflow Apr 26 06:37:09 idk what that even means Apr 26 06:37:24 we pushed it to the graphics designer and product team to work on redesign Apr 26 06:37:26 it sucks Apr 26 06:40:01 is there any methodology to model android apps? Apr 26 06:40:28 wow so livtyler is doing android apps Apr 26 06:40:33 >.> Apr 26 06:41:48 thepoosh how long do you think it will take? maybe it would have been easier to put more useful stuff in nav drawer Apr 26 06:42:19 idk, we pushed it to our graphics guy Apr 26 06:42:29 i know nothing John Snow Apr 26 06:54:54 huh Apr 26 06:54:58 thepoosh, are you being featured? Apr 26 06:56:33 btw, do we have a decent elevation compat lib yet? Apr 26 07:00:15 Mavrik: once we jump through all the hoops Apr 26 07:00:24 Mavrik do you use the NDK quite a bit ? Apr 26 07:00:25 mhm, that's usually the case Apr 26 07:00:28 they promised to feature us Apr 26 07:00:37 hopefully they're better than Apple though Apr 26 07:01:03 Apple forbade us from publishing Android app for two weeks and then they just forgot about featuring us (and stopped answering) Apr 26 07:01:13 g00s, yesh Apr 26 07:01:23 g00s, we have cross-platform C++ core :) Apr 26 07:02:30 Mavrik any thoughts about this https://www.visualstudio.com/en-us/explore/cplusplus-mdd-vs Apr 26 07:02:49 "I wish it would run on OS X" came to ind Apr 26 07:02:49 :) Apr 26 07:03:01 lol Apr 26 07:04:13 VS C++ support is actually really good, probably the best out there Apr 26 07:04:18 So yeah, I'm kinda annoyed we don't have it Apr 26 07:04:37 Also, I just got confirmation that IntelliJ has no plans of supporting NDK build scripts in CLion Apr 26 07:04:45 so fsck them. Apr 26 07:04:46 :O Apr 26 07:16:58 Hey guys.. I do all my dev on my Android device. To save time and space is there away too use my dropbox folder as a live dir In my phone Apr 26 07:39:19 ronkrt get yourself something else, AIDE is a toy. Even a chromebook maybe with linux installed would be better Apr 26 07:52:21 on-device dev??? oUcH Apr 26 07:58:17 Mavrik you any good with appcompat & themes :) ? Apr 26 07:58:23 hah Apr 26 07:58:33 well, i'm having this problem https://www.reddit.com/r/androiddev/comments/2q5qc4/why_are_preference_texts_in_preferencefragment_so/ Apr 26 07:58:34 * Mavrik just wasted 1 hour yesterday trying to theme a Toolbar. Apr 26 07:58:58 but it seems terrible to override platform's textColorPrimary / Secondary, etc Apr 26 07:59:07 I've seen something about AppCompat 22.1 allowing preference fragment themeing... but that's about it :/ Apr 26 07:59:30 hm k Apr 26 08:10:08 hey guys... I am using eclipse, I would to use material design on devices before android 5... I ve created a project and "included" appcompat v7, but when I write Theme.Material.Light into styles.xml it says me that it is only avaiable for android 5 Apr 26 08:10:17 what can I do? Apr 26 08:11:11 Use Theme.AppCompat.Light Apr 26 08:15:19 bah why won't my edittexts tint with appcompat 22.1 :/ Apr 26 08:16:56 how fun is Scala for android programming ? Apr 26 08:17:12 about as much as getting your wisdom teeth pulled Apr 26 08:17:24 quelqun_dautre, pfn here does alot of it Apr 26 08:17:54 does seems very fun. I'll abstain for now. Apr 26 08:18:00 If you find scala fun, it's probably as much fun on android Apr 26 08:32:36 I broke Intellij, again :( Apr 26 08:37:13 Man, using RetroLambda really makes AS run like ass Apr 26 08:37:33 anyone know how to change the right spinner indicator icon Apr 26 09:15:33 Hi Apr 26 09:15:44 Anybody knows how can I handle ECONNREFUSED (Connection refused) errors with Retrofit? Apr 26 09:26:30 ah, custom error handler it seems Apr 26 09:43:08 ConnectException seems to bypass retrofit error handler Apr 26 09:47:29 I mean, it probable never gets there, it fails earlier Apr 26 09:47:34 probably* Apr 26 09:49:47 <_genuser_> dang, turning proof of concept code into cleaner code is just too hectic. Apr 26 10:07:25 lol Apr 26 10:19:24 Hi, I have a custom view which needs to access it's sibling view Apr 26 10:19:40 Problem is, I don't know when the parent has finished inflating Apr 26 10:20:11 What is the workaround for that? Apr 26 10:24:33 Do it later in the lifecycle Apr 26 10:24:37 Or have the parent tell the child view Apr 26 10:24:55 Sounds weird that a view would need to know about sibling views tho Apr 26 10:25:20 Why ? It does it all the time in a relativelayout Apr 26 10:25:31 It does? Apr 26 10:26:21 everytime you specify something like layout_below? Apr 26 10:26:26 you are giving the id of another field Apr 26 10:26:37 That's LayoutParams Apr 26 10:26:39 I'm having a PeekImageButton which needs the Id of a password field Apr 26 10:26:42 Those are used exclusively by the RelativeLayout Apr 26 10:26:44 to show the password on touch Apr 26 10:27:03 Each View knows nothing about its sibling views Apr 26 10:27:48 ok Apr 26 10:28:03 What's special about PeekImageButton? Apr 26 10:28:29 It has a custom attribute Apr 26 10:28:35 passwordfieldId Apr 26 10:28:51 then I need to fetch the passwordfield Apr 26 10:28:54 Why can't you just use an ImageButton with a click listener, and handle it in your Activity/Fragment? Apr 26 10:29:21 Because it is used more than once, and it's a great way to avoid code duplicity Apr 26 10:29:39 Or, if you want a View that you can add anywhere, create a ViewGroup with an IMageButton and a EditText Apr 26 10:30:20 but then the Id gets duplicated? Apr 26 10:30:24 or it doesn't matter? Apr 26 10:30:40 That doesn't matter Apr 26 10:31:13 Alright, thanks Apr 26 10:35:06 But what if you want to include it twice in a layout then? Apr 26 10:35:13 then It matters Apr 26 11:04:29 I'm trying to get/set an EXIF tag in a JPEG on my phone, in an app I'm writing. Using ExifInterface, I'm able to *write* the tag, but I can't seem to *read* the same tag. The tag I'm trying to use, "UserComment", is perhaps not "supported"/implemented in ExifInterface? Apr 26 11:05:37 I.e., typing "ExifInterface." in Android Studio brings up the auto complete, suggesting various EXIF tags: TAG_MAKE, TAG_MODEL, TAG_APERTURE etc etc but *not* TAG_USERCOMMENT Apr 26 11:07:14 still! As I said, writing seems to work! I do, ExifInterface exif = new ExifInterface(filePath); exif.setAttribute("UserComment", "bladi bla"); exif.saveAttributes(); Then I can verify that the tag is indeed set by opening the same image file in another app (Photo Editor, which has EXIF reader) Apr 26 11:08:37 so... If the Photo Editor app can do it, then at least it's not impossible for my app to do it (i.e, read arbitrary EXIF tag). But does anyone have suggestions on *how* to read EXIF tags, if I can't use ExifInterface? Apr 26 11:16:37 bah fsck Apr 26 11:16:45 random widgets just not being tinted on Lollipop Apr 26 11:26:34 Anyone have a list of the worst android games out there? Because I think I just found a winner: https://play.google.com/store/apps/details?id=com.rApps.fazt Apr 26 11:47:15 need more info how to start develop Android on gcc compilers Apr 26 11:48:36 huh Apr 26 11:49:26 want to port minerd for 4.2 Apr 26 11:50:11 m7mhash.c need to port for Android 4.2 Apr 26 11:51:59 did you look at the Android NDK ? Apr 26 11:53:46 mining on android eh? Apr 26 11:54:55 mining for Android - just for promote some pools, Ashiren. Thank you, Damo2k ! Apr 26 12:02:06 Is it Android NDK contain emulators ? Apr 26 12:16:27 hm? Apr 26 12:16:58 android NDK just allows use c/c++ code for android, the way jni does in java Apr 26 13:18:36 Has anyone here managed to do ZXing scanning with portrait mode? (latest version, some old versions can be modified using stackoverflow answers) Apr 26 13:58:10 is it safe to store keys for example azure appkey and appname as constants? Apr 26 14:06:46 how can I make the red border go away? http://puu.sh/hrrwH/53c5399945.png Apr 26 14:20:44 Hey guys, does anyone have any projects up on github I could take a look at? I'd like to examine the folder structure and such :) Apr 26 14:29:10 happyowl: if you make a new project using Android Studio the folder structure would be pretty much the same Apr 26 14:31:29 ExeciN: Ah yes. Right now I'm looking for a good spot to put my models for example Apr 26 14:31:57 I wonder if their are any conventions for things like that Apr 26 14:32:06 Like src/main/java/models or something Apr 26 14:32:20 most open source projects will have the code available but the folder structure might be missing Apr 26 14:32:41 Oh? Apr 26 14:57:18 Hello guys, I'm planning to make an expense manager app in which two or more users can collaborate. For example if two people are going to Paris. One of the two creates a trip and invites the other person using email or someway. Then whenever one person adds an expense it reflects in the others application and vice-versa. I cannot understand how to achieve this structure. I wanted to know how can I achieve this using Parse? Apr 26 15:02:11 anyone familiar with ParsE? Apr 26 15:02:15 Parse?* Apr 26 15:18:34 hey Apr 26 15:22:07 hey there Apr 26 15:23:32 hey hey Apr 26 15:24:49 kevin123: When you say "structure" which structure are you referring to? (I am not familiar with Parse.) Your data structure or your whole architecture? Apr 26 15:25:56 happyowl: stop procrastinating about the folder structure. You can refactor them later to your liking with a modern IDE. If you are not using an IDE for Android programming, good luck. Apr 26 15:27:17 project structure is easy Apr 26 15:27:25 one of the easiest things to do Apr 26 15:33:16 @claint thw whole architecture Apr 26 15:39:10 hello Apr 26 15:39:20 hi Apr 26 15:39:20 how to tell proguard to minify ? Apr 26 15:43:13 Well, if anyone is familiar with Parse, please message me Apr 26 15:50:10 can anyone recommend an book for a beginner? Apr 26 15:51:23 HarryHallman: for users or for developers ? Apr 26 15:52:08 Jackson W. Learn Android App Development: Quickly build your first Android apps PDF Apr 26 15:52:15 http://www.twirpx.com/file/1179101/ Apr 26 15:52:34 Jackson W. Android Apps for Absolute Beginners PDF Apr 26 15:52:41 http://www.twirpx.com/file/1507304/ Apr 26 15:53:36 http://www.twirpx.com/about/search/?searchid=139800&text=android Apr 26 15:55:55 Marlinski, proguard minifies by default when run Apr 26 15:58:29 Hello Apr 26 15:59:04 I should place some xml files in /res/drawablle Apr 26 15:59:08 *drawable Apr 26 15:59:28 but I see there are more drawable directories in /res Apr 26 16:00:10 drawable--hdpi, drawable-ldpi, drawable-mdpi, drawable-hdpi.... Apr 26 16:00:29 Where have I to place the xml files? Apr 26 16:00:31 Any ideas? Apr 26 16:00:58 * (directories are related to resolution) Apr 26 16:02:17 hello everyone http://pastebin.com/7dd5ruDn i have this exception reported on google play.. in link is also included only location where i think the error can come from. but if this is not correct what should i use? it works perfect on my own phone and in emulator. Apr 26 16:02:50 line 70 Apr 26 16:03:43 fanno, why would you set the params in code instead in the xml? Apr 26 16:04:04 cristian_c: just red/drawable Apr 26 16:04:12 cristian_c: s//res Apr 26 16:04:35 cristian_c, xml files are resolution independent, so. go. in drawable Apr 26 16:04:43 icedp, Apr 26 16:04:45 oops Apr 26 16:04:47 iprime: no special reason .. i am not using a xml because it is just a textview so seems over kill to inflate it ? Apr 26 16:04:56 icedp, so, have I to create 'drawable' simply? Apr 26 16:04:59 cristian_c, pretty common sense Apr 26 16:05:02 yep Apr 26 16:05:04 ok Apr 26 16:05:22 fanno, i think it's much more convenient to use an xml, but maybe that's just me Apr 26 16:05:30 thanks, It seems so, but I had some doubts :P Apr 26 16:05:37 now, I can try :) Apr 26 16:05:38 iprime: would it solve the problem ? Apr 26 16:05:56 fanno, sure it will Apr 26 16:06:18 iprime: i should be using a view holer also correct ? Apr 26 16:06:19 there is no point in forcing to use xml Apr 26 16:06:31 fanno, maybe not if it's just a textview Apr 26 16:07:20 iprime: so you would just inflate it every time ? only 25 items Apr 26 16:07:38 fanno, if you're really sure this is where the error is coming from, why not try using new AbsListView.LayoutParams instead of new ViewGroup.LayoutParams? that would then tell you for sure Apr 26 16:07:48 however I don't think that is where the error is coming from Apr 26 16:08:01 fanno, why every time? Apr 26 16:08:20 fanno, easy, create the right layout params Apr 26 16:08:24 fanno, have you used some wizard for creating your project? Apr 26 16:08:28 fanno, the exception tells you which one to use Apr 26 16:08:43 ravilov: i am not "sure" it is just the only location i use viewgroup my self Apr 26 16:09:18 and how does this exception not occur during development for you Apr 26 16:09:42 pfnQ well what i am not understanding is why is is not a problem for me and most of my other users only had this a few times Apr 26 16:10:06 fanno, the exception actually tells you everything you need to know; the fact it never mentions your own package means it is not coming from your code Apr 26 16:10:10 it should be an error across all devices, I don't recall different android versions changing that behavior Apr 26 16:10:25 ravilov, shush, it's his code Apr 26 16:10:36 he's using the wrong layout params Apr 26 16:10:37 yes but not the way he thinks Apr 26 16:10:40 fanno, i think the listfragment wizard can have you use a gridview for larger screens vs a listview by default.. have you tested your app on a tablet/larger screen device? Apr 26 16:10:49 ravilov: yes i am aware it is not talking about my own package Apr 26 16:11:01 fanno, just change the layout params Apr 26 16:12:11 but yeah, inflating from xml would also fix this problem Apr 26 16:12:50 pfnQ: Out of curiosity, which is better performance wise? Apr 26 16:13:01 Anthaas, it doesn't really matter Apr 26 16:15:50 in any case is this the change you are sugesting? textView.setLayoutParams(new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT, AbsListView.LayoutParams.MATCH_PARENT)); Apr 26 16:16:19 it seems to stii work on my emulator and phone have not tried tablet emulating yet Apr 26 16:17:28 fanno, i'd say you should still inflate, inflating views is in my opinion almost always the better option Apr 26 16:20:21 running 'sudo sh ./studio.sh' also ends with error about cannot create sd card Apr 26 16:20:50 I read on some site, prlly stackoverflow that running the studio.sh with sudo rights should help but no Apr 26 16:21:14 iprime, I don't inflate a single view in qicr :p Apr 26 16:21:40 Haven't decided if I like the macroid dsl yet Apr 26 16:22:30 Linux has come a long way since 1995 when I started using it Apr 26 16:25:01 pfnQ, in soviet russia a view inflates you :) Apr 26 16:28:17 meh, I can't find a good material icon for go up Apr 26 16:33:20 I guess I'll use the reply or undo icon Apr 26 17:00:58 Okay, weird. If I set [android:textColor="?android:attr/textColor"] on a TextView, I get a crash: "android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path)". Apr 26 17:01:10 I thought it was an AppCompat issue, but it happens even without AppCompat. Apr 26 17:01:20 :S Apr 26 17:01:36 I can fix this by setting "android:textColor" in themes.xml or whatever. Apr 26 17:01:40 Weird, though. Apr 26 17:07:12 So for a new project I'm using Retrofit, and before adding a callback to the method in my apiservice I got a network on main thread exception. Adding a callback is the way to get it off of the main thread, correct? Apr 26 17:07:16 I guess we're expected to define "android:textColor" before we use it? Apr 26 17:07:26 (Crash happens on two devices with different Android versions.) Apr 26 17:08:17 t0astt: whatever is written in the very good documentation Apr 26 17:08:26 t0astt: no Apr 26 17:08:37 Callbacks happen on the main thread Apr 26 17:09:18 ho Apr 26 17:09:33 JakeWharton: hi, haven't seen you here in quite a while Apr 26 17:09:48 I never left Apr 26 17:10:12 true, but you haven't been active in my hours Apr 26 17:10:30 Nothing compelled me to participate. Apr 26 17:10:34 maybe it's because i bought gta and i'm not connected during the night time for me Apr 26 17:11:01 thepoosh: What do you think about the new AppCompat? Apr 26 17:11:06 I <3 the new buttons <21. Apr 26 17:11:13 And also >=21. Apr 26 17:11:21 Then again, they're not new in the second case. Apr 26 17:11:28 didn't update yet in our app Apr 26 17:11:54 So the new appCompat essentially removes the need to use third party material design libraries now, right? Apr 26 17:12:14 For dialogs and buttons, yeah. Apr 26 17:12:21 And I guess TextViews if you're really anal. Apr 26 17:12:25 And EditTexts. Apr 26 17:12:38 Material ProgressBars still aren't in AppCompat. Apr 26 17:12:44 TacticalJoke: does that mean support for font families? Apr 26 17:12:49 Oh, I'm not sure. Apr 26 17:13:09 let's not push it too far, lol Apr 26 17:13:22 The one thing I need most is material ProgressBars. Apr 26 17:13:27 Progress is such a big deal. Apr 26 17:13:42 yeah Apr 26 17:14:48 I like that determinate circular one. Could even have a "50%" in the middle. Apr 26 17:16:22 Having to use a horizontal ProgressBar for determinateness is awkward. Apr 26 17:16:38 Is this true what I find on interweb: installing some 32-bit compatibility libraries the is suggested to cure "Unable to run mksdcard SDK tool." Apr 26 17:17:35 only one way to find out... Apr 26 17:17:55 I just got a totally fresh and clean Kubuntu15.04 Apr 26 17:18:17 I don't want to mess it up with rubbish.. need to run to the superette for beers Apr 26 17:18:44 * ravilov just found out "determinateness" is not a word Apr 26 17:19:32 ravilov: Ctrl+F "determinateness" > http://www.oxforddictionaries.com/definition/english/determinate Apr 26 17:20:15 google begs to differ Apr 26 17:20:33 Google versus the Oxford English Dictionary. Apr 26 17:21:03 In fact, Google doesn't differ. Apr 26 17:21:09 You're probably typo-ing. Apr 26 17:21:29 uh sure Apr 26 17:21:41 Hi! I have a simple layout with a relative layout + linear layout. In my linear layout I have two buttons. How could I animate the marginTop of the linear animation so that the buttons move from about center to top? Apr 26 17:22:35 What I already have is http://pastebin.com/WaDCx9u5 Apr 26 17:22:43 But it doesn' seem to work quite well Apr 26 17:23:43 ravilov: http://www.urbandictionary.com/define.php?term=Incorrecting Apr 26 17:36:49 are there any general rules into making an app look visually appealing? Apr 26 17:36:58 without the use of fancy graphics and animations Apr 26 17:37:09 aspire: http://www.google.co.uk/design/spec/material-design/introduction.html Apr 26 17:37:14 im a "functionality over design" kind of guy but i still want my app to look nice Apr 26 17:37:19 but not fancy Apr 26 17:37:51 TacticalJoke i've seen this actually Apr 26 17:37:59 is this still applicable to android devices < lollipop? Apr 26 17:38:33 yes Apr 26 17:38:45 you can appcompat all the way to gingerbread Apr 26 17:38:48 maybe further Apr 26 17:38:51 It's debatable, but I think a case can be made for using "material" anywhere. One argument is that Google apps are doing this. Apr 26 17:38:53 well im just trying to write a simple menu screen Apr 26 17:39:01 4 buttons, a title, perhaps a graphic/logo somewhere Apr 26 17:39:14 myke what is appcompat? Apr 26 17:39:32 a library that backports features from newer versions of android to older versions Apr 26 17:39:49 oh Apr 26 17:40:11 interestin Apr 26 17:40:23 you won't get transparency and other effects but you can still make a material looking app run on versions of android much older than lollipop Apr 26 17:41:14 is that wise Apr 26 17:41:36 yes, your app will follow current guidelines for ui and still run on older devices Apr 26 17:41:54 mhmm Apr 26 17:42:00 right now i have a really simple layout Apr 26 17:42:15 big title at te top, icon below, 4 buttons vertically placed 1 under each other Apr 26 17:42:21 What would cause a Retrofit callback to not be called if the response is HTTP 200? Apr 26 17:43:00 hm, BuildConfig.VERSION_NAME is empty O.o - aren't the tools supposed to set that ? Apr 26 17:43:01 An exception thrown while deserializing. Apr 26 17:43:15 it doesnt look awesome but i think it looks good enough Apr 26 17:43:39 JakeWharton: Are exceptions logged by default? Because I'm not seeing any exceptions thrown in my log Apr 26 17:43:58 No Apr 26 17:44:04 aspire: Post a screenshot. Apr 26 17:44:09 Libraries that log should die Apr 26 17:44:39 Any Eclipse/ADT experts here who can help with a noob question -- how to tell Eclipse to link a .so living in libs? (My project was working, then I created a new Eclipse workspace, imported the Android project, and now the runtime crashes because it can't find the library even though it's there in the libs folder) Apr 26 17:44:47 Haha, I would agree with that now that you mention it. I have the Log level set to full in the RestAdapter Apr 26 17:50:20 TacticalJoke i'll post one later probably - my laptop died Apr 26 17:50:53 im not really a fan of all of the fancy animatons and graphics and stuff Apr 26 17:50:58 Same here. Apr 26 17:51:22 i prefer to have an app that functions as expected instead of an app that looks fancy and doesn't function as expected Apr 26 17:51:22 You can have the basic material look without the animations. Apr 26 17:51:57 mhmm Apr 26 17:53:31 why aren't there any predefined android themes that will skin your application regardless of which version you are running Apr 26 17:53:55 that's what appcompat does Apr 26 17:54:10 can anyone recommend a book for beginners? Apr 26 17:54:23 no way Apr 26 17:54:27 HarryHallman: Beginners in what? Android programming or programming in general? Apr 26 17:54:27 memorion are you serious Apr 26 17:54:36 android programing Apr 26 17:54:49 like maybe you just specify a couple of colors (primary/secondary etc) and it does everything else for you?? Apr 26 17:54:51 i am a developer but would like to learn android Apr 26 17:56:29 aspire yes, just extend or use one of the Theme.AppCompat themes Apr 26 17:57:12 oooooo i will look into it Apr 26 17:57:12 thanks Apr 26 17:57:15 HarryHallman: I'm not sure. If you're an experienced programmer, though, following one or more of the official guides and then starting an app while referring to the reference documentation might be the fastest way to get started. Apr 26 17:57:31 Books get out of date quickly. Android is a moving target. Apr 26 17:58:02 ok Apr 26 17:58:52 Even a lot of the official documentation is out of date right now. However, since it's just a web site, it can be fixed relatively easily. Apr 26 17:59:09 or one would think :D Apr 26 17:59:13 :D Apr 26 17:59:32 * g00s goes one to read about split action bars Apr 26 18:00:12 HarryHallman: Personally, I did the first guide and then started making an app. I asked a lot of questions in here and googled a lot. I was coming from C#/.NET. Apr 26 18:03:52 TIL there is a textColorTertiary. wat Apr 26 18:04:05 textColor, textColorPrimary, and textColorSecondary are not enough? Apr 26 18:05:27 Also, this is interesting: http://www.oxforddictionaries.com/words/what-comes-after-primary-secondary-tertiary Apr 26 18:06:01 There is no textColorQuaternary. Apr 26 18:07:22 there is a word for eleven TacticalJoke Apr 26 18:07:30 Hendeca* Apr 26 18:07:42 refering to your url which says there isn't Apr 26 18:07:49 and for 10, it could have been "deca" Apr 26 18:07:58 instead of "dena"ry Apr 26 18:08:05 basic etymology Apr 26 18:17:08 JakeWharton did you really mean 'Z' and not just Z https://github.com/JakeWharton/u2020/blob/master/build.gradle#L31 Apr 26 18:17:35 * g00s borrows that for his build :D Apr 26 18:17:59 JakeWharton you were right about the serializing error. Got it working A-OK now. Thanks! Apr 26 18:28:36 Trying to get Android Studio to work on Kubuntu15 Apr 26 18:29:47 last time I tried this failed with something about unable to make an SD card Apr 26 18:30:01 now I installed some 32-bit compatibility Apr 26 18:30:16 not the whole list given on sites because one of the packages did not exist Apr 26 18:31:44 jubo2 wow still taht bug with AS first run not finding mksdcard or whatever ? Apr 26 18:32:08 g00s: It would appear so Apr 26 18:32:20 jubo2 on Mac, when that first run dialog shows up, just close it. you will get prompted if it should run again, say NO, because it sucks Apr 26 18:32:44 g00s: !!! Apr 26 18:32:45 then when AS starts, go into preferences -> project structure and specify your SDK location and JDK location Apr 26 18:32:47 hey thepoosh Apr 26 18:32:53 2 tasks down, one to go Apr 26 18:33:03 we're completely removing the nav bar Apr 26 18:33:08 which sucks Apr 26 18:33:09 thepoosh oh yeah, did you work on the 2 tasks while I was sleeping :D Apr 26 18:33:17 well, yeah Apr 26 18:33:18 such a busy poosh Apr 26 18:33:23 lolz Apr 26 18:33:39 you mean nav drawer right ? Apr 26 18:33:58 oh Apr 26 18:33:59 yes Apr 26 18:34:11 what other things did you work on ? Apr 26 18:34:14 Why are you removing it? Apr 26 18:34:22 they said we have too many action items there (which are not navigational) Apr 26 18:34:27 and that they need to be removed Apr 26 18:34:36 that left 2-3 items there Apr 26 18:34:41 so product removed it Apr 26 18:34:56 g00s: I changed some UI stuff (shadows etc.) Apr 26 18:35:04 TacticalJoke also because google said so Apr 26 18:35:08 I really like the super-paraniod approach of each process having it's own VM Apr 26 18:35:15 they jump, we ask how high Apr 26 18:35:34 thepoosh and then the ban hammer :D Apr 26 18:35:40 that way you can make Linukka actually surprisingly secure Apr 26 18:36:06 I'm trying to use a cardview as a layout for my RecyclerView items... I have this as my XML (https://gist.github.com/t0astt/cc3df15dd4eff3e37c70), but my imageview is not expanding to the width & height of my cardview. What am I doing wrong? Can I not use CardView as a root layout for it? Apr 26 18:36:08 actually i'm waiting for multi-tenant jvm on desktop mac Apr 26 18:36:26 thought oracle would have had that by now O.o Apr 26 18:36:35 but I dislike how programs must demand rights prior to installation instead on a per-case basis like "App X would like to see your location. Allow? Yes / No" Apr 26 18:36:52 jubo2 yeah, its a widespread criticism Apr 26 18:37:06 I've seen such ridiculous rights being demanded of the user in exchange for installation Apr 26 18:37:06 they should ask for rights when they need them at runtime imho Apr 26 18:37:17 g00s: I think exactly the same Apr 26 18:37:48 one of the reasons i was so dissapointed by lollipip - they have us material, but no sane permission system Apr 26 18:37:58 i think one is more important than the other Apr 26 18:38:00 heh Apr 26 18:38:18 g00s: The NFC implementors are not making it that to activate NFC chip you must gesture something and if no NFC device is touched within 10 seconds the NFC will auto-power-off Apr 26 18:38:30 If they loved their consumers they would Apr 26 18:42:12 Android styles.xml stuff is insanely complicated. Apr 26 18:45:24 TacticalJoke yeah ... Apr 26 18:45:39 somebody could probably write abook about the important ones to think about (attrs) Apr 26 18:45:50 but its a tangled mess Apr 26 18:46:40 i generall prefer how windows phone does it, all apps take the same theme (unless you go out of your way), and the user specifies the theme - just like a desktop Apr 26 18:46:53 Looking for a powerful find and replace in multi files App anyone recommend one? Apr 26 18:46:58 I'm trying to track down why the text of my Toolbar's Spinner is changing colour if I set android:textColor. There are like 20 attributes coming into play here. It's almost impossible to figure out what's going on. Apr 26 18:47:37 TacticalJoke and once you figure it out, samsung will bust it Apr 26 18:47:40 :D Apr 26 18:49:35 This stuff just eats up hours. Apr 26 18:49:48 You can easily spend 10 hours trying to figure out why an AppCompat style is working in a certain way. Apr 26 18:49:52 its what android does best ;) Apr 26 18:49:54 It should take about 20 seconds. Apr 26 18:56:24 hello Apr 26 18:59:18 I'm going down so many rabbit holes trying to figure out my problem that I've forgotten what my problem is. :D Apr 26 18:59:28 Problem solved, I guess. Apr 26 19:00:40 is there a way to not pay the $25 fee? Apr 26 19:01:05 unlikely Apr 26 19:01:06 Yes, paulo_. Apr 26 19:01:13 how? Apr 26 19:01:16 Just don't do anything. Apr 26 19:01:27 my app is kinda ready. Apr 26 19:02:09 actually, technically developer account is 'free'. but you have to pay $25 to the ability to upload Apr 26 19:03:40 is there a way to make the user login using steam account ? Apr 26 19:04:05 LimBo__: i don't think valve has such APIs Apr 26 19:04:11 paulo_: Why are you so against paying it? Apr 26 19:04:12 http://steamcommunity.com/dev Apr 26 19:04:16 I guess you could just not use Google Play. Apr 26 19:04:32 there's something called openid Apr 26 19:04:43 TacticalJoke: not really against. just excited to put my app up Apr 26 19:05:13 They state that they need the payment to reduce spammers, etc. Apr 26 19:05:19 So I doubt there's a way to upload without paying it. Apr 26 19:06:43 Maybe I should charge people to e-mail me because of the amount of spam I get. Apr 26 19:07:28 TacticalJoke: lol Apr 26 19:07:37 TacticalJoke: Do you watch Googlebox? Apr 26 19:07:58 Sometimes, Anthaas. Apr 26 19:08:02 You seen Giles? Apr 26 19:08:05 From Giles and Mary Apr 26 19:08:24 That new bloke? Yeah. Apr 26 19:08:31 Reminds me of Bill Gates a bit. Apr 26 19:08:42 i think google should charge $25 for each app you upload (not version, but unique package) Apr 26 19:08:47 Hilarious. *watching Indiana Jones where they are on a rope bridge which is breaking with crocodiles below* "This is why we don't want our daughter to go on a gap year. We should show her this before she goes..." Apr 26 19:08:58 :D Apr 26 19:09:14 g00s: To what end? Apr 26 19:09:34 I guess it'd improve the quality. Apr 26 19:09:37 Anthaas there are "developers" that take one app, and upload 300 versions of it with a different background image Apr 26 19:09:41 Yeah. Apr 26 19:09:51 I agree, but what makes those "developers" do that? Apr 26 19:09:58 Normally advertisement revenue, yes? Apr 26 19:10:00 usually these are like individual wikipedia entries about birds or whatever Apr 26 19:10:14 Anthaas: Good question. Apr 26 19:10:23 if so, Im not sure $25 would stop that. Apr 26 19:10:36 I think it'd definitely reduce the number. Apr 26 19:10:42 300 apps is gonna add up with that figure. Apr 26 19:10:49 But what revenue would they return? Apr 26 19:11:03 nobody woud know, because it wouldn't happen :) Apr 26 19:11:09 Haha thats true. Apr 26 19:11:10 barrier to entry Apr 26 19:11:17 I do agree though, there is a lot of crap Apr 26 19:11:24 Yet its still not what annoys me most about the play store Apr 26 19:11:32 Searching is terrible. Apr 26 19:11:37 Which is bizarre given that the owner is Google. Apr 26 19:11:51 I just don't understand why there is an "Apps" section, and a "Games" section, when games can be found in the apps section. Apr 26 19:12:03 but look at this in the light of search on the web - where advertisers place for results Apr 26 19:12:10 Yeah, and many of the categories are useless. Apr 26 19:12:32 True. Needs clarity. Apr 26 19:13:32 Anthaas: Have there been any 147s yet this year? Apr 26 19:14:01 TacticalJoke: Calendar year, yes. Apr 26 19:16:50 I can't tell from Google. Hmm. Apr 26 19:17:02 TacticalJoke: http://www.prosnookerblog.com/147s/ Apr 26 19:17:32 Ah, thanks. :D Apr 26 19:17:38 So none this tournament. Apr 26 19:17:58 Love the break of 148 at the bottom haha Apr 26 19:18:29 lol Apr 26 19:18:38 I guess they had an extra red? Apr 26 19:19:00 this is pretty interesting http://apple.slashdot.org/story/15/04/26/1215234/apples-next-frontier-is-your-body Apr 26 19:19:20 i'm not sure if google could compete here, because of privacy questions many have Apr 26 19:19:31 which part of the lifecycle should we be registering and unregistering event busses? Apr 26 19:19:41 related http://motherboard.vice.com/read/looking-up-symptoms-online-these-companies-are-collecting-your-data Apr 26 19:19:51 mrfu onStart / onStop probably Apr 26 19:19:52 google-fu is bringing up a massive amount of conflicting answers Apr 26 19:20:36 I think it depends on the app. In my case, it's Activity.onCreate/Activity.onDestroy. Apr 26 19:21:14 what are the "depends" variables? Apr 26 19:21:18 And that builds on the fact that with config changes there is guaranteed to be no UI event between onDestroy and onCreate. Apr 26 19:21:39 Well, with rotation. I can't remember whether this applies to all configuration changes. Apr 26 19:21:50 mrfu i would say almost always onstart / onstop unless you need updated info to an activity that is hidden Apr 26 19:21:57 which is strange Apr 26 19:22:07 You can compile your C programs with an ARM cross compiler: arm-linux-gnueabi-gcc -static -march=armv7 test.c -o test Then you can push your compiled binary file to somewhere (don't push it in to the sdcard): adb push test /data/local/tmp/test Apr 26 19:22:12 Yea, don't need to do that haha Apr 26 19:22:16 I get error 'CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).' Apr 26 19:22:21 thanks g00s / TacticalJoke Apr 26 19:22:40 I have installed 'sudo apt install kvm' but it still complains it is not properly installed Apr 26 19:23:05 Let's say that the event is a download. If you unsubscribe in onStop and then the download happens, the data will be lost, right? Apr 26 19:23:12 s/happens/finishes/ Apr 26 19:23:38 In some apps, I don't think it'd be desirable to have to restart the download just because they turned the screen off momentarily. Apr 26 19:23:51 Or keep an event queue or something. Apr 26 19:24:29 Wouldn't it be good to pass all downloads and whatnot to a service? Apr 26 19:25:01 eeyup Apr 26 19:25:07 Anthaas: Not in all cases, IMO. Apr 26 19:25:25 Some downloads don't *have* to continue, but it'd be nice if they continued if the process isn't killed. Apr 26 19:25:31 TacticalJoke: I was going to harass you nearer to the time about how to handle a large dataset/download. Apr 26 19:26:30 Here's an example from my app: let's say that the user starts downloading a huge image and then turns the screen off. I want this download to coninue with the screen off, but if Android chooses to kill my process then I don't want it to continue. It's just not *that* important. Apr 26 19:26:33 It's semi-important, I guess. Apr 26 19:27:29 service or intentservice just for download, with set low priority or "not important" Apr 26 19:27:56 how huge is the image it would download for minutes :? Apr 26 19:28:22 Could be a big animated GIF or they could have a slow connection. Apr 26 19:28:34 When I'm out at London, I often turn the screen off while downloading animated GIFs. Sometimes it takes forever. Apr 26 19:30:25 it says to install kvm Apr 26 19:30:30 I have kvm installed Apr 26 19:30:42 I prlly need to set something somewhere Apr 26 19:30:46 So basically in Activity.onDestroy I unregister "this" as a listener, and I cancel the download if and only if not changing configuration. Apr 26 19:30:51 This seems to offer the best UX. Apr 26 19:31:05 s/listener/subscriber/ Apr 26 19:33:15 (And if we're changing configuration then I unregister "this" anyway, safe in the knowledge that Activity.onCreate will happen immediately after, whereupon the new Activity will register.) Apr 26 19:33:28 hi Apr 26 19:33:38 how do I add a view to a listview? Apr 26 19:33:52 So we can't lose downloads with config changes (as long as we're posting them to the main message looper). Apr 26 19:33:53 premedios: Adapters Apr 26 19:34:27 TacticalJoke: I need to read about Loopers, Subscribers, and Configuration Changes it would seem Apr 26 19:34:42 more specifically? Apr 26 19:35:27 premedios, extend base adapter to override the behavior Apr 26 19:35:40 premedios: The question needs to be more specific. Apr 26 19:36:08 +1 Apr 26 19:38:53 I have done 'sudo apt install kvm' Apr 26 19:39:02 So you keep saying Apr 26 19:39:30 but the Android Studio complains about "... (/dev/kvm is missing)" Apr 26 19:39:42 Yup, you've said that too Apr 26 19:41:36 Do I need to say the world needs more hippies Apr 26 19:41:57 Like RMS? Apr 26 19:43:02 jubo2, you might need to enable virtualization in your BIOS Apr 26 19:43:20 https://joplin.craigslist.org/apa/4994916078.html check it out, might get that place Apr 26 19:43:21 jk, wouldn't post future addy here Apr 26 19:43:27 but some place like it Apr 26 19:43:34 masterjef: nah.. run HW accelerated VirtualBox with no probs Apr 26 19:43:50 jubo2 use geny then Apr 26 19:44:03 genymotion ? Apr 26 19:44:09 yeah Apr 26 19:44:31 oh, AS is complaining - hm, no idea Apr 26 19:45:06 Does anyone know what happens if your app is running in the background and Android chooses to destroy your activities without killing your process? Does it call Activity.onDestroy in each case? Apr 26 19:45:17 Hippies cannot into HW accelerated KVM Apr 26 19:45:24 I've seen it happen on my app but I didn't have any logging in place at the time. Apr 26 19:45:39 Why do they always expect hippies to expect shitty level of technology ? Apr 26 19:45:51 jubo2, run kvm-ok Apr 26 19:46:02 normal or sudo ? Apr 26 19:46:03 how much do you guys earn with admob? Apr 26 19:46:12 normal Apr 26 19:46:41 ok. I see result Apr 26 19:46:48 pastebin it? Apr 26 19:46:54 yeah Apr 26 19:48:14 masterjef: http://pastebin.com/2dN0kZvS Apr 26 19:49:04 hm. sudo and see what it says Apr 26 19:49:34 I love hippies! Have you hippies seen http://MaidSafe.net and http://MaidSafe.org .. Those scottish hippies are some damn hard to the core hippies.. gonna save the world Apr 26 19:50:33 masterjef: now it says something is disabled in bios Apr 26 19:51:07 so I reboot and enable this VT-X or something like that Apr 26 19:51:24 yeah, that should fix it. Apr 26 19:51:30 I use hosting guys that use KVM and I use hosting guys who use Xen Apr 26 19:51:44 I even pay for Deezer and Spotify Apr 26 19:52:06 pointless.. shouldn't be much of a hack to get Spotify to run on Kubuntu15 Apr 26 19:52:23 Hi, bee working with MediaRecorder lately, to record voice. And I get the error “Mediarecorder start failed: -2147483648". ANyone else run into this before? Apr 26 19:52:24 last I checked it was available for Debian GNU/Linukka only on Linukka Apr 26 19:52:37 bbiab Apr 26 19:52:42 been* Apr 26 19:54:35 sciguy, need more info Apr 26 19:54:49 Just a sec, I'll make a gist. Apr 26 19:55:00 ok Apr 26 19:55:15 Here you go - https://gist.github.com/anonymous/a3f76a87dab8820a1925 Apr 26 19:55:25 I've tried using 3gpp, MPEG4 and default, but I get start failed -2147483648. Apr 26 19:55:45 The mediarecorder goes on to record voice anyway. But when trying to stop the recorder, but it throws an error saying stop failed: -38, when I try to stop. What's the workaround here? Apr 26 19:57:32 I've set up a BroadcastReceiver, which listens for com.android.camera.NEW_PICTURE. When camera takes a new picture, the onReceive(Context context, Intent intent) method (in my PhotoReceiver class) is invoked. But how do I go from there? Say I want to call a method in the fragment of the currently running (shown) activity. Is that done via context somehow? Apr 26 19:58:53 sciguy, are you initially using the MIC or VOICE_COMMUNICATION audio source? Apr 26 19:59:31 I've tried MIC, VOICE_CALL, VOICE_COMMUNICATION. They all give me the same error. Apr 26 19:59:58 Also tried CAMCORDER Apr 26 20:01:46 joakimk_, do not make an object for an activity. See if it's possible for you to make the method static. Apr 26 20:02:28 hm. well, i'm not sure what's going on exactly, but if I had to guess it's probably a bad combination of sample rate and other configs. Apr 26 20:02:55 MIC and VOICE_COMMUNICATION are the sources you should use though Apr 26 20:03:57 I've tried both. I've never worked with sample rates. Are phone dependent properties? Apr 26 20:04:05 I mean are they* Apr 26 20:04:06 if it helps you any, i use AudioRecord to stream 16 bit PCM over bluetooth with 8Khz sample rate, and that seems to work on every device Apr 26 20:04:58 yes, but there are a couple of guaratees, like 44.1Khz is required to be aupported Apr 26 20:05:33 I've never looked into AudioRecord. I'll look into it, and see if it's a viable option in my scenario. Apr 26 20:06:18 masterjef: now it runs! thanks! Apr 26 20:06:48 you can find the constants you'll need in AudioFormat, and you can use the static getMinBufferSize in AudioRecord to check if the combination of settings is supported. Apr 26 20:06:57 jubo2, good deal Apr 26 20:06:58 but damn slow.. I'ma quote Beck "Time is a piece of a wax melting on a termite that's choking on the splinters" Apr 26 20:07:26 yeah, give genymotion a try, it's much faster Apr 26 20:07:45 I'm just happy to have a system up Apr 26 20:08:29 What is the proper way to set an adapter on a recyclerview so that you can get animations? Can I just do a "MyAdapter a = new MyAdapter(listOfStuff); recyclerView.setAdapter(a)" ? Apr 26 20:09:46 does listOfStuff change? Apr 26 20:09:54 It can be updated Apr 26 20:10:04 Like swipe to refresh, and then the list can change Apr 26 20:10:04 Hmm, this is confusing. So, when using AppCompat, there are situations where "android:textColor" overrides "colorControlNormal" in really subtle ways. Apr 26 20:10:13 And then there are cases where the opposite appears to happen but doesn't really. Apr 26 20:10:50 set the adapter, and when listOfStuff changes, myAdapter.notifyDataSetChanged() Apr 26 20:11:07 sciguy: but what if I register a dynamic receiver in the onResume() method of the fragment (and unregister in onPause()) ? Apr 26 20:11:08 Ok. So the initial adapter can have a dataset Apr 26 20:11:32 yeah, IMO you should only set the adapter when the view is created Apr 26 20:13:29 TacticalJoke, i've had tons of theme problems with appcompat Apr 26 20:13:55 Yeah, it's a spaghetti mess of styles. Apr 26 20:14:25 I like it on the whole because it makes my app look way better than before, but trying to figure out what's going on style-wise is crazy-hard sometimes. Apr 26 20:18:24 TacticalJoke does your app have preferences ? do you know the answer to this ? https://www.reddit.com/r/androiddev/comments/2q5qc4/why_are_preference_texts_in_preferencefragment_so/ Apr 26 20:19:26 Ah, I haven't done preferences yet (am hoping to soon), so I'm not sure. I'm guessing that's gonna be another headache. :D Apr 26 20:22:42 Hi, I want my ImageView to be in center of screen, with width being 70% of parent, and height should be based on aspect ratio... Help? Apr 26 20:25:57 dimitrovskif: Could you use 100% height and let the ImageView take care of the image height relative to the given width? Apr 26 20:27:58 Actually, maybe that wouldn't work. Hmm. Apr 26 20:28:52 Might need more info. Apr 26 20:30:40 TacticalJoke: I have a QRReaderView that reads QR. The scanner has 15% margin on each side (that zone is not scannable) Apr 26 20:31:04 TacticalJoke: I want to indicate the visible area without having to do canvas painting. That's why I use FrameLayout with QRReader and an indicator Apr 26 20:37:51 TacticalJoke: Solved it like this, I think it contours the zone quite well. http://pastie.org/10115105 Apr 26 20:41:49 Im getting a Retrofit error with no reference back to my package. I know this is obviously an error in MY code, but could someone help me locate? Apr 26 20:41:51 Error: retrofit.RetrofitError: Attempt to invoke virtual method 'java.lang.String com.google.gson.Gson.toJson(java.lang.Object)' on a null object reference Apr 26 20:48:02 Anthaas: Stack trace and code on the lines specified... Apr 26 20:48:11 Anthaas: http://imgur.com/jacoj Apr 26 20:48:21 ...wow haha Apr 26 20:50:20 http://pastebin.com/vhULU65c Apr 26 20:50:23 There you go Apr 26 20:55:11 How do you get a recyclerview to animate views being added to it? I've done some searching and it seems you do it in the adapter, but I can't figure out how you go about doing it. Apr 26 21:04:21 If it means anything, that Retrofit error is from the failure part of my callback Apr 26 21:06:54 Anthaas: How the heck is it so cold. Apr 26 21:06:59 That's what I wanna know. Apr 26 21:07:40 TacticalJoke: haha I know right, was gorgeous a couple days ago. Me and a mate went for a walk to a nearby village a couple miles away, got just outside and it started chucking it down, so we went into the pub and watched football haha Apr 26 21:14:19 is there an android studio irc channel? Apr 26 21:14:27 I'm trying to record a video, but I keep getting: java.io.FileNotFoundException: /storage/emulated/InMySteps-2015-04-26_231230.mp4: open failed: EACCES (Permission denied). I have in my manifest (directly in the manifest tag, outside of the application tag). Apr 26 21:14:37 Any ideas what might be wrong? I'm testing using Genymotion. Apr 26 21:16:46 Blah. Just now realized I'm using Environment.getExternalStorageDirectory().getParent() instead of Environment.getExternalStorageDirectory().getPath(). Apr 26 21:22:04 TacticalJoke: You got any ideas about Retrofit? Apr 26 21:22:24 http://pastebin.com/vhULU65c <-- got this error from my callback. Apr 26 22:06:02 Anthaas: Paste removed. Though I've been pinged out anyway. Apr 26 22:07:43 can repost Apr 26 22:08:34 I probably won't be able to answer, but I'll look if you want. Apr 26 22:08:44 PMing due to content Apr 26 22:28:00 Anthaas: Maybe post the Java code? Something has to be going wrong in there. Apr 26 22:28:57 Hmm, Yeah, Ill do that now. Apr 26 22:32:17 TacticalJoke: Everyone else too: http://pastebin.com/nmVtYZkq <-- method that uses Retrofit. http://pastebin.com/QMktTF4z <--- UserService class Apr 26 22:33:06 whats wrong Apr 26 22:34:08 You don't want to create a service each time you execute your method Apr 26 22:34:57 you're doing this wrong Apr 26 22:35:38 just look at the examples on the site Apr 26 22:36:16 UserService should be an interface and you should implement it yourself Apr 26 22:36:22 Retrofit creates an implementation for you Apr 26 22:36:32 er Apr 26 22:36:39 UserService should be an interface and you should iNOT mplement it yourself Apr 26 22:37:41 Anthaas lmk if that makes sense Apr 26 22:38:01 Ahh Apr 26 22:38:06 UserClient is an interface? Apr 26 22:38:10 Sort of confused haha Apr 26 22:38:28 I gathered Im using it wrong though haha - would you mind helping me sort it out? Apr 26 22:38:41 Sorry for the delay (forgot to sort tomorrows lunch out) Apr 26 22:39:16 well you'd be better off just looking at the docs Apr 26 22:39:22 Ive tried >.< haha Apr 26 22:39:31 http://square.github.io/retrofit/ Apr 26 22:39:48 ok - so i'll try to explain Apr 26 22:40:58 Make an Interface called UserService with your method declared like this: void createUser(@Body User user, Callback callback); Apr 26 22:41:32 That is my UserClient interface Apr 26 22:41:45 Yes, call that UserService to follow standard naming conventions Apr 26 22:42:10 Done Apr 26 22:42:13 ok cool Apr 26 22:42:47 So next, you can create a class called UserClient which uses a rest adapter to create an instance of the service Apr 26 22:43:03 (Is it fine to have different services for different things, e.g. UserService, RecipeService, ImageService, etc? Apr 26 22:43:07 yes Apr 26 22:43:10 Cool Apr 26 22:43:17 Do not use 'implements UserService' in your client class Apr 26 22:43:19 So that UserClient should look like my UserService class did? Apr 26 22:43:37 i.e. do not override createUser in your UserClient class Apr 26 22:44:50 Right, so, basically, the part in my old createUser method? Apr 26 22:44:55 except the bottom line: Apr 26 22:45:39 yeah basically the "client"s job should be to create an instance of the "service" by using a rest adapter Apr 26 22:45:55 Ahh! Apr 26 22:46:01 theres' no reason to ever instantiate more than one "service", ie, never call restAdapter.create() more than once per application with the same RestAdapter Apr 26 22:46:21 Errr. Apr 26 22:46:25 How can I persist them then? Apr 26 22:46:31 Between activities? Apr 26 22:46:44 Most people use singletons Apr 26 22:47:07 Ahhh ok Apr 26 22:47:14 Is there an example of how to implement that anywhere? Apr 26 22:47:22 Also the 'UserService' class you pasted (which should be called 'UserClient') holds a reference to context - it should not Apr 26 22:47:31 Your'e not using the context in that class and it doesnt serve any purpose Apr 26 22:47:58 Yeah, I didnt remove that from before. Apr 26 22:48:01 I was trying something Apr 26 22:48:04 Decided not to Apr 26 22:48:11 Don't worry about the singleton thing for now - but just use RestAdapter.build() in your constructor and save it as an instance field in your UserClient Apr 26 22:48:20 ie, don't call .build() for every invocation Apr 26 22:48:31 but since you won't have the `createUser()` method, it shouldn't matter Apr 26 22:49:12 Should I delete the createUser method? Apr 26 22:49:16 yes Apr 26 22:49:32 the client should just create an instance of the service and than provide a getter method to allow your code that consumes the service to get the instance Apr 26 22:49:41 it's really just an abstraction that saves you 3 lines of code and is completely unnecessary Apr 26 22:50:08 if you're just learning you can drop the entire concept of a 'client' and just build the rest adapter / service in your activity Apr 26 22:50:09 brb Apr 26 22:53:57 I think I will need the Singleton implementation, because there are several activities which will need to use the service. Apr 26 22:57:19 JacobTabak: http://pastebin.com/DLpattNh <-- Method in my LoginActivity http://pastebin.com/MQVFNyqy <--- UserClient http://pastebin.com/ym2kbDZT <---- UserService Apr 26 23:06:23 do you know how people joke about dropping a mixtape Apr 26 23:11:09 Anthaas that looks good! Apr 26 23:11:48 registerUser should return void probably? Apr 26 23:12:26 Anthaas there's nothing unique about retrofit that would affect how you make a singleton Apr 26 23:12:30 Bad design on my part, I will change. It is used in an if statement further up, checks whether the call was successful Apr 26 23:12:47 i.e. the callback went into the success method Apr 26 23:12:48 Anthaas if it's async then there's no way it could know Apr 26 23:12:57 yeah, thats true :/ Apr 26 23:13:08 I need to handle failure such that the user doesn't move forward if the registration fails Apr 26 23:13:12 are you familiar with how to create a singleton Apr 26 23:13:36 JacobTabak: Vaguely, not had to do it myself. I know there are a number of debates around which to use, i.e. Lazy singleton, etc. Apr 26 23:14:09 Since your'e not using dagger, you should use an enum singleton with lazy initialization Apr 26 23:15:19 or w/e there are a million ways to do it Apr 26 23:15:21 it doesnt matter Apr 26 23:15:27 JacobTabak: I'll have to read up on that I think :/ Apr 26 23:15:45 sec ill make an example Apr 26 23:15:53 JacobTabak: Oh cool thanks :-) Apr 26 23:16:19 Anthaas: Note that a single static field is sufficient. You don't have to create some elaborate construct (e.g., a lazily initialised singleton that's thread-safe, etc.). Apr 26 23:17:12 The enum-instance implementation isn't elaborate; just meant that a lot of solutions out there are unnecessarily complicated for basic situations. Apr 26 23:18:32 * g00s is thoroughly confused with GridLayoutManager Apr 26 23:18:35 something like this http://pastebin.com/fxmEeQeh Apr 26 23:18:40 Yeah - I havent ever personally had to work with singletons Apr 26 23:18:57 seems like with all the recyclerview stuff, the just said "f%$# it" with the docs Apr 26 23:19:17 Then you can get the singleton instance with UserClient.INSTANCE.getService() Apr 26 23:19:26 is there something standard like Result so I could check the result code because T is pure data and cannot always indicate what happened Apr 26 23:20:33 JacobTabak: That makes complete sense. Thank you. Apr 26 23:22:23 JacobTabak: If the start of my API is, for example, www.mywebsite.com/api, this is the endpoint I pass to the RestAdapter, right? Apr 26 23:22:43 And the Service has @POST("/user/new") for anything specific. Apr 26 23:23:08 yeah but don't forget http:// Apr 26 23:23:10 or https:// Apr 26 23:23:17 oh yeah sorry, I have that Apr 26 23:23:41 you definitely don't pass in the last "/" to the endpoint - each method needs to start with "/" Apr 26 23:23:42 So should I make my UserClient.INSTANCE.getService's service a static field in my BaseActivity Apr 26 23:23:46 which is what you have done Apr 26 23:23:52 no Anthaas Apr 26 23:24:35 That wouldn't really benefit you at all Apr 26 23:24:36 Too heavy an object? Apr 26 23:24:52 no, a static reference has no weight Apr 26 23:25:38 I guess I would say don't do that because you don't want to just stick common functionality in an activity base class Apr 26 23:25:51 Unless it's used in literally every subclass Apr 26 23:25:59 Favor composition over inheritance Apr 26 23:26:17 You can easily access the service from anywhere using UserClient.INSTANCE.getService() Apr 26 23:26:25 so putting it in a base class really doesn't help you much Apr 26 23:26:27 Yeah, i guess Apr 26 23:26:32 Makes sense. Apr 26 23:27:09 By the way (please do not look into this now), Dagger solves this problem Apr 26 23:27:18 I hate LogCat's new behaviour in AS 1.2 RC1. :/ Apr 26 23:27:24 whats different TacticalJoke ? Apr 26 23:27:26 Yeah, Dagger seemed a big step too far for me right now Apr 26 23:27:40 Now the filter is "Show only selected application", and after my app crashes there is no selected application anymore. Apr 26 23:27:46 So as soon as my app crashes there is no filter anymore. Apr 26 23:28:04 The filter used to be the application ID. Apr 26 23:28:32 Then again, I guess I could create the old-style filter. Apr 26 23:29:15 but Anthaas with Dagger (and most DI frameworks) you basically just say "I need an instance of UserService" and then one is provided for you based on your configuration Apr 26 23:29:30 Your consuming code doesn't know or care where it came from Apr 26 23:33:08 That seems a lot easier haha Apr 26 23:35:01 JacobTabak: my registerUser is now void, as makes sense (I was getting to it after a small refactor from before after I realised my design was bad) Apr 26 23:40:57 what activity method is called when the user swipes my app away in the recent screens list? Apr 26 23:41:19 Has anyone here used the Super Recycler View library before? I'm trying to use the "moreListener" function for pagination, but it stops "getting more" after the first pagination... Apr 26 23:42:05 duncannz: What makes you think a method is called in that situation? I don't think anything is called. Apr 26 23:43:13 JacobTabak: With the set up that you have helped me with, is there any reason why I wouldn't get any callback? Apr 26 23:43:37 Anthaas: Its going into, and beyond registerUser() but no callback is being hit Apr 26 23:44:16 TacticalJoke: I have a "return to activity" notification that appears onPause(), but if the user swipes away the activity then I want this notification to disappear. Do you have any suggestions for doing this? Apr 26 23:44:37 Anthaas not sure, check logcat? Apr 26 23:44:58 JacobTabak: Nothing in there :/ Apr 26 23:45:14 Even through all Log levels Apr 26 23:45:15 nothing? or nothing useful Apr 26 23:45:27 Nothing except Log.d(...) that I have put in there Apr 26 23:45:48 yeah you're gonna have to figure that one out Apr 26 23:45:55 Haha :P thanks anyway Apr 26 23:45:57 duncannz: I'm not sure. AFAIK, when users swipe a task out of 'recent tasks', Android kills the process and no callbacks happen. Apr 26 23:46:05 I put Log.d in success and failure and neither were hit Apr 26 23:46:29 TacticalJoke that's not true if there's a service running Apr 26 23:50:18 duncannz you could look into creating a bound service that does that Apr 26 23:52:14 There is an AndroidManifest attribute for services called "android:stopWithTask". It's false by default Apr 26 23:58:28 how do I choose devices in DDMS? Apr 26 23:58:40 the tab I get is "Devices | logcat" Apr 26 23:58:47 not "Devices" Apr 27 00:07:33 any ideas? Apr 27 00:09:41 paulo_: Are you talking about Android Studio? Apr 27 00:09:49 yes. Apr 27 00:09:52 JacobTabak: Thanks for your help tonight, I really appreciate it. Ill work that other issue out tomorrow night I guess. Apr 27 00:10:02 Im off for the night guys - see ya! Apr 27 00:10:38 "Devices | logcat" just means they're both under the same tab. Apr 27 00:10:55 You can remove one with that "-->" button. Apr 27 00:11:19 The Android Studio RC fixes that messy UI, though. Apr 27 00:11:30 The device combo box is always at the top. Apr 27 00:11:30 TacticalJoke: ok. I'm trying to use method tracing. the guides tell me to choose my device, then the app. Apr 27 00:11:45 I can't seem to find where to choose the device/app Apr 27 00:12:01 Do you see the text "Devices" and a line underneath that? Apr 27 00:12:29 TacticalJoke: I don't think so Apr 27 00:12:40 paulo_: https://lh5.googleusercontent.com/-kmazOHRVFOo/UcEqJUQi7BI/AAAAAAAAO_8/vEfijlQDpC8/s1600/Screen+Shot+2013-06-18+at+7.44.01+PM.png Apr 27 00:12:44 I can upload a print screen if you want. Apr 27 00:13:26 TacticalJoke: found the --> arrow. Apr 27 00:13:55 TacticalJoke: thanks Apr 27 00:17:20 how do I get my logcat back? Apr 27 00:17:41 It should be on the right. Apr 27 00:17:47 A little icon. Apr 27 00:17:59 Yeah, it's a terrible UI. Apr 27 00:22:24 but some place like it Apr 27 00:27:59 do you guys put the private key for the app in its version control system ? Apr 27 00:40:53 Love it when you've spent days/weeks worrying about how you're gonna implement something and when you go to implement it it's obvious because you've spent days/weeks worrying about it. :D Apr 27 00:41:54 Has anyone worked with Google Calender API? Apr 27 00:43:36 TacticalJoke: was it formatting a TextView in markdown? because that's what I've been worried about for weeks haha Apr 27 00:44:23 Oh, no, but that's definitely on my worry list. :D Apr 27 00:48:43 lol concurrency bugs are the worst Apr 27 00:56:29 Hey everyone, just wondering: when I generate some fake contact data and send say, a text, is that text going to an actual person? Apr 27 00:56:38 i really hope not :D Apr 27 01:03:32 Hi all :D Apr 27 01:04:39 What's the best way to move from an Eclipse git based projet to Android Studio ? Apr 27 01:06:13 pain killers Apr 27 01:07:21 enyxx: I created a blank Android Studio project and manually moved everything over. Apr 27 01:07:46 so - there is this thing called the USB condom; i guess only power connection. Is there the opposite - where its only a data connection, but prevents charging ? Apr 27 01:07:58 Not sure whether it's the best way, but it's certainly a way during which you can make sure everything works and so on. Apr 27 01:08:12 Hey guys, when making a List() do I have to provide the identified Apr 27 01:08:14 identifier Apr 27 01:08:19 Like List Apr 27 01:08:27 drose379: You don't have to but you should. Apr 27 01:08:34 what if I have a list with things other then a string in a list? Apr 27 01:09:23 If you don't specify the type then it's the same as List. But you should always specify the type. The only reason you can refuse to specify the type is backwards compability with old Java code (from a time when Java didn't have generics). Apr 27 01:09:39 Hm,ok Apr 27 01:09:57 But what would you do if you wanted to save items other then say a String in a list? Apr 27 01:10:13 You could use a higher-up type (such as Object). Apr 27 01:10:25 Why do you want to do that, though? Apr 27 01:10:33 I need to send data to my server Apr 27 01:11:02 Strings for basic stuff Apr 27 01:11:15 Then JSONArray for items that have multiple values Apr 27 01:11:44 TacticalJoke: hmm ok thanks ^^ i'll do that i think ^^ Apr 27 01:11:57 are you intending to just cast it when you are receiving it back from the server? Apr 27 01:12:32 TacticalJoke wheres my APK :D Apr 27 01:13:29 Doh! Apr 27 01:13:53 ?? Apr 27 01:13:56 I should send soon. Hmm. Apr 27 01:14:04 Yes! Apr 27 01:14:06 Sorry, I keep going on tangents and forgetting. Apr 27 01:14:17 Not a problem Apr 27 01:14:29 My Razr HD (XT926) won't boot, it stays on the droid eye animation forever. It is rooted but not unlocked bootloader. I was able to boot into a mode (can't remember the name) that gives me ADB access. I adb pulled my /sdcard/, now i want to pull /data/data/ Apr 27 01:14:32 I'm a perfectionist, so it's mentally painful sending out unfinishes stuff. :[ Apr 27 01:14:35 But it'd be a good idea to. Apr 27 01:15:06 if I type "su" in shell, it just starts repeating whatever I type Apr 27 01:15:06 drose379: About your issue -- would it make sense to have two different methods? Apr 27 01:15:48 Not for what im doing TacticalJoke Apr 27 01:15:53 i think it's because SuperSU is waiting for me to confirm, but of course I can't do that Apr 27 01:15:57 It needs to be a one time shot Apr 27 01:16:27 sypwn off topic for this channel Apr 27 01:16:43 then where is it on topic? Apr 27 01:16:53 see topic :) Apr 27 01:16:58 drose379: You have a List and a List? Apr 27 01:17:13 #android-root? Apr 27 01:17:19 probably Apr 27 01:17:28 Maybe also #android (though not sure). Apr 27 01:19:22 No I have a list with Strings and JSONArrays in it Apr 27 01:20:00 But... android-dev has the smartest people :( Apr 27 01:20:19 g00s: i saw a wearable pseudo-smart device that i am maybe sorta might be thinking about buying maybe Apr 27 01:20:23 drose379: Are they all going to be eventually put into a JSON object? Apr 27 01:20:34 If so, I guess your code could simply do that. Apr 27 01:20:48 bankai_ well, which one :D Apr 27 01:21:04 one of those garmin waterproof tri watches Apr 27 01:21:13 ohh, man those are expensive Apr 27 01:21:24 330 i saw them for Apr 27 01:21:26 * g00s <3 my forerunner Apr 27 01:22:50 did MS update the band last week , thats also a neat one Apr 27 01:23:22 i did a half marathon yesterday and i swear every other person had a garmin something beeping away haha Apr 27 01:23:34 :D Apr 27 01:23:42 they should be pretty good in water Apr 27 01:23:45 so, obviously, i have to have one too ;) Apr 27 01:25:35 bankai_ to get the most out of it, keep the battery between 40-80% - i don't think they are replaceable Apr 27 01:25:57 full charge for race Apr 27 01:26:15 oh really? what's the projected life for them? Apr 27 01:26:59 i had mine for a few years, but ultimately died because of the battery Apr 27 01:28:02 oh well maybe something awesome will replace it and i'll want something new before it dies Apr 27 01:30:03 bankai_ also not sure if they stillhave 2 different heart rate straps - one kinda sucks Apr 27 01:30:16 i went through a few of those actually Apr 27 01:30:35 one is very comfy low profile cloth, the other is a crappy plastic one Apr 27 01:32:13 but yeah, i beat the hell out of my garmin for years and it was all good :D Apr 27 01:36:05 ffs, google isn't helping one bit Apr 27 01:36:27 how do I copy something from /data/ using su in shell? Apr 27 01:36:53 wow, watch -n1 adb shell dumpsys meminfo is so convenient for detecting memory leaks. Didn't use that tool before for some reason Apr 27 01:38:59 sypwn: su -c cp /data.... Apr 27 01:46:12 icedp: https://dl.dropboxusercontent.com/u/7670706/Images/03/Screenshot%202015-04-26%2021.44.48.png Apr 27 01:47:09 so then, syntax isn't the issue Apr 27 01:49:17 well do you grant root permissions? you can just type su and press enter Apr 27 01:49:20 grant permission Apr 27 01:49:33 and run usual commands Apr 27 01:49:54 phone won't boot, this is a recovery mode Apr 27 01:50:06 phone screen right now shows the droid boot eye Apr 27 01:51:19 so i need a way to bypass the SuperSU popup using only shell Apr 27 01:51:38 i'm guessing it's not possible Apr 27 01:52:45 sypwn, you're in the wrong channel for these questions Apr 27 01:52:56 well, no one is in the other channels Apr 27 01:53:03 then try #cake Apr 27 01:53:10 and icedp is helping me Apr 27 01:54:25 all, I'm having an issue implementing backupAgentHelper class Apr 27 01:54:31 the onCreate method is never called (at least from within debug view. I also added a log message which I never see Apr 27 01:54:37 Here is the backupAgentHelper class: http://pastie.org/10115428 Apr 27 01:54:45 I made the appropriate changes in my manifest: http://pastie.org/10115429 Apr 27 02:20:39 Hello. I have an app that plays binary as a signal. It uses AudioTrack and AudioManager for that. I need to move that to an external service. Do I need to use MediaPlayer as a lot of sources recommend for Service, or that would be redundant and AT with AM will do just fine? Apr 27 02:42:17 groxx you there ? Apr 27 02:45:17 g00s: how can I scan in the background even if phone sleep (screen black) ? is powerlock my only option ? Apr 27 02:45:39 Marlinski service with partial wakelock Apr 27 02:45:49 partial means ? Apr 27 02:45:55 cpu, not screen Apr 27 02:46:06 cpulock ? Apr 27 02:46:40 google "partial wakelock" Apr 27 02:46:51 PARTIAL_WAKE_LOCK Apr 27 02:46:55 just done it thanks :) Apr 27 02:56:02 Anyone recommend a online androids multi language ide hosted in the cloud like c9.io with a droid app for remote working? Apr 27 02:59:55 ronkrt: Not aware of such a thing, why would you want a cloud IDE? **** ENDING LOGGING AT Mon Apr 27 02:59:59 2015