**** BEGIN LOGGING AT Mon Mar 24 02:59:59 2014 Mar 24 03:12:25 hi! Mar 24 03:13:02 JakeWharton: has anything changed about robolecric gradle support ? Mar 24 03:13:29 sorry for bugging Mar 24 03:15:09 gordon_: Not really. The Pivotal guys forked my plugin but made it worse. Mar 24 03:17:52 eh... Mar 24 03:19:39 sup guys Mar 24 03:21:25 can somebody look @ this, and tell me why my webserver is acting like it's not receiving the proper cookie? (even though the Login activity before it can do two urlConnections and get back the proper JSON responses?) http://pastebin.com/en9EQQR6 Mar 24 03:24:19 I can see my additional headers in getRequestProperties() Mar 24 03:24:27 but they don't show up in getResponseHeaders() Mar 24 03:24:32 what the hell? Mar 24 03:42:57 Had anyone got details of Google I/O 2014 yet? Mar 24 03:50:43 It's in June Mar 24 03:50:48 24th or something Mar 24 03:51:16 25th Mar 24 03:55:00 hi, I've met a weird problem, I choose to use dagger/butterknife for object injection. And it do injected the Views. But failed to inject the Context and Otto Bus, anyone have a quick hint? Mar 24 03:55:17 hint: show code Mar 24 03:56:01 did you add a Context and Bus to the object graph? Mar 24 03:56:22 what exact behavior is "failed to inject"? null? exception? Mar 24 03:57:04 JakeWharton: null Mar 24 03:57:29 Yes, i have attachBaseContext in Application. Mar 24 03:58:16 and inject the BUS in baseActivity, which is inside a @Module Mar 24 03:58:55 it's okay when I used the maven for build before, then I met this problem when migrate to gradle. Mar 24 04:00:28 I'm using the dagger 1.2.1 and butterknife 4.0.1 Mar 24 04:00:50 need to see code Mar 24 04:01:45 thanks, 1 senc Mar 24 04:04:28 https://www.dropbox.com/sh/r4ot9836bsc7d5t/uNYa2nNTkx Mar 24 04:06:39 as it worked in maven, can we see your build.gradle? Mar 24 04:07:19 https://www.dropbox.com/s/acj6a4x79dzyj6m/build.gradle Mar 24 04:10:15 tried dagger-compiler as provided not apt? Mar 24 04:12:20 are you actually injecting the baseactivity into the application graph? That's usually the first reason for null Mar 24 04:12:34 alex_PP: Module adapter for class com.globalwebhq.perfectkiss.RootModule could not be loaded. Please ensure that code generation was run for this module. Mar 24 04:12:44 *null values Mar 24 04:15:13 oh well Mar 24 04:15:18 yeah, it seems that was not inject to the object graph.. Mar 24 04:15:56 what's wrong with it? It crashed at ObjectGraph.create(rootModule); Mar 24 04:16:49 alex_PP: finding? Mar 24 04:23:26 i am trying to use tabs with my ActionBarActivity however the tabs are not appearing. im wondering if i have missed something. code here: http://pastebin.com/DczjG5yp Mar 24 04:24:03 don't you need to set a mode? Mar 24 04:24:25        setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); Mar 24 04:24:26 f2prateek: that for me? Mar 24 04:24:42 teasp00n: yup Mar 24 04:25:03 f2prateek: yeah that seems legit i'll try that. cheers Mar 24 04:26:47 JakeWharton: so for tests only maven is possible for now ? Mar 24 04:26:55 f2prateek: is that for android.support.v7.app.ActionBarActivity ?? Mar 24 04:27:01 as tests I mean robolectric, sinve instrument tests are joke Mar 24 04:27:15 f2prateek: doesn't appear to be part of the api.. Mar 24 04:27:26 Gradle is perfectly capable of doing it, it just requires a bit of work Mar 24 04:28:09 I haven't ever used the support one but I assume the call would be getSupportActionBar().setNavigationMode(.....) Mar 24 04:28:10 I will look later at that Mar 24 04:28:25 is github project still up-to-date ? Mar 24 04:29:08 how are instrument tests a joke? Mar 24 04:29:30 the junit3 aspect is the biggest negative Mar 24 04:30:55 f2prateek: you are totally right, was looking at the wrong thing. thanks Mar 24 04:31:58 f2prateek: that's working now. thanks again Mar 24 04:32:11 pfn: and the fact that they require an entire emulator spun up Mar 24 04:32:51 if you're using them for integration or acceptance tests then that's fine Mar 24 04:33:01 a very acceptable tradeoff for full testing Mar 24 04:33:14 I am not a fan of stringent unit tests Mar 24 04:33:31 who needs to test logic anyways? Mar 24 04:33:31 it's integration that always concerns me Mar 24 04:34:02 tested as part of integration in any case Mar 24 04:34:32 on a high level Mar 24 04:34:37 also, idgaf Mar 24 04:47:27 pfn: tey are super slow ? Mar 24 04:47:57 not that slow, takes a few seconds to start but they run reasonably fast Mar 24 04:48:08 pfn: I'm tired of having gazylion integration tests Mar 24 04:48:13 in big application Mar 24 04:48:18 gives me bad memories Mar 24 04:48:28 I want a lot of small unit tests Mar 24 04:48:46 and less integration tests Mar 24 04:49:06 now most errors I get are null pointers Mar 24 04:49:09 from server Mar 24 04:49:14 so, yeah Mar 24 04:51:36 my problems are rarely logic issues, always integration Mar 24 04:57:47 well, thanks for all, problem solved. STUPID ME... Mar 24 04:58:51 in the BaseActivity, I should use Injector.inject(this) for object inject, but I used butterknife.inject instead ... Mar 24 04:59:18 ButterKnife has nothing to do with dependency injection Mar 24 04:59:26 it's boilerplate reduction for views Mar 24 05:00:16 yes, thanks for this. every time I need to inject, I should use dagger, lol Mar 24 05:25:53 g00s: u here? Mar 24 05:26:20 anyone have experience creating android services? Mar 24 05:26:45 i think im finally at the point in my project where i need to implement a service Mar 24 05:29:52 This code causes my app to crash on start : http://pastebin.com/tmnWSV7H Mar 24 05:30:24 Suppose I want to 'intercept' a bluetooth device communication, and prevent it from transferring to the system entirely. I have a handle on the BluetoothDevice, but I don't think it wants to give me what I'm looking for. Suggestions? Mar 24 05:30:37 First time trying to save data to a file... I think I'm doing it wrong. Mar 24 05:31:21 The save code doesn't cause the app to crash but the load code does Mar 24 05:33:41 Redmega, you're opening a file for reading, and for every character in the file, you're reading it as an integer, and dumping it into thin air Mar 24 05:33:56 and, to boot, closing immediately after Mar 24 05:34:04 Oh, whoops... Mar 24 05:34:22 move the fis.close() outside of the for statement, and try reading a buffer, rather than a single digit Mar 24 05:37:00 What should the buffer be initialized to Komak57? Mar 24 05:37:51 Or am I misunderstanding the android developers site :s Mar 24 05:39:44 there's no reading as int, but that paste looks horrible. what is mNames and how does that correspond to reading, and yes about the close Mar 24 05:40:15 mNames is an array of strings, I am reading the array saved as a file Mar 24 05:40:30 Sorry, this is the first time I'm messing with file saves and whatnot Mar 24 05:41:34 fis.read() should return '\0' when it reached end of file Mar 24 05:42:32 This is my output stream http://pastebin.com/J9eLyaWF Mar 24 05:42:34 well the fis.close() kills that Mar 24 05:42:54 Redmega: where is the tutorial u r following? cuz that paste is a mess! Mar 24 05:43:11 http://developer.android.com straight from there. Maybe I'm just misunderstanding Mar 24 05:43:43 Is my output correct at least? Let's start from there... Mar 24 05:47:16 Actually upon re testing, the output stream causes the app to crash as well...... Can anyone link me to a tutorial for saving data to file? Mar 24 05:48:43 Redmega: how long u been coding java? cuz seems only within passed 8hrs. Should do some googling&reading&understanding... sorry but that's where i see u as being Mar 24 05:49:30 It's true, I took a class last semester but I didnt practice since then. Now I'm working on a project to get back into the groove. Mar 24 05:50:37 google more, you'll get it. just reading a file based on an array of whatever's length seems weird. should read data and do whatever with it. no read data based on number of characters in a string Mar 24 06:07:19 Anyone knowledgable on how to intercept/override the bluetooth driver? Trying to handle a PS3 controller manually Mar 24 06:07:36 By default, it wants to run as a keyboard. Mar 24 06:10:51 canvs2321: is this better? http://pastebin.com/Zvm01qwi Mar 24 06:13:00 Redmega, better, not sure if you wanted the JSON parser after reading Mar 24 06:13:17 well, at all i mean Mar 24 06:14:34 I pulled most of the code from a project I did back when I was in the android class... Figured I needed it for writer. Let me look up the documentation on that then, thanks Mar 24 06:17:41 Depends on what you want to do with the data at that point Mar 24 06:18:29 On line 30, you have jsonString which contains the full document you just read. Mar 24 06:23:09 Exactly. So I need to parse it to fetch the different names... Mar 24 06:55:40 So much research, so very few results. Having vague difficulties determining if a paired device is connected (without testing of course), and having difficulties intercepting the stream data. Are there any open source Android/Linux PS3 drivers I can look into for tips? Mar 24 06:56:37 Also trying to determine what signal to send the device to kill the blinking lights Mar 24 06:58:25 Good morning.. I wonder if anyone could help with a piece of code that puzzles me a bit. I am trying to convert some bbcode to display in my webview but not all tags are converted : http://pastebin.com/yejPqdr8 Mar 24 06:59:03 how bad is it if I register my packages as foo.ca.blahblah instead of ca.foo.blahblah? Mar 24 06:59:51 the package doesn't matter Mar 24 06:59:55 it just needs to be unique Mar 24 07:41:47 How can I clear the shared preferences of my app on shutdown? Mar 24 07:44:18 there is no shutdown, that you control anyhow ;) Mar 24 07:46:35 I do believe onDestroy is called when shutdown kills your apps, but not 100% sure about that Mar 24 07:47:51 lgp171188, app shutdown or device? Mar 24 07:48:52 alex_PP, device shutdown Mar 24 07:48:57 oops, sorry :) Mar 24 07:52:50 Ok Mar 24 07:52:55 Hi, Mar 24 07:53:40 Is it just me ? I have the strangest thing. Two buttons on a screen. And a text view. when appending text in my code to the textview it goes to the button text... Mar 24 07:54:09 (0)(0) Mar 24 07:54:20 i'm shocked. Mar 24 07:54:40 Of course i'm sure if I completely redo the project everything is going to be just fine. Mar 24 07:54:50 but this is scary. Mar 24 07:54:56 lol Mar 24 07:55:53 It alls started after moving things around on the graphical layout in eclipse, a facility that seems to be buggy. Mar 24 07:57:26 Sounds like you have mixed up some view IDs. Have you looked at the layout xml as text? Mar 24 07:57:34 ^^ Mar 24 07:58:32 yes, but let me have another look. Mar 24 07:58:50 I don't see any mixup there. Mar 24 08:00:15 nope. Mar 24 08:00:27 textView = (TextView)findViewById(R.id.textView1); and that is the id in the xml... Mar 24 08:00:56 yet appending text to it it goes to the text of a button. Mar 24 08:01:19 I dunno if I should laugh or cry. Mar 24 08:01:23 lol Mar 24 08:01:46 Just redoing everything will of course fix this, but I cant have this crap good lord. Mar 24 08:02:11 android:id="@+id/textView1" Mar 24 08:03:09 Unknown0BC, that IS the only item with that particular id, right? Mar 24 08:03:48 Komak57, yes. Mar 24 08:04:14 (0)(0) Mar 24 08:05:24 Woke up this morning and I realized my device' IMEI number has changed? What? How is this possible? I didn't do anything. Mar 24 08:05:59 Unknown0BC: Do you have a whole lot of code, or could you paste the xml and code that uses the view through pastebin? It might make it easier to help you. Mar 24 08:05:59 something "underlaying" and not accessible via code ( xml or .java ) seems to have gone wrong with this project. Mar 24 08:06:16 Unknown0BC: restart eclipse, look again. Mar 24 08:06:47 Once in a while i'll get some weird memory error where R. data is mixed up. Mar 24 08:07:00 Usually R.id's Mar 24 08:07:20 Don't remember the other things I use to do to fix that Mar 24 08:07:45 Thorbear, I do have a lot of code all over, but the point its not in the code. Mar 24 08:08:00 nor the xml Mar 24 08:08:48 And a restart of eclipse solved the problem. Mar 24 08:08:55 ^5 Komak57 Mar 24 08:09:05 ~stares at your hand blankly~ Mar 24 08:09:30 hahah ok well thanks. Mar 24 08:10:05 it's 4AM, should have dropped this project and been in bed hours ago. Been playing too much with unity lately, and my android programming skills have gotten a tad rusty Mar 24 08:15:28 So ive got a sql db and each row has a long auto-incrementing id, float CurrentValue, and 3 string values. So my users will be changing the float value frequently and I am trying to figure out programattically, the best way, or really anyway, of saving the old float and a timestamp for retrieval and manipulation Mar 24 08:16:55 i hope this makes some sense, all i can think of is to add another column to my table that is a String, and then just append the timestamp and old float value to the string along with a deliminating character and then each time the float changes the string will just get longer and longer and i would just write logic to parse the long ass string and seperate it into values Mar 24 08:19:08 n.e.1 with 320+dp wanting to check a virtual pendulum? arno-nuehm.square7.ch/and/firsttry.apk Mar 24 08:30:30 the4ndy, a second table with id, value & timestamp? Mar 24 08:30:42 keep adding rows everytime the value changes Mar 24 08:31:16 selec t* from tblHistory where id = *the id you care about* order by timestamp desc Mar 24 08:31:57 if you find yourself wanting to add a delimiter in a data base, add another table that references the first Mar 24 08:32:18 this is what databases are for Mar 24 08:35:28 ok that makes sense alex_PP Mar 24 08:36:06 ill try that Mar 24 08:36:34 OxFEEDBACC i downloaded and tested your app Mar 24 08:36:47 anything you want me to do, im uploading a couple of screen shots i took running it Mar 24 08:37:04 i know it crashes on exit (green button)... Mar 24 08:37:05 Im using a Nexus 5, i think i have 400+ dp Mar 24 08:37:13 yeah the green button force closes Mar 24 08:38:30 nothing i expect you to do... would just like to hear opinions... :-/ Mar 24 08:39:34 http://imgur.com/dxJKO0c,gNWbbkj Mar 24 08:40:03 those are the two screens i took before hitting the green button Mar 24 08:41:13 yeah, that's my baby :- Mar 24 08:41:15 :-D Mar 24 08:41:51 i can assume its some form of compass slash just a reading of a bunch of sensors Mar 24 08:42:33 After maybe 20 seconds app hangs or freezes and then maybe 4 or so seconds later it goes crazy with animations Mar 24 08:42:48 this seems to continue as i use the app Mar 24 08:42:52 it's not so clear, but the "+"/"-" buttons control the friction... the value of which is shown in row two, left column... Mar 24 08:43:10 what? hangs/freezes? Mar 24 08:43:14 like the whole thing Mar 24 08:43:17 never did that here :-( Mar 24 08:43:25 the numbers stop changing and the graphics stop moving Mar 24 08:44:49 two weak points are: when gravity is to the top of the device (i. e. device like upside-down), it isn't calculated properly... Mar 24 08:45:14 and if it is like flat on the table, the yellow bat may disappear... Mar 24 08:45:35 when it crashes i need to force close it to be able to start it again Mar 24 08:45:41 1. is the typical quadrant problem of atan() Mar 24 08:46:12 second is probably a value going to INF that i don't catch (yet) Mar 24 08:46:44 but i never saw it crash... Mar 24 08:46:50 or hang Mar 24 08:47:53 i cant get it to stop moving any more Mar 24 08:48:16 so i guess that was just my phone Mar 24 08:48:19 try to press the orange button to reset... Mar 24 08:49:00 yeah the orange button brings the yellow bar to the botttom of the circle Mar 24 08:49:05 i should have labelled it :-/ Mar 24 08:49:54 the + and - are changing the value in the 2nd row left side as well, im not sure what the effect should be, it seems to slow down the movement of the yellow bar Mar 24 08:50:20 [09:43:16] it's not so clear, but the "+"/"-" buttons control the friction... the value of which is shown in row two, left column... Mar 24 08:51:06 lower it, then the yellow bat will keep more of its pulse... Mar 24 08:51:39 right i didnt know what you meant by friction Mar 24 08:51:48 (raise it above 1.0 and the app will behave undefined) Mar 24 08:51:55 true Mar 24 08:52:11 im also getting force close when i touch the notifcation shade area of my app Mar 24 08:52:15 the app* Mar 24 08:52:20 of my screen in the app Mar 24 08:52:43 it's my first try at all with both android API and java... and i didn't work on catching all errors yet... Mar 24 08:53:10 "notification shade area"? Mar 24 08:53:38 k, think i got it... Mar 24 08:53:58 i didn't implement a global onPause() handler... Mar 24 08:54:23 so it stops when interrupted... should be the same issue as the green button... Mar 24 08:57:59 sorry i was trying to screen record the isse Mar 24 08:58:30 if i pull down the notification shade, or even touch it or get too close and i assume activate the listener for it, then the app crashes Mar 24 08:59:39 heres the video if you want to see it https://vidd.me/rEV Mar 24 08:59:43 as i said, that's probably because the system pauses the app, but it has no onPause handler... Mar 24 08:59:52 i guess though you already know the issue Mar 24 08:59:57 true Mar 24 09:01:48 I dont always implement an onPause or an onResume in my apps but going home and coming back works fine....it just calls the onCreate again and in the proccess i think it kills a bunch of stuff in the activity and restarts portions of the activity Mar 24 09:02:29 okay, that sounds reasonable... Mar 24 09:02:50 or at least thats what i understand, so am i missing something? Do you NEED an onPause and onResume or do you use like Threads or Handlers or something that needs onPause and onResume (not that those need them, im just guessing) Mar 24 09:03:11 because i'm wrapping all the UI stuff in a custom class uic Mar 24 09:03:23 ah, ok Mar 24 09:04:42 what is the app for? are you just practicing android development or are you testing certain APIs or do you plan to make a compass app of some sorts? Mar 24 09:04:51 those uics are then parented with their respective upper levels, and crash when the are re-parented... i saw logcat spitting such a message at me... Mar 24 09:05:26 two of your guesses are correct :-D Mar 24 09:06:10 i was just looking how to do it at all... then i was also checking how to read sensors... Mar 24 09:06:25 are u praticing android dev by making a compass app Mar 24 09:06:38 maybe i will make a game from it... nothing with compass though... Mar 24 09:07:14 o Mar 24 09:07:38 am i reading a missing "k"? :-D Mar 24 09:37:40 so whenever I launch monkeyrunner it freezes my whole X window session (sorta, the mouse still works, nothing else does) Mar 24 09:38:07 anyone else have this issue? Mar 24 09:40:46 try to launch with reduced privileges :) Mar 24 09:40:54 nice, renice Mar 24 09:42:30 x window session on android? (i know it exists, just curious about wether monkeyrunner runs under X) Mar 24 09:44:03 No, im running it on my computer Mar 24 09:44:06 on arch Mar 24 09:44:09 not on a pone Mar 24 09:44:12 phone Mar 24 09:45:47 oh, emulator i guess... Mar 24 09:48:15 I just doubled clicked on monkeyrunner Mar 24 09:53:36 I am new to android application development. I am in the process of developing my first app using Eclipse ADT. What all should I put under version control? Mar 24 09:55:44 lgp171188, why are you using eclipse ADT when you are new Mar 24 09:56:05 IntelliJ is a better IDE imho and android studio is fairly stable as is Mar 24 09:56:23 we are using AS as our IDE for production Mar 24 09:56:52 lemonxah: I use Eclipse for my Java development work. So I just installed the ADT plugin to use it for Android dev work. Mar 24 09:58:24 i would use IntelliJ for my java dev work aswell :) Mar 24 09:58:56 but i understand what you mean, i dont know how well the gradle plugin is integrated with Eclipse so i cant tell you what should be checked in Mar 24 10:00:58 hahahahaaaaaaaa... my IDE is a dusty kate 2.5.10 and even so dusty zsh 4.3.10 :-D Mar 24 10:41:16 Hello! I notice that when overwriting onDraw of a Button subclass I still get the Button being drawn as usual, even if I don't call super.onDraw. Can I disable that? Mar 24 10:44:11 hello Mar 24 10:44:23 I'm having smoe issues with MediaRecorder Mar 24 10:45:18 the doc for the function setCamera says I must call before .prepare() and I must do camera.unlock(). I did that but I still get IllegalStateException unless I call setCamera right at the beginning of initializing the MediaRecorder object Mar 24 10:45:26 is there any way to avoid this problem? Mar 24 10:46:12 or rather... my main issue is that I want to prepare a recorder while another one is running s.t. I can switch between recordings as seamlessly as possible - i.e. make 2 files that if joined would look like a continuous video Mar 24 10:46:21 has anyone tried something similar? Mar 24 10:48:24 just wondering if someone could please possibly help me for a min, trying to stop my service that takes a photo, on the logcat i have that broadcast reciever is leaked, got my code sort of working, but adding in a control im doing something wrong still, cant see where i need to edit http://pastebin.com/4NmmQ49R Mar 24 11:20:23 can someone please help me unregister my reciever here http://pastebin.com/8niuDjq5 ? Mar 24 11:22:35 mhmm.. does anyone know why this (when starting the service multiple times with an alarmtimer) always return Thread alive and running even when the thread is no more in the loop? http://pastebin.com/324BzvSL Mar 24 11:27:01 Hey guys? Mar 24 11:28:41 Small question, say I wanted to convert a byte array to a string (Because that's what my payment portal wants) Mar 24 11:29:00 what encoding does the byte array have? Mar 24 11:29:22 utf-8 Mar 24 11:29:34 let me answer it the java way Mar 24 11:30:21 I'm encrypting with sha-256 and I'm not sure if it'll screw up if I do DatatypeConverter.printHexBinary and then just return string(bytes). Mar 24 11:30:27 ...Oh, wait. Mar 24 11:30:28 LOL. Mar 24 11:30:37 Sorry, that was what I WANTED to use. Mar 24 11:30:41 sha-256 is not encryption Mar 24 11:31:03 It's a one-way hash. Mar 24 11:31:05 Hi, Could someone, please, make a small, but a big favor for me? If you have a working Eclipseinstallation, please, could you tell which java version, Eclipse version and which plugins do you use? I have huge trouble getting anything to work. I tried Eclipse 4.3.2, 4.4M6 and android-eclipse bundle. I tried Java 6, 7 and 8. I want instasearch/quicksearch, codepro tools, adt plugin, eclipse memory analyzer and font feature plugins Mar 24 11:31:28 The fact that I don't know that kinda makes it clear why I'm here asking questions, though. Mar 24 11:31:56 IndiumIndeed, not a troll - I found intellij idea to be much better, you should try it Mar 24 11:31:58 SHA-256 is accurately a one way lossy compression function. One-way encryption and hash both apply to it as well Mar 24 11:32:15 Ah. Mar 24 11:32:41 Well, I can't find the java way of decoding a byte array into a string. I have to admit, I did that the last time when Java 1.1.2 came out Mar 24 11:32:42 Well, I guess in short, provided I do public static String byteArrayToString(byte[] bytes) and return a string to the hashing function, nothing's going to bite me in the ass, yes? Mar 24 11:33:06 you want to give a bytearray to a hashing function Mar 24 11:33:22 The byte array's already been digested. Mar 24 11:33:30 Now I want the string representation. Mar 24 11:33:30 then you have bytes Mar 24 11:33:53 ohh, so you actually want bytes as hex digits or base64 or ascii85 or base32 or whatever is in your specs Mar 24 11:34:09 Voicu: I used intellij for couple of months, but I have 3 problems with it: A) Android deployment is slow (I read somewhere that Eclipse caches compiled classes), B) Profiling android not to my knowledge supported as well as eclipse C) my project stopped working after a while, seemed to work back in eclipse with the same code. Mar 24 11:34:20 mlehmk, new String(byteArray, "UTF-8") Mar 24 11:34:22 Indeed. Mar 24 11:34:31 throws UnsupportedEncodingException if the encoding is unsupported Mar 24 11:34:44 sonOfRa: Ohh thanks. That's what I was looking for, but Immaterial doesn't really need. Mar 24 11:34:47 I set up a try and catch for that. Mar 24 11:35:03 However, since all JVMs must support UTF-8, it is safe to wrap that exception in a runtime exception, and fall over backwards if that ever gets thrown Mar 24 11:35:09 Also nosuchalgorithm because that was also giving me hell. Mar 24 11:35:24 IndiumIndeed, in my experience intellij is faster on deploy, I guess it depends on the project. About the code not working, yes, it's a little more difficult to setup, I had problems too but with a little more effort all were fixable Mar 24 11:35:49 IndiumIndeed, anyway, use eclipse if you want, I was just suggesting it in case you didn't know about it Mar 24 11:35:52 Voicu: well I am using Libgdx, not sure if related to that Mar 24 11:35:56 sonofRa, so new String(myByteArray, "UTF-8") should do me fine? Mar 24 11:35:58 at http://stackoverflow.com/questions/9655181/convert-from-byte-array-to-hex-string-in-java the answer from Pointer Null is the cleanest I think so far Mar 24 11:36:14 Ah, thanks mlehmk. Mar 24 11:36:22 I really appreciate the help. Mar 24 11:36:34 I would be happy with Eclipse, if I get it to work properly that seems difficult though. Mar 24 11:36:50 it's silly, as the lack of basic thing in frameworks lead to WTFs Mar 24 11:37:16 Don't even get me started on eclipse. Mar 24 11:37:20 as people write their own algorithms and that badly for things the framework already provides cleanly Mar 24 11:37:31 I spend more time working out eclipse bugs than I do developing. Mar 24 11:38:01 there is http://commons.apache.org/proper/commons-codec/ for these things though Mar 24 11:38:07 if you don't mind their licensing Mar 24 11:38:26 Ah, I....actually think I already have that in libs. Mar 24 11:39:02 I'm coming from the C# world and there is a BitConverter class for stuff like encoding a byte array to base16 Mar 24 11:39:23 actually, C# has at least 3 different ways to make hex from bytearrays Mar 24 11:39:24 Yeah, see javax has DatatypeConverter, but. Mar 24 11:39:35 I have had also my battles with Eclipse, it is hell, but when it works, I think it is better than intellij. Unfortunately times when it works are not so common. Mar 24 11:40:07 I spent like three hours getting errors because it was refusing to update. Mar 24 11:40:38 "Please?" Mar 24 11:40:39 http://dragonsaga.gsquare.com/files/attach/images/146/904/133/aed7af495f59035cb6041b6eebdac65a.jpg Mar 24 11:41:30 Immaterial: hahaha i knew you were aussie just from your 'but' suffix Mar 24 11:41:43 Well I have used probably month of my life with battling Eclipse problems. But it did not look that much better in Intellij to me. Maybe I have to try Netbeans, but I think it also does not have as good Android support as Eclpse. Mar 24 11:42:14 Android studio's not entirely terrible? Mar 24 11:42:41 Lul, that I am bankai_ Mar 24 11:42:52 QLD ? Mar 24 11:43:07 Android studio does not support (to my knowledge) Java Application compiling, which I need. Mar 24 11:43:46 nuh they stripped that out, gotta use IJ for that Mar 24 11:44:17 bankai_, used to be. Moved to victoria. Mar 24 11:44:24 You? Mar 24 11:44:32 Intellij seemed fine, while I was using it for Android Application development. Going to Android not so so. Mar 24 11:44:51 my condolences :P former vic, current qld :) Mar 24 11:45:36 Haha, compared to brisbane man. Mar 24 11:45:45 Melbourne's not bad at all. Mar 24 11:46:07 Compared to mount isa, they're both fucking shrines. Mar 24 11:46:26 people still live there? :S hehe Mar 24 11:47:01 How is Melbourne traffic situation? I got that impression that people spend a lot of time in the traffic jams. Mar 24 11:47:02 can someone please help me unregister my broadcast receiver? http://pastebin.com/8niuDjq5 Mar 24 11:48:07 Bad, actually. Mar 24 11:48:16 But the public transport's worse, so what can you do. Mar 24 11:48:33 I can either drive or get grinded on my an elderly asian woman for an hour in the morning. Mar 24 11:49:06 While I've been led to believe she'll love me long time, it's still uncomfortable. Mar 24 11:49:37 I'm gonna try again: has anyone attempted (and maybe succeded) to init a MediaRecorder while another is running? Mar 24 11:49:47 i.e. switch between 2 recordings seamlessly Mar 24 11:50:18 No, what issue is arising? Mar 24 11:51:06 Immaterial, either the .prepare method fails with InvalidStateException, the camera fails to lock or a combination of those Mar 24 11:51:28 I can't find a way to set it up so I can just to .stop on the old recorder and .start on the new one Mar 24 11:51:41 without releasing the camera and recreating everything from scratch Mar 24 11:52:00 If you're not freeing up the resource, I can't see why it would work, then? Mar 24 11:52:14 can someone please help me unregister my broadcast receiver? http://pastebin.com/8niuDjq5 Mar 24 11:52:37 Immaterial, so it is not possible to have the camera shared between 2 MediaRecorders in any way? Mar 24 11:52:48 Immaterial, I haven't foudn a definite answer regarding this Mar 24 11:53:25 Not as far as I know, no. Mar 24 11:54:01 What you could do is maybe release the camera and then join the footage seprataly afterwards, so the output kinda makes it look seamless? Mar 24 11:54:04 Even when it's not? Mar 24 11:54:14 To be fair I don't know what you're applying this to, though. Mar 24 11:54:35 Immaterial, I'm trying to stream to RTMP and so far all the methods I have are lacking in some way Mar 24 11:56:46 method 1: MediaRecorder + files which has the above problem, method 2: MediaRecorder + LocalSocket which means I need to wrap the packets manually, method 3: ffmpeg all the way whcih is not hw accelerated Mar 24 11:58:09 Voicu; Mar 24 11:58:11 https://www.vitamio.org/en/ Mar 24 11:58:12 Eh? Mar 24 11:58:52 Immaterial, no, I'm trying to stream FROM the device, vitamio is for decoding and playing Mar 24 12:02:04 Wel then; Mar 24 12:02:05 http://stackoverflow.com/questions/10123498/streaming-rtmp-stream-live-from-android-camera-to-fms-or-wowza-or-red5-convert Mar 24 12:02:18 The second answer's about as comprehensive as you're going to get. Mar 24 12:02:28 Sadfax. Mar 24 12:04:07 Immaterial, yes, I foudn that SO question too Mar 24 12:09:33 I'd like to add custom attributes to existing contacts in the contacts app. I've come across this code https://github.com/nemezis/SampleContacts but it seems to add new contacts of a new contact account type. is this the best that can be done with android? or is it possible to add custom attributes to the existing contacts of the contacts application? Mar 24 12:22:18 ;-; Mar 24 12:22:31 Are payment portals always a pain in the ass? Mar 24 12:23:23 How can I use DownloadManager to download a file but only allow my application to access it once it has completed? Mar 24 12:23:39 Check the size of the file first? Mar 24 12:24:15 Because from looking at the code, setting the destination URI to null is supposed to save it to system cache, but other applications can still access it Mar 24 12:24:31 Or, ACTION_DOWNLOAD_COMPLETE Mar 24 12:24:47 Read the docs, man. Mar 24 12:25:11 There is nothing in the docs about limiting access to downloaded files Mar 24 12:25:48 At least not from what I saw. If you can point me in the right direction I'll be very grateful Mar 24 12:26:16 Okay, so some other app is trying to access the file? Mar 24 12:26:19 Or is it your own. Mar 24 12:26:49 If it's your own; Mar 24 12:26:49 http://developer.android.com/reference/android/content/BroadcastReceiver.html Mar 24 12:27:36 Another application CAN access the file because it appears in the download list. The URI is just content://downloads/my_downloads/some_number instead of file://path/to/sdcard Mar 24 12:28:07 Oh, so essentially you want to limit any and all access to a file until the download is done..? Mar 24 12:28:44 No, I want only my application to be able to use it Mar 24 12:29:00 Especially after the download has finished Mar 24 12:29:25 Then I have no idea. Mar 24 12:29:28 Ask ra or something. Mar 24 12:29:36 I *could* implement my own download manager, but that seems like a huge waste of time as there is no way I'll do it any better than the original one Mar 24 12:29:48 What's ra? Mar 24 12:30:21 Download the file yourself and store it in your app's sandbox... Mar 24 12:31:15 luc4, if I download it myself, I'd have to implement all the redirection logic and stuff by myself Mar 24 12:31:31 luc4, Something I wish to avoid if possible Mar 24 12:34:08 hi Mar 24 12:34:26 i have a project using android 3.2, i need put it in 2.3.3 Mar 24 12:34:46 when i change my api, i have an errors with actionbar Mar 24 12:34:51 how i can solve this? Mar 24 12:35:25 by fixing the error ;) Mar 24 12:35:42 by carefully evaluating whether you really need to support 2.3.3 and realizing you don't Mar 24 12:36:20 also, by doing what everyone else does, and pretending that 3.X never really existed Mar 24 12:37:03 hehe, so by combining both your suggestions he should just upgrade to 4.x instead? :D Mar 24 12:37:45 that's the idea Mar 24 12:37:54 quite right Mar 24 12:38:32 nah, nothing wrong with supporting 2.3 with an 'existing' project... mostly need to do the support library dance Mar 24 12:39:00 can someone please help me here, i cant seem to unregister my broadcast reciver of action screen on . http://pastebin.com/uZwNxHMe Mar 24 12:41:11 you know those special categories in the play store Mar 24 12:41:14 like "Chromecast" Mar 24 12:41:20 anyone know a direct link into those? Mar 24 12:55:23 Hello! Can I somehow handle keyboard input for views which are inside a ListView? Mar 24 12:56:40 Anybody know anything about structuring XML for POST? Mar 24 12:57:14 I have a sample document and all the information I require to populate the variables, but. The actual formation of the XML is pretty new to me. Mar 24 13:00:03 hi all, i want to open my app when a url (user defined scheme) is clicked in a browser, so far i added the browsable category intent in my manifest file and added m.youtube.com as the host for testing, however when i run my app on my device and i click a youtube link, my app doesn't appear in the open with dialog, what am i missing here? Mar 24 13:05:29 Morning all Mar 24 13:07:20 hey, i created some simple app following a tutorial, i suppose to have an icon in the actionbar but instead i have the 3dot menu with the menu item i created, in the menu xml i specified showAsAction always Mar 24 13:07:32 but i still see the 3dot menu Mar 24 13:09:59 facebook automatically asks for friends list permissions on web Mar 24 13:10:11 It's something I don't need and may deter some users Mar 24 13:13:03 hey people, we uploaded an app on 18th, but its still not coming up in the google play search when i search for it, any ideas? Mar 24 13:14:24 joroci, just an idea, cos i'm not very firm with all that, but did you declare your main class "extends ActionBarActivity"? Mar 24 13:18:57 no, i'm using a listactivity Mar 24 13:19:03 guys.. does openjdk work with android studio? Mar 24 13:19:11 or do i need oracle jdk Mar 24 13:20:44 joroci, give it a try...... and tell me please if that was the point (I'm having a similar issue but no time to check that :-D) Mar 24 13:21:15 i'm using setListAdapter so i must use listactivity Mar 24 13:21:37 k Mar 24 13:21:52 but i might work Mar 24 13:21:53 Guys Mar 24 13:21:54 it Mar 24 13:21:55 Someone had problem with charset encoding in Android Studio ? Mar 24 13:22:09 When the project was in Eclipse I used "ISO-8859-1" charset, so I changed "File encoding" configuration to this charset but remains getting this error: "error: unmappable character for encoding UTF-8" Mar 24 13:22:59 i wonder anyway why actionbar isn't just a component like a button or at least like a menu... no need to invent a new activity for it... but that's google... prolly a SoC idea of some retarded student... Mar 24 13:23:13 can someone please help me here, i cant seem to unregister my broadcast reciver of action screen on . http://pastebin.com/uZwNxHMe Mar 24 13:24:09 i commented the listadapter still that annoying 3 dot Mar 24 13:24:20 maybe it depends on the device? Mar 24 13:24:48 amazwon: you need to upgrade to Android SDK Pro[TM] to unregister broadcast receivers Mar 24 13:25:36 afaik the 3-dot thingie is known as "overflow" something... so it actually should only appear when the rest of the bar in that it is contained is full... Mar 24 13:27:27 what about for devices without a menu button Mar 24 13:28:30 menu button is apparently deprecated anyway... you have "back", "home", and "multitasking shit" Mar 24 13:28:56 but as i said, i'm not an expert... Mar 24 13:29:06 started with that few days back only... Mar 24 13:29:09 Leeds ... SDK Pro ? lol Mar 24 13:29:50 so i tried another device it worked Mar 24 13:34:02 is it possible to add an application specific field to exists contacts, or am I completely going about this the wrong way? Mar 24 13:35:18 gavri, i think "application specific" is a too generic term to cover without more information... :-/ Mar 24 13:35:22 The docs for onRestoreInstanceState state that "This method is called after onStart when the activity is being re-initialized from a previously saved state". Running my app when I hit home button then onPause is called triggering onSaveInstanceState - as expected. This is followed by onStop. Again as expected. re-selecting the app however does NOT call onrestoreInstanceState despite it having a "previously saved state" (as is shown from Mar 24 13:35:22 the onPause and onSaveInstanceState sequence). Now this doesnt really matter since the system has kept the activity field values anyway. Sp I guess my question is : can you define "re-initialized from a perviously saved state here" because onCreate certainly isnt being called (as it would with an orientation change and a reload of activity resources). Mar 24 13:36:38 OxFEEDBACC: it's just a username that should show up in the contacts. when the user clicks on this username field, it should open my application Mar 24 13:36:52 rgr, if your activity was reinitialized you got your instance state passed into onCreate not onRestoreInstanceState Mar 24 13:37:59 ah yes. re-reading it I can see that. Mar 24 13:38:17 gavri, and where in you specific application is that button supposed to appear? Mar 24 13:38:48 rgr, also views will store state unless you explicitly turn that off Mar 24 13:38:59 OxFEEDBACC: oops, sorry, I didn't realize I was being that unclear. I'd like for this "button" to be a field in the contacts application Mar 24 13:39:11 not really a button then Mar 24 13:39:22 it's just how you can tap on a phone number and open the phone app Mar 24 13:39:34 the same way, I'd like the user to be able to tap on this field and get to my app Mar 24 13:39:37 yes. And obviously, and tying it all together, views etc are destroyed on orientation etc because they are heavily dependant on resources and the reload means they must be reconstructed. Got it. Mar 24 13:39:52 gavri, have fun rewriting the contacts application ;-) Mar 24 13:40:16 gavri, mind the channel's name and topic... Mar 24 13:40:28 but in the orientation case its still the same instance of the activitiy despite the UI being destroyed and recreated. Mar 24 13:40:36 aren't there applications that do this? Mar 24 13:40:40 facebook? linkedin? Mar 24 13:43:40 oh... okay, gavri... now i'm getting the picture of your question... that's beyond my knowledge however... Mar 24 13:44:12 afk Mar 24 13:45:50 OxFEEDBACC: okay, thanks Mar 24 13:46:11 gavri: you need to register it as a target for certain intent types. Mar 24 13:46:31 Im no expert but here might help : http://www.vogella.com/tutorials/AndroidIntent/article.html#intentfilter_browser Mar 24 13:47:20 rgr: I'd like for this "link" to show up in the contact detail view of the contacts app Mar 24 13:48:30 gavri, it's not trivial and you can't add buttons to contacts Mar 24 13:48:33 but you can add custom info Mar 24 13:48:44 you'll need an account, syncadapter and manage content provider Mar 24 13:48:45 see https://github.com/nemezis/SampleContacts Mar 24 13:48:46 I don't really want a button Mar 24 13:48:59 yeah, I checked out that repo Mar 24 13:49:07 but they add new contacts of a new account type Mar 24 13:49:16 and update fields of those contacts Mar 24 13:49:26 I'd like to work with the contacts that the user already has on the phone Mar 24 13:49:28 not add new contacts Mar 24 13:49:44 hmm Mar 24 13:49:53 I can't seem to find any documentation on it Mar 24 13:50:02 is this not something apps do? Mar 24 13:50:10 it probably uses ContentProvider APIs Mar 24 13:50:14 Is it bad practice to show a DialogFragment from the Fragment? Or is it done via the Activity? Mar 24 13:54:28 Guys, please help me! Mar 24 13:54:45 Someone had problem with charset encoding in Android Studio ? Mar 24 13:55:02 I'm getting this error: "Error:(150, 5) error: unmappable character for encoding UTF-8" Mar 24 13:55:59 did you check the sourcefile encoding? Mar 24 13:56:32 is it correctly saved as utf-8? Probably not. Mar 24 13:56:59 My file was in ISO-8859-1 in Eclipse Mar 24 13:57:14 then save it as utf8 Mar 24 13:57:35 I imported to Android Studio, and configure in Preferences -> File encodings to ISO-8859-1 Mar 24 13:57:57 I dont know the details but I remember somethign similar I had with emacs ages ago. but you could set encoding for each file "in buffer". Mar 24 13:58:13 dude Mar 24 13:58:27 there's no reason on this world ever to use anything else than UTF-8 for your code Mar 24 13:58:35 lol. Yup! Mar 24 13:58:37 change that back and fix your non-ASCII characters Mar 24 13:59:03 for comments... My language is portuguese Mar 24 13:59:11 utf 8 handles that just fine Mar 24 13:59:23 (or should!) Mar 24 13:59:25 not for me... Mar 24 13:59:58 then fix it. Mar 24 14:00:22 well, switch back to utf8 as suggested and see if it compiled then work from there. Maybe corrupt source at this stage after too many back and forth filters.... Mar 24 14:00:36 yes, that's exactly what happened Mar 24 14:00:45 you were playing around with encodings and managed to corrupt your charset Mar 24 14:01:04 so now you have a fun job of looking over all your code looking for non-ASCII chars and fixing them to UTF8 Mar 24 14:02:04 It reminds me of shit I had with mysql/php/linux and difference levels of url encode and escape characters and mysql_real_escape_string .... went around in circles until I replaced the data knowing what I was doing ! easily messed up! Mar 24 14:02:06 hmm... Mar 24 14:03:43 on that subject its amazing on how many quality well established webs you still get escaped chars instead of format changes on the rendered pages because the formatted text was entered into the CMS DB through a different set of filters to other places. anyways, I would think that's yer problem... Mar 24 14:04:46 If my file is ISO-8859-1, how can I compile with ISO-8859-1 and not with UTF-8 ? Mar 24 14:04:46 If I have a device with dual sim with two IMEI numbers, why Android API only gets one of the IMEIs ? Mar 24 14:04:59 and always the same IMEI regardless which is the default SIM Mar 24 14:05:11 *#06# show TWO IMEIs Mar 24 14:05:19 NOT one Mar 24 14:05:23 did you read any of the replies? Mar 24 14:06:36 TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);String IMEI = tm.getDeviceId(); always gives the same IMEI Mar 24 14:06:41 Why? Mar 24 14:06:51 ironrock, don't. Mar 24 14:06:59 anyone have experience with SearchViewCompat and Actionbarsherlock? Mar 24 14:08:33 casting abs menuitems to (android.view.MenuItem) possible? Mar 24 14:09:11 cff, of course Mar 24 14:09:17 since IMEI is a device indentifier. Mar 24 14:09:36 Mavrik: ?? Why there are two IMEIs on dual sim devices then? Mar 24 14:09:43 IMEI or IMSI_ Mar 24 14:09:44 ? Mar 24 14:09:45 Mavrik: What if I have quadruple sim device? Mar 24 14:09:48 5 IMEIs ? Mar 24 14:09:50 IMEI Mar 24 14:10:08 then your device is broken and probably violates GSM alliance standards Mar 24 14:10:08 Mavrik: *#06# shows 2 IMEIs! Mar 24 14:10:13 Mavrik: wrong Mar 24 14:10:17 dual-sim stuff is a pretty major hack Mar 24 14:10:24 also cff recently i got a few cheap chinese tablets Mar 24 14:10:31 and all the IMEI numbers are the same Mar 24 14:10:37 lemonxah: that happens Mar 24 14:10:39 mine are different Mar 24 14:10:43 lemonxah: because they're manufactured poorly Mar 24 14:11:04 cff, *shrug* Mar 24 14:11:07 yeah i know dragorn was just saying to cff that IMEI is not gauranteed to be unique Mar 24 14:11:10 cff, that's the reason there's no API for it. Mar 24 14:11:21 s/manufed poorly/designed poorly and cheap as dirt/ Mar 24 14:11:23 I now have 66 users on my site! Mar 24 14:11:23 I need to look at the Android source code Mar 24 14:11:26 if you have multiple baseband devices that's not supported by Android so there's no API Mar 24 14:11:30 why is the same IMEI choosen each time Mar 24 14:11:48 lemonxah: the other thing you'll see is serial numbers and device IDs resetting, being 0, or being set to a timestamp every boot :P Mar 24 14:12:00 yes Mar 24 14:12:12 I guess maybe I don't really need the ability to click on the field and get to my application. what's the easiest way to just add a custom field to a contact that can later be used to query that contact from my code. it doesn't have to show up in the UI anywhere or be clickable Mar 24 14:12:19 also the brower strings aren't set Mar 24 14:12:24 browser even Mar 24 14:12:39 lemonxah: there's lots of lazy shitty things manufs can do when they don't care Mar 24 14:12:47 lemonxah: I try not to deal w/ that hardware Mar 24 14:13:06 Does anyone know why setImageResource would not update it immediately but only when I start a transformation on it? Mar 24 14:13:39 Tobbi: nope. you updating it from the UI thread properly? Mar 24 14:14:25 dragorn: I am updating it in an onFling method (in a GestureListener). And I think that's on the UI thread. Mar 24 14:14:38 dragorn, random APIs not working, drivers crashing, having hacked core framework files that don't work as they should is even better :) Mar 24 14:14:45 Tobbi: that's all that came to mind for me, sorry. Mar 24 14:15:01 Tobbi: you could try runonuithread to make sure as a test Mar 24 14:15:22 I could try that... Mar 24 14:15:41 is there anyway to use SearchViewCompat with Actionbarsherlock? Mar 24 14:15:58 SearchViewCompat requires android.view.MenuItem Mar 24 14:16:03 Tobbi: my guess was you're broken on the thread sutff, but not broken enough to crash - but that's a total shot in the dark Mar 24 14:16:04 but i have com.actionbarsherlock.internal.view.menu.MenuItemWrapper Mar 24 14:16:13 Tobbi: easy to test anyhow I guess Mar 24 14:16:24 Mavrik: ugh :P Mar 24 14:17:04 Maybe, let me see... Mar 24 14:57:41 I've got an interesting bug in my app. I have a list view on my main activity, and when I click a listItem and go into a new activity, I press the up button, and then my mainActivity now has double of all menu items. Any ideas? Mar 24 14:58:56 you are adding to the list again Mar 24 14:59:00 without clearing it out Mar 24 15:00:09 how can i use a list activity with a actionbar activity? Mar 24 15:00:12 an Mar 24 15:00:38 supportlib actionbar activity? Mar 24 15:00:42 jonc-1: What do you mean? I've only been able to replicate it when my listView is "full" Mar 24 15:00:59 not it's just a demo Mar 24 15:01:23 i want a listactivity but i also want a full button in the actionbar not the overflow menu Mar 24 15:01:26 what Mar 24 15:01:43 eghdk_, what do you mean by "full"? Mar 24 15:02:06 i meant a button with text Mar 24 15:02:15 icon + text Mar 24 15:03:56 if i use listactivity i get the overflow menu and if i change it to actionbaractivity i get the icon but no text Mar 24 15:03:59 a button in the action bar with text? i think that's possible, just remove the "ifRoom" attribute Mar 24 15:04:12 i'm using always|withText Mar 24 15:04:35 maybe there's some caveat in the android docs Mar 24 15:04:39 about withText Mar 24 15:05:13 how do i get a.so to actually work, its in libs/ but my code wont import from it Mar 24 15:05:19 jonc-1: My listView has a dynamic range of items. I mean "full" by the listView is completely filled with items. Mar 24 15:05:48 jonc-1: Also, this doesn't happen on every device. I've only been able to do it on the samsung galaxy s3. Mar 24 15:05:48 Gaz`: i thought libraries were always .jar files Mar 24 15:08:33 what is the name of this view where you can select something on the top? Mar 24 15:08:34 https://lh4.ggpht.com/0IBwD9_X_hv6_qbtZe9CTVqRjM4hD4xZDxuxOrVTTaxcEgSGvc8FsOyRCol4FRNS3BE=h900-rw Mar 24 15:08:55 should i create a "blank activity"-project for that? Mar 24 15:09:10 that's an action bar dude Mar 24 15:09:20 ..but with the select? Mar 24 15:09:31 oh, you mean the menu that opens up when you press the title? Mar 24 15:09:40 aaah Mar 24 15:09:43 spinner, i guess Mar 24 15:09:57 yeah, that's it ;) Mar 24 15:10:01 :D Mar 24 15:10:13 eghdk_, it may be because some devices actually kill the activity with the listview because of memory Mar 24 15:10:14 i have no idea why it's called a spinner Mar 24 15:10:16 while others do not Mar 24 15:10:22 it should be "dropdown" or something Mar 24 15:11:35 any good exmaple on encryption to validate if the client is indeed a valid signatory (based on the machine sinagute) of the encryoted encrypted message? Mar 24 15:13:32 so i'm GETting JSON from a parse backend, and caching that json in a sqlite database. i'm currently looking into sync adapters, so that requests only occur when there is fresh data in my backend. are there other alternatives that i'm not aware of? Mar 24 15:13:40 can someone please help me sort out how to unregister this broadcast reciever action screen on? http://pastebin.com/m9GmnuNu Mar 24 15:14:00 been looking it up but cant seem to get anything to work Mar 24 15:14:30 amazwon: maybe unregisterReceiver() or something Mar 24 15:17:14 amazwon: what Mango_Man said, I think you need to unregister it within the onDestroy method Mar 24 15:18:07 jonc-1: Hmm... what do you think is the best thing to do to handle this? Mar 24 15:18:12 you know what'd be nice? an IRC channel with stackoverflow-like upvotes Mar 24 15:19:22 lol Mar 24 15:20:00 jonc-1: I just turned on "Kill activity as soon as user leaves it" in developer options. And I'm able to replicate the bug! Sweet!. But I'm still stuck with how do I handle this the right way? Mar 24 15:26:05 omg syncadapters have so much boilerplate Mar 24 15:32:15 Signing key question: Where do you folks store your signing keys? Mar 24 15:33:26 best would be some cryptographically secure chip that is usually disconnected from the PC, like a smartcard or token Mar 24 15:34:16 I was looking forward to make an app for yubikey-neo to be able to do that, but I haven't found any time or motivation to actually do it Mar 24 15:36:28 At a previous job I just hosted our signing key in our framework git repo (hosted internally, not on GitHub). Is there any sort of standard practice? mlehmk, that’s an interesting idea, but I’d rather err on the side of the key being stolen than on the side of me losing the key, since it can’t be replaced. Mar 24 15:38:39 never ever do that Mar 24 15:38:54 no authentication into a repository Mar 24 15:39:50 your buildserver might have some signature key that it adds to the binaries, though they should be signed by an internal CA and not valid outside the enterprise Mar 24 15:41:28 why do you think a key can't be replaced? it's usually the way that replacing a key is easier than to cope with the damage a stolen key can do Mar 24 15:43:00 so, what kind of key are you talking about? Mar 24 15:43:20 The signing key for an Android app. Mar 24 15:43:35 for release on play store? Mar 24 15:43:37 Yes. Mar 24 15:43:48 That one you should keep private and secure Mar 24 15:44:12 But if you lose it you have to re-release the app under a new package name with a new key when it comes time to release an update. Mar 24 15:44:13 it's best to have it in a manual process Mar 24 15:45:00 yeah, so store the actual key twice on two thumb drives in your physical safe Mar 24 15:46:25 though I don't understand your concern Mar 24 15:46:55 the thing is, keys expire after a time and replacing with a new key should be no problem at all. It should be even possible to have a new key each release, but that'd be silly Mar 24 15:48:05 just reading http://developer.android.com/tools/publishing/app-signing.html and I see, the update is the problem, but only temporarely I think Mar 24 15:48:56 Your app should have a projected lifespan, and you need to have that key for the entirety of the lifespan, or else updates essentially need to be published as a new ‘app’. Mar 24 15:49:19 Which means that a lot of users of the current app will never realise that they need to uninstall it and install a different app in order to update. Mar 24 15:49:23 yeah, so these signatures have more the meaning of providing a strong name in .NET terms, than to provide authenticity Mar 24 15:49:45 And potentially means they would lose their data, unless your app integrates with some cloud solution. Mar 24 15:51:11 therefore, backup key to CD DVD or thumbdrive in a physical safe for a backup Mar 24 15:51:11 in intellij Im having issue with the hierarchical parent when trying to create a new acitivity launched with intent. The input wizard isnt validating it. Any gotchas or hints there? I put in the FQ name e.g com.test.myapp.MyTopLevelActivity. Mar 24 15:51:37 and only put the actual private key into a secure PC when you do a release and always do the release manually Mar 24 15:54:56 btw, you could develop a settings export module at the same time you release your app, but keep the settings export module private until the moment you need to replace the key Mar 24 15:56:04 btw, how do I find out, that my device has NOVA? Mar 24 15:56:40 it has an MT8125 CPU Cortex-7 something Mar 24 16:02:32 hello devs! Mar 24 16:03:58 does it anyhow affect performance if we use different onClick functions for different buttons in the same activity? Mar 24 16:06:30 As opposed to an id switch on the container view onCLick which is registered as the onClicklistener to all buttons I take it? Mar 24 16:06:40 no. Mar 24 16:07:25 and if you think about the time it takes to move your finger from a to b is infinitely faster than any overhead. same code base. slight increase maybe since all have their own entry exit points. but nothing important. Mar 24 16:12:26 ok.. Mar 24 16:12:34 thanks rgr Mar 24 16:20:19 i have a backend whose data changes very infrequently. the only time data is fetched is upon launching the app, after which that data is cached in a sqlite db. what's the best way to keep the backend data and android client data in sync? Mar 24 16:20:25 push notifications? Mar 24 16:20:55 Okay, guys, once again: My image view won't update after setting a new ImageResource as the background, but it updates AFTER starting an animation with this one...Does anyone know what's wrong? Mar 24 16:21:21 Tobbi: pastebin your code Mar 24 16:21:30 Mango_Man: Hold on... Mar 24 16:22:05 Mango_Man: if the fetch isn't terribly long just spin a fetching screen at launch. If the data can tolerate an update mid-app, spin a service and update that way Mar 24 16:22:21 Mango_Man: and give the user a spinner in the corner saying new data is being fetched or something Mar 24 16:22:28 Mango_Man: would probably be how I do it Mar 24 16:22:49 Mango_Man: http://pastebin.com/KruDF67v (line 20) Mar 24 16:23:19 Mango_Man: So, this is in the Gesture Listener. Mar 24 16:23:44 dragorn: hmm, i will try that. thanks! Mar 24 16:24:04 Mango_Man: it all depends on the type of data - if showing the user stale data is ok, spin it in the background on launch Mar 24 16:24:21 Mango_Man: seems to match the general android-y way of doing things, like browsing your mailbox while it syncs in the background Mar 24 16:26:18 Tobbi: are you sure that setImageResource() is getting called? Mar 24 16:26:28 hi all does anybody know why my theme.dialog make a black line on right side? here is a screen http://postimg.org/image/d5qazj5o9/ Mar 24 16:26:37 Mango_Man: The Toast is showing, therefore, I believe it is being shown. Mar 24 16:27:10 eeh called. Mar 24 16:28:35 Tobbi: is that a valid drawable? Mar 24 16:29:45 pavel_: maybe it's just the emulator? maybe you specified a black background and that fragment on top has a specified dp width Mar 24 16:31:52 Mango_Man: maybe it's just emulator.... no i didnt specified any dp just wrap_content or fill_parent... Mar 24 16:32:50 this is my style: Mar 24 16:32:51 Mar 24 16:32:52 #E7E8ED Mar 24 16:32:52 #4474B6 Mar 24 16:32:52 Mar 24 16:32:54