**** BEGIN LOGGING AT Thu May 29 03:00:01 2014 May 29 03:00:59 erisco: FULL_WAKE_LOCK or FLAG_KEEP_SCREEN_ON ? May 29 03:01:25 when my app is not running May 29 03:01:39 it is annoying that every time I push a small change I have to turn on and unlock the screen May 29 03:02:21 erisco: you probably need a background service May 29 03:03:37 ah I just found a setting to change the screen timeout to 30 minutes May 29 03:03:40 that will be good enough May 29 03:03:52 and leave it plugged in, that should stop the wireless kicking out May 29 03:04:58 erisco: that sounds like your app is only for yourself May 29 03:05:33 there is an option in developer settings to stop the device sleeping while it's plugged in May 29 03:05:50 Leeds, yeah but I could not find it =\ May 29 03:05:56 look harder May 29 03:05:57 but a 30 minute timeout is fine May 29 03:06:21 erisco: it's called 'Stay Awake' May 29 03:06:36 there is nothing on my developer settings for it May 29 03:06:48 it must have been added in later versions of android May 29 03:07:00 erisco: which device ? May 29 03:07:06 does not matter :P it is fixed May 29 03:07:11 oh ok May 29 03:12:31 Where can I get a clean copy of the source code for KitKat so I can build a rom? May 29 03:12:42 start by reading the topic May 29 03:13:00 I know about sdn May 29 03:13:13 But I dont understand he May 29 03:13:32 Sorry coicked the wrong button I dont understand the branches. May 29 03:13:39 so you read the topic? May 29 03:13:48 bankai_au: lol May 29 03:14:13 Oh, lol May 29 03:14:13 obviously tldr lol May 29 03:20:10 erisco: Did you have to install the NDK to build using Ffmeg? May 29 03:20:28 yes May 29 03:20:29 Nm it's a C library May 29 03:20:42 I was able to get it loaded finally May 29 03:20:47 a combination of things was needed May 29 03:20:47 You mentioned you were using OpenCV May 29 03:20:58 yup May 29 03:21:07 Are you using the libraries themselves or just to get the video May 29 03:21:18 I'm using GPUImage I find it's much lighter then OpenCV May 29 03:21:49 I did not write that part of the app. I am just interested in taking the raw image data, which as I understand is stored in Mat, and encoding it with ffmpeg May 29 03:22:27 Hmm May 29 03:23:20 Well just as an architecture note. If you don't need OpenCV itself, there are tutorials out there on accessing the camera's raw data directly using the NDK May 29 03:23:39 the application does use opencv, I just did not write it May 29 03:23:44 gotcha May 29 03:24:53 every example I find is for decoding a file May 29 03:25:05 Seems like everyone is doing OpenCV. Learning OpenCV and OpenGL this year was one of the best decisions I could have made May 29 03:36:19 I'm trying to implement an up button in my app. I successfully set android:parentActivityName, but when I press the up button in the ActionBar, it dumps me out of my app. May 29 03:37:46 what does the ST say ? May 29 03:37:50 you need to call setDisplayHomeUpAsEnabled(true) to your actionbar May 29 03:39:52 I set that, no change May 29 03:40:26 what does the logcat say? May 29 03:41:01 usually I set my actionbar, and implemented onOptionsItemSelected method to call onBackPressed May 29 03:41:43 Nothing useful. My onPause gets called, and that's it. I would expect it to start the new activity May 29 03:42:32 The sdk is supposed to do all the back stack creating and such, as far as I know. There was an alternate guide that shows me how to do it with the support library, but I don't need that yet. May 29 03:42:50 Can I trace through sdk code as it runs on my tablet? May 29 03:53:34 hello all May 29 03:54:15 Hello. I am using HttpUrlConnection to do web restful get call. When I disable cellular data, only using wifi, it has a high probability of timing out where if I don't disable cellular, so it definatly using cellular, it never times out. Anyone have this problem? May 29 03:55:22 tsp are you using fragments, did you add them to the backstack when you commit then with fragmentransaction? May 29 03:59:33 lasserix: No fragments. I"m starting one of my activities from a view intent, then I want to navigate back to another one when I Hit the up button May 29 04:00:10 I could try using NavUtils and synthesising my own stack, but the sdk should already do that. I'll have to learn jdb and see what's going on May 29 04:03:00 lasserix, nat vs not probably May 29 04:20:31 Does anyone have a particular favorite custom rom modification? May 29 04:20:44 e.g. Pie/Halo etc May 29 04:22:26 WheatThins: channel topic? May 29 04:22:34 Oh my mistake May 29 04:22:38 I meant to type root not dev May 29 04:31:26 pfn: can you elaborate a little? my boss is kind of freaking out about it May 29 05:06:02 hello May 29 05:06:42 this is my layout for fragment. what is the easy way to to adds items to listView May 29 05:06:48 http://paste.ubuntu.com/7541534/ May 29 05:07:58 slani you add items via an adapter May 29 05:08:09 easiest way is to use simplarrayadapter May 29 05:08:16 which is typed based on the item type May 29 05:09:01 you can even reference an xml layout file from android.R.somethingorother for the rows where the they contian two text views with ids like android.R.id.row_title_1 or something May 29 05:14:22 lasserix: I foreget to mention that I have a custom lsit. when I had a ListActivtiy I did this via BaseAdapter. But now I don't know how can I add my custom list_view to listView of fragment May 29 05:23:31 Pass the items to BaseAdapter, start populate it in the getView method May 29 05:27:25 piracyd3: I tried this but by listView is empty. nothing is shown May 29 05:32:45 ohhh I'm an idion May 29 05:32:56 idiot May 29 05:33:01 thanks for help May 29 05:33:03 Oniondiot May 29 05:33:26 An idiot, but with layers May 29 05:33:26 * Nilium trademarks this term May 29 05:36:18 lol May 29 05:37:23 guys, I asked a problem yesterday (GMT+8), still couldn't get any answer :( May 29 05:40:18 I'm just gonna post it again here; May 29 05:40:28 I have 3 viewpager tabs. First tab has an item in the actionbar. But when I swipe to the second and third tab, the item is still there. How can I only show it on the first tab? May 29 05:41:06 some folks recommends for a menu invalidate. Tried it, couldn't make it work. May 29 05:42:03 Anyhow, here's the code of the Fragments http://pastebin.com/XyMtYMQA May 29 05:42:22 And... both FirstFragment and SecondFragment has its own ContainerFragment. So, from MainActivity, it actually inflates the ContainerFragmet before going to the FirstFragment/SecondFragment. Check it http://pastebin.com/fzb3WxNu May 29 05:43:20 If anyone has the answer, please contact me via gmail ilovebsod@gmail.com May 29 05:43:26 (2desperate/10) May 29 05:46:32 piracyd3: menu.removeItem()???? May 29 05:46:43 or menu.clear() May 29 05:46:51 then rebuild the menu relevant to that fragment May 29 05:58:56 How do I break on a method in jdb if it's only defined on the superclass? E.g. onNavigateUp() May 29 06:01:25 TIL walmart employees know their shit better than bestbuy employees , regarding phones & plans, at least here May 29 06:08:58 I think BestBuys smarter, but WalMart was surprisingly well informed May 29 06:10:03 erisco you around? May 29 06:12:47 hrm need some help with json May 29 06:14:04 Do you? May 29 06:14:17 im writing an app that uses a json api on server running php. Upon connecting to the url, a json object with action:login, userName:myusername, and userPassword:myuserpassword as parameters May 29 06:14:18 ...mmm why would my phone suddenly show as domestic roaming May 29 06:14:31 is sent May 29 06:14:35 k May 29 06:15:07 capella maybe the bb guy didn't want to sell me the phone, knowing he could not activate the specific t-mo plan May 29 06:15:14 I think I have all of this completed in an asynctask, but how can I spit out the contents of the page to see the result object? May 29 06:15:33 ah, "playing obtuse" May 29 06:15:46 Im expecting either an error json object, or a success object with various account information May 29 06:17:15 capella yeah :| 'i can't see the t-mobile website' May 29 06:17:23 'it has to be in our system' May 29 06:17:26 hehe May 29 06:19:04 phone thinks I'm roaming at home ... wth ... May 29 06:19:31 capella maybe you left the planet May 29 06:19:49 but I'm directly above my property !! May 29 06:20:37 capella tie balloons to your chair :) May 29 06:21:59 meh - Sprint must have issues ... it's done this briefly before May 29 06:24:15 has anyone on here used the google app engine. I'm looking to develop an android app an host it on there May 29 06:24:35 But i don't know how to go about it May 29 06:36:25 How fast do files get saved to the Android device? May 29 06:37:05 as slow as the flash is slow May 29 06:39:53 petecouture back in the froyo days writing a single byte could be anywhere up to 500ms May 29 06:40:06 thats , not 500ms per byte, but you get it ;) May 29 06:40:33 maybe things have improved a little; dunno; not using yaffs anymore May 29 06:41:12 I'm working on a camera recording app using NDK, GPUImage and FFMpeg. I'm trying to figure out the fastest way to deliver the video content to FFMpeg so it can encode the video. May 29 06:41:27 I'm wondering if every frame should be saved to the camera in a folder May 29 06:41:34 then compiled into the video later May 29 06:41:40 It's only a 15 second video max May 29 06:42:18 I want to deploy a sample video file with my app to test video playback. From what I read I can put the video in the assets/ folder. How do I put the video in a particular directory on internal phone storage however? May 29 06:42:35 I want to see it listed when I do new File(this.getFilesDir(), "recordings"); May 29 06:42:44 ie in the recordings directory May 29 06:43:23 erisco maybe copy it to http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_MOVIES May 29 06:43:34 just guessing though May 29 06:43:36 why? May 29 06:43:42 not sure if you need permissions May 29 06:43:55 no I want it stored on my app's internal storage May 29 06:44:02 oh May 29 06:46:03 erisco: then do that, read from assets and write to your apps data folder May 29 06:46:29 yeah it seems I have to use an asset manager or something May 29 06:46:36 I was hoping I could deploy it straight to internal storage May 29 06:46:36 wrong May 29 06:47:08 no? how do I do that then? the examples I am seeing are using the asset manager May 29 06:47:43 guess not necessarily wrong, as in, it's not hard May 29 06:49:04 AssetManager assetManager = context.getAssets(); May 29 06:49:04 InputStream ins = assetManager.open("files/myVideo.mp4"); then do what you want with the stream May 29 06:54:39 are you allowed to have subdirectories in assets? when I try and open the asset it throws a not found exception May 29 07:02:12 File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "Qounter"); May 29 07:03:13 erisco: Look at this http://pastebin.com/GU4A0z2n May 29 07:03:18 It's my file helper util May 29 07:03:25 Might help May 29 07:03:30 I think it is when I opened the fileoutputstream actually, hrm May 29 07:04:07 do I have to create a sub directory on internal storage to use it? May 29 07:04:46 Would that matter? May 29 07:05:00 well when I open the output stream it fails saying file not found May 29 07:05:12 typically when you create a file for output the directory must also exist May 29 07:05:23 That script does that May 29 07:05:35 It checks if the directory exisits then creates it if not May 29 07:06:56 Where you see Qounter replace that with your app name. May 29 07:07:18 I see the directory making codes May 29 07:07:18 thanks May 29 07:07:46 Can I ask you a question then ;-) May 29 07:07:54 sure May 29 07:08:02 I still do not have the recording thing working correctly though May 29 07:08:04 How are you rendering the video? May 29 07:08:04 sorry May 29 07:08:08 I mean making the recording directory May 29 07:08:14 Np we're working on the same thing right now May 29 07:08:58 the video source is the front or back camera. this is fed into some special filters. the result is drawn to the screen May 29 07:09:08 right using opengl May 29 07:09:18 maybe, I do not know May 29 07:10:35 this.getFilesDir() ... this returns some path I presume May 29 07:11:40 yes it worked :) May 29 07:11:49 okay fixed up. now just the listview crashes May 29 07:11:58 I've done this a couple times. How it works is were using the raw camera data field only accessible from the NDK libraries. Every time the camera processes a frame it fires that data off to an OpenGL application which takes the single frame, converts it to a texture which is assigned to a flat plane. Filtering is the process of sweeping each frame through Shader Libraries Matrixes which do things like desaturate each pixel. May 29 07:12:11 well that's good... im parsing json at least May 29 07:12:56 The plane is attached to the GLSurfaceView. May 29 07:13:26 And thus that's how you process raw video on mobile devices. May 29 07:13:33 But I've never saved the feed to a video file May 29 07:13:40 *sigh* May 29 07:13:56 makes sense May 29 07:14:17 That's also how you do augmented reality May 29 07:14:59 Each frame is sent to OpenCV which does all the crazy math shit to figure out things like facial recognition May 29 07:16:19 erisco: What was your course of attack for saving the video if you don't mind me asking? May 29 07:16:31 well I have not made it work yet May 29 07:16:40 I spent over four hours trying to get ffmpeg loading on the phone May 29 07:16:55 and while that is sort of working I still have linking problems during building May 29 07:17:37 but the basic idea is to take the image data stored in Mat and use ffmpeg to encode it as h.263 May 29 07:17:42 I was thinking of rendering an image every couple microsecond and then afterwards using FFMpeg to composite it together May 29 07:17:55 Ya but how are you getting the data to ffmpeg May 29 07:18:27 The other solutoin I could think of was some how streaming the GLSurfaceView to ffmpeg May 29 07:18:38 that way the microphone would be synced up at the same time May 29 07:18:39 our native code that communicates with opencv every frame can be updated to also communicate with ffmpeh May 29 07:18:42 ffmpeg May 29 07:19:12 ya but from what I've read ffmpeg is more of a comand like process May 29 07:19:32 no they have C headers too May 29 07:20:05 hmm what I mean is ffmpeg builds a file at once, not as a continious process unless it's being served May 29 07:20:12 If you haven't already check out FFmpegMediaMetadataRetriever May 29 07:20:32 It's a good library project which shows building jni's with FFMpeg May 29 07:21:14 I do not know what you mean "as a continuous process" May 29 07:22:01 take a look at http://www.ffmpeg.org/doxygen/trunk/decoding_encoding_8c-example.html#a83 May 29 07:25:04 hmm May 29 07:25:44 what is the best way to update listView after onPostExecute is called in AsynTask May 29 07:27:26 erisco: That's gonna take me a while to figure out. Where does the input image come from? May 29 07:27:47 in that sample they just make a dummy frame May 29 07:28:06 but I am intending to use the Mat object from opencv May 29 07:28:12 it is holding the raw image data May 29 07:28:58 slani: set list item array to empty. load the asynctask again. call notifyDataSetChanged to the adapter May 29 07:30:40 hmm May 29 07:31:45 HAH avcodec_encode_video2 May 29 07:31:53 This is what I was looking for May 29 07:31:54 thank you May 29 07:32:04 piracyd3: in fragment? May 29 07:34:25 hope android bindings are better than java ones May 29 07:40:18 bindings? May 29 07:41:02 slani: in your onPostExecute of course, why throw extra stuff after asking your question May 29 07:41:39 petecouture: that was about opencv May 29 07:41:54 Ah May 29 07:47:20 canvs2321-: I forget. sorry. How can I comuincate with fragment in onPostExecute method. Should I use handle??? May 29 07:47:24 handler* May 29 08:03:40 I followed this tutorial to create a ListView that is populated by data from the internet but whenever I scroll up or down it unloads the artwork May 29 08:03:57 and then if I scroll back to the previous position it has to reload it. Is it possible to keep it cached once it has loaded once? May 29 08:04:02 The tutorial is: https://github.com/thecodepath/android_guides/wiki/RottenTomatoes-Networking-Tutorial May 29 08:06:42 ugh anyone want to help me make sense of this ios code im trying to port? May 29 08:07:21 trying to login through an httppost action:login May 29 08:09:42 When exactly is the INSTALL_REFERRER intent broadcasted? May 29 08:09:56 At install time or at the first app launch time? May 29 08:26:38 ilmenite: there are some services that allow analytics on invites and where the install is coming from May 29 08:26:52 to allow testing for the efficiency of campaigns May 29 08:27:04 that is the INSTALL_REFERRER May 29 08:43:06 thepoosh: yes, i get that May 29 08:43:11 but when is it broadcasted? May 29 08:43:16 at the time that an app is installed? May 29 08:43:28 or at the time the app is launched for the first time? May 29 08:43:45 after the install on first open May 29 08:43:57 Cool, thanks May 29 08:44:22 I thought it would be possible to auto launch the app or do some nasty stuff before the first app open May 29 08:44:45 that is not possible May 29 08:45:02 as of what I read, it was until 1.6 or something May 29 08:45:14 ? May 29 08:45:49 It was some bug in Android - being able to execute code before the app was actually launched for the first time May 29 09:10:02 hrm, is there any code to resize webview/javascript content to fill_parent? May 29 09:10:27 im calling a webpage written entirely in javascript, and its set up for ios. much small, good job! May 29 09:18:47 o/ May 29 09:18:58 autrilla, got the code to work? May 29 09:46:48 can't... keep... my... eyes... open... May 29 09:47:12 was going to try to pull and all nighter but I think it's time to call it May 29 09:47:13 night all May 29 09:47:51 Out of interest, does a timeframe exist for Java 8 landing on Android? May 29 09:49:47 platzhirsch: even if May 29 09:49:50 yeah, never May 29 09:49:55 how come? May 29 09:50:03 that will be like... android 5 and nobody will use it May 29 09:50:06 ask larry ;) May 29 09:50:23 :) no I am just curious, but also that would make me sad May 29 09:50:36 I mean Android Studio makes it look like I am using Java 8 already May 29 09:50:43 'have you been programming in... scala?' May 29 09:51:01 I also thought I could wait for Java 7 for ages on Android, but it's already here May 29 09:51:25 as far as i know gents May 29 09:51:34 java 8 wont hit android for a while May 29 09:51:37 or even if it does May 29 09:51:46 doesnt android use open jdk or something? May 29 09:51:50 and not suns implementation May 29 09:51:56 so? May 29 09:51:57 oracle, w/e May 29 09:52:06 openjdk is developed by the community May 29 09:52:11 oracle own openjdk May 29 09:52:17 it would take a heck of a longer time May 29 09:52:34 ah okay, even Java 7 is only for KitKat May 29 09:52:57 i actually read a reddit/stackoverflow post on this May 29 09:53:09 ==== May 29 09:53:10 Android doesn't run Oracle's version of Java, nor does it run the open version, the OpenJDK. Android runs a completely separate virtual machine called Dalvik. May 29 09:53:14 This means for Android to get new versions of Java, they would need to add support for it to Dalvik. They seem unlikely to do this because the improvements to Java in 7 and 8 have largely been VM improvements, rather than important language changes which they would have to implement from scratch. There's cool stuff in 7/8, but the cost of implementing it from scratch outweighs the benefit from Android's perspective. May 29 09:53:14 I really crave Java 8, finding myself in the position to develop in Java again, after a whole year of Ruby sweetness May 29 09:53:19 ===== May 29 09:53:36 source: http://www.reddit.com/r/androiddev/comments/1jqhso/will_android_get_java_7_or_8_in_a_forseeable/ May 29 09:54:09 I believe in Google's mindset to work forward, Java 7 on Dalvik suprised me, too May 29 09:55:04 bankai_au: i dont think they do May 29 09:58:06 go to openjdk.java.net and look down the bottom May 29 10:05:51 dalvik will get thrown out soon anyway May 29 10:08:04 What is a best practice when programming java? implementing interfaces or passing along objects? May 29 10:08:57 lets say for example i want to use method X in object Y when something happens in object Z May 29 10:09:17 i tend to just define some set methods and pass my objects along May 29 10:09:25 but maybe this shouldn't be the best practice May 29 10:10:03 it makes my code feel a bit mechanic and classes aren't completely independent of each other May 29 10:10:38 jvrodrigues, the practices are usually about the same as for desktop java May 29 10:10:42 use dependency injection May 29 10:11:14 i'm about as new to android programming as i am to java programming May 29 10:11:15 since you don't have as many objects where you have full control, message bus design (eventbus/otto libraries) is also popular for message passing May 29 10:11:25 bankai_au: right.. ironically it's also said gpl licence... May 29 10:12:12 who would've thought oracle would ever put their name against opensource, huh? ;) May 29 10:12:18 i want event bus on this project :( May 29 10:12:34 bankai_au: never liked oracle in the first place May 29 10:14:08 ditto and i'm a solaris admin :( May 29 10:14:36 lol May 29 10:16:49 OpenJDK project was started before Oracle tho :) May 29 10:17:12 same as java and mysql May 29 10:21:44 anyway May 29 10:21:52 http://zeroturnaround.com/rebellabs/does-microsoft-want-in-on-my-next-java-application/?utm_content=buffer5fec9&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer May 29 10:49:04 hey i try to close my app alertdialog builders on negative button click May 29 10:49:10 using system.exit(0); May 29 10:49:16 but it closes only one activity May 29 10:50:00 you can't exit May 29 10:50:10 yah, dont go like that May 29 10:50:12 Doing it wrong May 29 10:50:25 and yeah, scala++ May 29 10:50:43 if you want java 8 now, scala is the answer May 29 10:51:11 * pfn wanders off again May 29 10:52:35 Oh, pfn's back early.. May 29 10:52:35 Still on vacation? May 29 10:52:45 Or gone. May 29 10:56:36 still on vacation May 29 10:56:49 on a shuttle back to the hotel from Phang nga May 29 10:56:50 autrilla: I would say yes, it depends on some parts though. While programming listviews, it looks really like the MVC model: model (the data to list), view (how to render, basically take some fields are taken from the model thanks to an adapter), and controller (input events on the listview). May 29 10:57:12 bored, decided to turn irc back on May 29 10:57:49 does anyone know what is the android-studio equivalent of eclipse enter to go to the end of a statement? May 29 10:58:23 extremelly annoying having to click end or one of the arrow May 29 10:59:58 search the keymap May 29 11:00:55 I wonder if Sims and 3g is cheap in Japan May 29 11:05:08 looks like no... May 29 11:05:13 so lame May 29 11:05:23 Does anyone know how to fix this layout? http://i.imgur.com/Ncdvp80.jpg May 29 11:06:30 by doing it right? May 29 11:09:02 suppose I store a password in SharedPreferences, but the file is world readable, is there a way to ensure it can't be cracked? May 29 11:10:57 no May 29 11:13:00 * pfn wanders off again, yall are boring May 29 11:17:44 * platzhirsch pokes pfn with a hot fry... in the eye. May 29 11:33:32 http://www.youtube.com/watch?v=kaT-jFpwj_M May 29 11:33:38 how come I see this for the first time :) May 29 11:41:19 lets say i have a dialog and i want to close it May 29 11:41:29 should i use cancel or dismiss mehtod? May 29 11:41:40 both are returning an error May 29 11:41:48 : D May 29 11:42:24 show the code May 29 11:47:59 done this today May 29 11:48:02 it works May 29 11:55:24 * GermainZ pokes MohammadAG May 29 11:58:02 * MohammadAG pokes GermainZ back May 29 11:58:27 o/ May 29 12:00:00 SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); (Cannot resolve method getPreferences(int)) Any idea why this isnt resolving? May 29 12:00:22 Jesperhead: what's this? May 29 12:00:30 Jesperhead: to be more clear, what's 'this'? May 29 12:00:37 this = context May 29 12:00:56 err... May 29 12:01:24 well I took the code from dev.android.com SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); May 29 12:01:33 but getActivity() didn't resolve either May 29 12:01:48 which class are you calling it from May 29 12:01:49 googling told me to use 'this' May 29 12:01:52 Get the shared prefs first May 29 12:01:58 MohammadAG: not the main May 29 12:02:10 Jesperhead well then which one? May 29 12:02:21 MohammadAG: a login class May 29 12:02:28 and it extends what? May 29 12:02:34 activity May 29 12:02:49 ah oh no it doesnt May 29 12:02:54 its in an asynctask May 29 12:03:01 LoginClass.this May 29 12:03:01 heh May 29 12:03:02 use that May 29 12:03:11 thank you, totally forgot May 29 12:03:25 Can't you use the activity's class directly? May 29 12:03:29 MyActivity.this May 29 12:03:52 the login class is an activity, all in the same file May 29 12:04:36 Oh, alright May 29 12:14:19 how do you guys handle font sizes on different dpis and screensizes? It seems like there should be a way to scale a textview like you can a imageview but it isnt the case May 29 12:24:52 Gaz`: use sp? May 29 12:25:37 I have HashMap and need to save it as a preference. It is populated by a expandableListView and has approximately 50 lines in total. I tried using a csv but it is difficult to update the cells in csv file. May 29 12:25:43 At SO there are suggestions of using GSON, outputstream or the normal sharepreference but I am not sure about the speed of these methods. I would need to read the preference at every startup also. May 29 12:26:03 What would be a better solution? May 29 12:26:28 WantToCode: fifty lines isn't that much… I'd go with a set in SharedPreferences assuming you only support 4.1+ IIRC May 29 12:26:45 min SDK 10 May 29 12:27:30 WantToCode serialize it into a String and store that? May 29 12:27:59 is the reading speed good in case of SharedPreferences? At startup I would need to read all the elements with boolean true in the List. May 29 12:28:22 Well it's just 50 preferences… won't be a noticeable difference. May 29 12:29:19 WantToCode: 50 prefs will be nearly unmeasureable May 29 12:30:33 Or can I save the three things from Hashmap, the key integer, the value boolean[i] and the i of the boolean[] into another datastructure to make it smaller? May 29 12:34:35 dude i did home button clicked when my dialog negative click May 29 12:34:38 with this Intent intent = new Intent(Intent.ACTION_MAIN);intent.addCategory(Intent.CATEGORY_HOME); May 29 12:34:46 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(intent); May 29 12:35:02 but after this when i click my app again May 29 12:35:09 it starts same activitiy May 29 12:35:24 i want first activity May 29 12:35:52 how can i handle this ? May 29 12:39:26 WEtxx: why? May 29 12:39:41 WEtxx: the user would expect to return to the activity he left, not your main activity. May 29 12:39:44 GermainZ: unfortunately SP doesnt behave as specified May 29 12:40:24 yes but this must be first activity :( May 29 12:40:41 WEtxx: why must it be? May 29 12:41:07 its all about my program May 29 12:41:24 dont need to see last activity May 29 12:41:29 WEtxx you need to finish() the last activity May 29 12:41:56 then it is not on backstack May 29 12:43:07 must do this in onResume? May 29 12:44:59 no May 29 12:45:07 maybe onPause May 29 12:45:22 or just when the "back button" is hit in that activity May 29 12:53:55 I start a service from my activity, then bind it to the activity, unbind it in onStop, the service keeps running and so far everything works, but when I destroy the activity the service "vanishes" without calling onDestroy() and gets restarted eventually, any ideas? May 29 12:57:11 hello, how i can call multiple setContentView by the correct way? May 29 13:04:14 I have a thread which runs until interrupted, inside it I have to call BLE with a certain write command that when issued, has its callback ready to return data, and I receive it in the thread May 29 13:04:31 I want to have the thread not go on until that result has returned, no idea how to go about this May 29 13:04:59 but I do know that it is not achieved with Thread.sleep, nor with starting a new thread inside a synchronized() which sends that reading command May 29 13:05:24 there has to be something from that callback shared with my thread, so the primary thread can know when that callback is done May 29 13:07:27 like NSCondition with iOS May 29 13:12:40 id like to take a moment to thank everyone that helps out in this channel. I have learned a metric butt load the last few weeks working on my project, thanks a lot to you fine folks. May 29 13:25:27 Hi there. Is it possible and how to make a listener for EditText so when user clicks on a EditText field date picker will show up to enter date and then this date would be in a EdiText field? May 29 13:25:44 hey there May 29 13:25:49 datepickerdialog May 29 13:25:53 it's quite easy to use actually May 29 13:26:08 hey there May 29 13:26:29 http://pulse7.net/android/date-picker-dialog-time-picker-dialog-android/ May 29 13:27:18 but this is splendid, I'm gonna try to set it up for EditText May 29 13:27:19 tnx May 29 13:29:57 no problem May 29 13:34:52 where and how exactly are view states saved? a fragment calling onCreateView has its saved state as null and yet onRestoreInstanceState is still called for the views May 29 13:35:26 rhcake, views get their own chance to store their state and restore it May 29 13:36:19 rhcake, there's "saveEnabled" and "setSaveEnabled" method on a View class that controls this May 29 13:36:22 it's true by default May 29 13:37:05 i see :/ thats a bother. how am i suppoed to determine if my fragment is fresh in that case. obviously not by looking at the saved state May 29 14:32:20 Hey all. I have table1(id) and table2(id, table1_id). How do I delete all rows in table2 that have table1_id not in table1.id, i.e. dangling/stale/orphan rows? May 29 14:33:05 base.delete("table2", "table1_id NOT IN (SELECT id FROM table1)", null). Will that be efficient? May 29 15:01:27 is this the right channel for rooting help/troubleshooting, or would that be @android-root May 29 15:01:35 ? May 29 15:08:09 Anyone here use gradle-retrolambda? May 29 15:14:57 nlaveck: #android-root is probably much better choice. May 29 15:17:21 Any idea how I could parse a JsonObject property of my JSON blob to a string field in my Java class using GSON? May 29 15:17:40 I want to keep the raw json representation for this one property May 29 15:22:52 anyone here also code obj-c ? can you tell me if these 2 bits of code have the same functionality in java and objc? http://pastebin.com/Nb9JQU52 May 29 15:24:01 http://www.sonymobile.com/us/products/accessories/smartwatch/specifications/#tabs - Is there any Android watch with speaker/head phone option for doing playback/record (webRTC) May 29 15:31:20 Gaz`: dare I ask what you're even trying to do? May 29 15:32:10 lov: i am trying to use webRTC on Android watch hardware. Is there any Android based watch hardware available with sound card built in on it? May 29 15:32:42 IamTrying: How the hell should I know? May 29 15:32:54 don't just glom onto anyone who's active May 29 15:33:44 lov: oh sorry, you are with Blue shirt. thought you had idea.. about it May 29 15:34:25 wget, did you just answer my question 12 hours later May 29 15:35:09 LG released Hardware Watch and Sony too. But are they using Sound card built in? May 29 15:53:04 In 8 minutes "Infinum Android Talks #05 - Square tape, UI optimization, DbInspector, Android Labs notifier, OnSavedInstanceState" starts here https://plus.google.com/events/cjta7erusb4cc75qess53tdgj9k May 29 15:53:50 google hangouts? May 29 15:54:15 seems cool May 29 15:55:18 I just found that yesterday I missed the first four talks May 29 15:56:23 Mango_Man: do you know in this room #android-dev if knowledgeable persons are here or mostly Juniors? May 29 15:56:38 I never get a single correct answer from here yet. May 29 15:56:50 IamTrying: if no one's responding, it means they don't know the answer to your question May 29 15:56:57 or they're just busy doing something else May 29 15:57:53 OK - thank you Mango_Man May 29 15:58:40 so there's no way of using the stream api on android, right? May 29 15:59:05 what is the stream ap May 29 15:59:05 api May 29 15:59:35 functional methods on collections May 29 16:01:03 IamTrying: I don't know what you mean by "blue shirt" May 29 16:01:47 anyway, there are some pretty smart people here, but you usually have to wait for the west coast to wake up. May 29 16:02:34 lov: are you implying there aren't any good developers on the east coast? May 29 16:02:44 or anywhere else May 29 16:03:00 well I can only speak for myself, but out of the sample size of 1 that is a good assertion to make. May 29 16:03:27 also, IamTrying, apparently the Galaxy Gear does. May 29 16:32:58 In frameLayout I have an webView and then an invisible ImageButton. What I set the button to visible, The button is still hidden even though it shouldn't. why? May 29 16:33:32 yoavst: maybe the webview is being drawn over the imagebutton May 29 16:33:45 How do I make it not to being drawn over? May 29 16:34:01 yoavst: switch the order? May 29 16:34:27 yoavst: maybe that'll work. the imagebutton should come second in your framelayout. May 29 16:34:44 Mango_Man: He is the last on the FrameLayout May 29 16:34:49 *it May 29 16:34:52 hmm May 29 16:35:21 you could try JakeWharton's scalpel and see what's actually going on May 29 16:35:25 yoavst: May 29 16:57:55 How do you change the Project Language Level in android studio? May 29 16:58:35 vozz: you mean what level? May 29 16:58:39 of android or java May 29 16:58:49 Java May 29 16:59:12 go to project settings May 29 16:59:24 ctrl + alt + shift + s May 29 16:59:33 cmd + ; on mac May 29 16:59:39 Yup May 29 17:00:17 Project Settings -> project May 29 17:00:28 I don't see that May 29 17:00:29 and in left => project language level May 29 17:00:47 http://a.pomf.se/jkrjso.png May 29 17:01:38 http://wstaw.org/m/2014/05/29/snapshot3.png May 29 17:01:49 i have a a2dp / AVCTP question May 29 17:01:55 Why does mine look so different :( May 29 17:01:57 if someone has a sec to /msg me May 29 17:02:07 its intellij May 29 17:02:10 but it should be the same May 29 17:02:21 at least last time it did :) May 29 17:03:00 i that a gradle project ? May 29 17:03:10 *is May 29 17:04:00 (bluetooth implementation/limitation type question, re: remote listing of files to stream from my phone, setting up the stream to that specific file i choose, etc) May 29 17:04:38 vozz: Google targetCompatibility and sourceCompatibility May 29 17:04:58 It has gradle files yeah May 29 17:06:14 SimonVT: I have both of those set to VERSION_1_8, I'm trying to set Language Level to Java 8 May 29 17:07:39 I have a Fragment with a ListView which performs a network request. There are three states I need to maintain: The state where the network request fails (error view), the state where the list is empty (empty view), and the state where the ListView is not empty. Is there a pattern to accomplish this? May 29 17:07:41 I attempted to use 2 ViewStubs (empty, and error views) and the ListView's setEmptyState method, but I feel like this is suboptimal May 29 17:08:03 1_8 is java 8.. Which android doesn't support May 29 17:08:21 I'm using this: https://github.com/evant/gradle-retrolambda It's a backporting of Java 8 lambdas May 29 17:08:44 vozz: so set languge level in gradle then May 29 17:09:18 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Using-sourceCompatibility-1.7 May 29 17:09:38 Hm... It doesn't seem to be working when I compile though May 29 17:09:45 It compiles fine with normal code May 29 17:09:55 but if I add a Java 8 lambda as a test it throws a ton of errors May 29 17:10:03 lol May 29 17:10:06 it doesnt support java 8 May 29 17:10:12 Are you building with java8? May 29 17:10:30 gordon_: https://github.com/evant/gradle-retrolambda May 29 17:10:38 The compatibility things are just passed to javac May 29 17:10:55 What version of javac depends on JAVA_HOME May 29 17:11:06 I'm not really sure, I've done everything in that readme, and I just hit the play button in android studio May 29 17:11:20 i would never use it May 29 17:11:21 How do I check? May 29 17:13:08 you know that it's based on ugly hack, dont you ? May 29 17:13:43 gordon_: I don't really mind, I'm doing functional reactive programming in Java, so it's pretty horrible without lambdas May 29 17:13:50 java -version would be the first place to start.. Dunno if javac has the same May 29 17:14:20 I have to use things javac 1.6.0_45 May 29 17:14:24 woops May 29 17:14:30 vozz: so why not scala then ? May 29 17:14:32 1.6.0_45 is the version May 29 17:14:48 gordon_: Can you do android apps with Scala? May 29 17:14:52 yes May 29 17:15:05 Don't I have to include a huge runtime? May 29 17:15:27 it's going through proguard May 29 17:15:36 so minimal program is like 500 kb May 29 17:15:38 or something May 29 17:15:47 Oh right... Interesting May 29 17:16:50 Is there a reason Scala works well and Clojure doesn't work so well?> May 29 17:16:53 https://github.com/jberkel/android-plugin May 29 17:17:03 no idea May 29 17:17:14 I've never written single line of code in clojure May 29 17:17:25 http://clojure-android.info/ May 29 17:17:29 seems like it works May 29 17:17:50 scala is probably more mature for android May 29 17:17:53 no idea May 29 17:18:22 How similar are Scala and Java? like how easy is it to port java code to scala code? May 29 17:18:53 you dont need to port java code to scala May 29 17:19:07 it will mostly work if you're not doing some magic May 29 17:19:22 just put java code in main/java and scala in main/scala May 29 17:19:43 Ah, cool May 29 17:19:47 maven / sbt / gradle will compile both of them May 29 17:19:58 sbt will be the fastest AFAIK May 29 17:20:04 at least it should e May 29 17:20:05 *be May 29 17:20:19 And presumably the clojure thing would work the same way May 29 17:20:36 sorry, dont know May 29 17:20:47 I've written test program in scala at least May 29 17:20:54 and never touched clojure May 29 17:29:12 When I stop my intent service, I get A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x0000000c on some devices, any idea how to debug this? May 29 17:29:21 It's posible coming from the native part and there is no strack trace May 29 17:29:27 it's obviously* May 29 17:29:54 platzhirsch, can you paste the native part? May 29 17:30:03 EPG: I have no native part May 29 17:30:09 I am only using SDK code May 29 17:30:17 might be related to the MediaPlayer May 29 17:30:20 oh ok May 29 17:31:53 guess I need to retrieve the tombstone or something May 29 17:35:34 What major advantages does programming for Android in Scala have over Java. It just seems very troublesome to be able to be up to date with anything Android when Java is supported right off the bat. May 29 17:35:59 Seems troublesome to use not-Java for Android May 29 17:37:06 Phonegap at least has the ability to say that it is deployable to multiple platforms even though it's a pain to integrate flawlessly with Android May 29 17:47:06 wtf, I create 2 pending intents as actions for my notification, one with string extra "pause" one with "stop" but when I press them, both seem to have "pause" as extra May 29 17:47:30 but this seems to be right doesn't it? http://pastebin.com/gSxGh3Z9 May 29 17:50:16 Memorion, I guess there is only one PendingIntent May 29 17:50:50 "A common mistake people make is to create multiple PendingIntent objects with Intents that only vary in their "extra" contents, expecting to get a different PendingIntent each time. This does not happen." May 29 17:50:55 http://developer.android.com/reference/android/app/PendingIntent.html May 29 17:51:19 EPG Oh, thanks! May 29 17:51:32 you're welcome :) May 29 17:52:01 I suggest to use different request codes May 29 17:55:52 so I just changed the first zero to a one and it works now, but I kind of feel like that's not the "right" way to do that May 29 18:01:41 Memorion, I think the best solution in your case is in fact to just use different request codes May 29 18:05:05 ok, thanks May 29 18:44:42 What's best out of eclipse and android-studio? Is android-studio less unstable than eclipse or less likely to break command line builds? May 29 18:46:45 intellij May 29 18:48:05 eclipse is still the official recommended stable developing environment. android studio is there but classified as early access preview May 29 18:48:22 intelij May 29 18:48:42 sure you can use intellij if you want May 29 18:50:24 intellij all the things May 29 18:50:47 ^^^ May 29 18:52:51 i liek eclipse because it's purple May 29 18:54:20 android-studio is intellij May 29 18:54:39 Could not find class MyClass$2 referenced from method MyClass.myMethod May 29 18:54:49 sounds like a personal problem. May 29 18:55:17 deeply personal May 29 18:55:36 while using Collections2.filter with an anonymous predicate May 29 18:55:36 onr intellij is everything as is, as is not everything intellij is. May 29 18:55:49 predicate May 29 18:55:55 * jug6ernaut feels likes he's back in english class May 29 18:56:10 import com.google.common.base.Predicate; May 29 18:56:30 Hey all May 29 18:56:39 more mathematical predicate rather than linguistic May 29 18:57:38 my guess would be that something is keeping a reference to the Agenda class somehow, but I can't see it May 29 18:58:05 I pass an argument into the method before it spins off the filter.... does it need to be static final? May 29 18:58:24 nope, doesn't let me do that May 29 19:02:42 a strange message just popped up while I was connected to my remote server which I have root access to, when I was trying to mmap it May 29 19:02:45 nmap* May 29 19:02:55 "App has not explicitly requested SUPERUSER_ACCESS in manifest" May 29 19:03:00 there's such a permission? May 29 19:06:06 the emulator finds and uses HTTP proxies.. what exactly does that mean? May 29 19:06:25 Sicp yes May 29 19:06:40 do web browsers on the virtual device use the proxy? or do all apps have a way of using an http proxy? May 29 19:06:46 what do you mean yes, it doesn't show up here at all, nor anywhere where permissions are listed May 29 19:06:54 http://developer.android.com/guide/topics/manifest/uses-permission-element.html May 29 19:06:57 what's its name? May 29 19:07:10 this is unheard of! May 29 19:07:16 i know May 29 19:07:18 but it exists May 29 19:07:20 i also wonder how it found port 8188 May 29 19:07:23 what's it called May 29 19:07:24 *8118 May 29 19:07:29 SUPERUSER_ACCESS May 29 19:07:35 what.what.which? May 29 19:07:42 it doesn't show up in intellsense May 29 19:07:44 just put May 29 19:07:46 android.permission. May 29 19:07:48 android.permission most likely May 29 19:07:49 SUPERUSER_ACCESS May 29 19:07:57 like any othe rpermission May 29 19:08:02 well ok...let's see May 29 19:09:17 ah, it's actually ACCESS_SUPERUSER May 29 19:09:22 the message just popped up again May 29 19:09:26 SUPER_ACCESS :> May 29 19:11:09 Sicp, which app is that ? May 29 19:11:19 nah I'm writing it May 29 19:11:28 "Process system isn't responding, close it?" <= what does that mean? May 29 19:11:30 but the mmap module is taken as is May 29 19:11:35 inside, it prompts for this May 29 19:12:10 cybrNaut: you're in for a bad time :> May 29 19:12:30 lov: i'm intercepting http proxy traffic, piping it through socat.. would that cause it? May 29 19:12:39 ah shit.. no apps May 29 19:12:54 only Camera app.. wtf May 29 19:13:00 ah, nevermind May 29 19:13:06 emulator is just slow May 29 19:15:17 shit.. sniffing port 8118 does nothing.. no traffic May 29 19:16:13 what about GC_EXPLICITY May 29 19:16:14 -Y May 29 19:16:27 do you know any usual cases where it starts to come up? May 29 19:16:34 alarming 3% free messages all over the place May 29 19:17:04 I read that it comes up when you call System.gc(), but I haven't called that anywhere. If anything, I need to be calling it May 29 19:19:27 mannnn java threads need a whole major May 29 19:20:38 why would the emulator supprot HTTP proxies, but not SOCKS proxies? May 29 19:21:02 that's shit May 29 19:21:43 apps apparently have non-HTTP traffic too May 29 19:25:17 I want to hit Eclipse with an axe to the face! May 29 19:25:28 CULLED! May 29 19:25:55 I have both x86- and ARM-based AVDs. When starting them with the emulator, I use the emulator binary, not emulator64-arm or emulator64-x86. In turn, the emulator tool figures out on its own which flavor of the emulator should be executed. Later on I need information on the architecture of the running AVD. What's the easiest/best way to obtain such information? May 29 19:26:32 https://gist.github.com/anonymous/315beac777c3f026b622 May 29 19:26:38 What in the world am I doing wrong? May 29 19:27:57 depends on what in the world you're trying to achieve May 29 19:30:45 I'm trying to get the time slots that fall on a certain day May 29 19:31:33 Hello helpful people. I'm trying to figure out if there's a way to trigger a Web Search within com.google.android.googlequicksearchbox (Google Now/Search). and have it receive the search request as if it was a voice command.. without the user actually speaking. What I want to do is send "Define Thermodynamics" to google now.. and have it speak back the definition. Right now I can May 29 19:31:34 just get Google Now to display back the search result visually (using android.intent.action.WEB_SEARCH and putting a "query:Define Thermodynamics" in the extra field. May 29 19:31:47 the road block seems to be "Could not find class 'MyClass$2', referenced from method MyClass.getTimeSlots" May 29 19:32:11 mdim, System.getProperty("os.arch") ;-) May 29 19:32:30 returns arm*** or i686 or whatever you have May 29 19:34:18 wireshark users-- how do you filter on the android emulator (regardless of port used)? May 29 19:35:50 If I try android.speech.action.WEB_SEARCH it prompts the user to say something... I'd like to provide the android.speech engine the text that the user "has already said".. essentially. Ideas? May 29 19:38:44 cybrNaut: patches welcome! May 29 19:39:59 cybrNaut: wrt filtering, I'm not sure that you can filter based on the android emulator, any more than you can on a particular local process. May 29 19:41:25 lov: are you saying it's not possible to filter by process id? May 29 19:41:48 i mean, android developers must have a practical way to sniff traffic May 29 19:42:04 wireshark may not be the right tool for the job May 29 19:44:59 typically you know the source/dest targets ahead of time? May 29 19:45:53 http://stackoverflow.com/questions/1339691/filter-by-process-pid-in-wireshark May 29 19:46:00 oh my god May 29 19:46:09 found that system.gc() call! May 29 19:46:13 http://stackoverflow.com/questions/4976566/what-do-gc-for-malloc-gc-explicit-and-other-gc-mean-in-android-logcat May 29 19:46:17 never do system.gc()! May 29 19:46:24 generally that's a smart call. May 29 19:46:52 cybrNaut: you should be able to filter by device.. not sure about process ID.. ‘android’ – bootp.option.value contains 61:6e:64:72:6f:69:64 - See more at: http://securitystreetknowledge.com/?p=219#sthash.FjsW1r9O.dpuf May 29 19:46:54 its making everything slow May 29 19:48:31 lov, FireBreath: thanks.. will check those pages out May 29 19:50:19 Sicp: calling System.gc is something that you generally only want to do at a time where you want to hint to the VM "OK, if you want to do GC, now is probably a good time." May 29 19:50:36 I already see timely GC_FOR_ALLOC calls May 29 19:50:38 It's not something you just sprinkle into your code. May 29 19:50:40 it's got it handled May 29 19:50:44 yea exactly May 29 19:50:50 this code is so old and bug ridden May 29 19:50:52 university days May 29 19:51:02 gonna go get a coffee while I headdesk some more about google search May 29 19:53:50 how do I determine if the lockscreen is active on API 14+? http://stackoverflow.com/questions/7044868/how-to-tell-if-user-is-on-lock-screen-from-service requires 16 May 29 19:55:49 something better than a broadcast receiver for "android.intent.action.ACTION_SCREEN_OFF" ? May 29 19:59:38 anyone here tried out lambdaj with android? and gotten it working? May 29 20:01:20 Is there any work going on in the Android Open Source project for ListViews that extend GridView, and ListView/GridViews that support horizontal scrolling? May 29 20:01:29 and/or May 29 20:01:54 s/and/and\/or/ May 29 20:05:13 PatrickBic: thx! I'll give it a try May 29 20:06:26 yiati: uh... May 29 20:06:35 I'm not really sure what you're asking for, but have you seen GalleryView? May 29 20:06:38 Like Feedly, http://i.imgur.com/JG50juG.png how can I implement a single scrolling fragment(?) over the next activity? The next activity itself contains a horizontal viewpager. with 3 child fragments. May 29 20:07:13 is java just ridiculously weak when it comes to collections or am I missing some huge subset of libraries that make working with them bearable? May 29 20:07:52 shekibobo: Java has a lot of stuff that Android probably won't get anytime soon. May 29 20:08:03 There's a lot of stuff like Guava meant to fill in the gaps. May 29 20:08:09 Java 8 supports Lambdas, etc. May 29 20:08:44 guava works on android? May 29 20:09:02 I don't know, I don't think so? May 29 20:09:06 (I don't know :( ) May 29 20:09:46 can't wait for rubymotion 3 May 29 20:13:17 continuing, or is there a way to make a L-shape viewpager with different animations? May 29 20:18:30 shekibobo, Guava works on android May 29 20:18:41 but it's a huge bloated library so I strongly suggest you find something smaller May 29 20:18:47 or at least proguard the crap out of your app :) May 29 20:19:15 lov: The Gallery class is deprecated if that's what you're talking about May 29 20:21:38 And ListView should really extend GridView in proper OOP style. May 29 20:22:55 Not really May 29 20:24:05 Why? ListView should be nothing more than a single column GridView May 29 20:25:11 or row, if AdapterViews could specify vertical/horizontal scrolling May 29 20:25:19 which would also be nice May 29 20:27:00 So there's no reason for ListView to exist at all, the user should just set numColumns to 1 May 29 20:28:09 Yeah I mean that works too, I'm just saying that if ListView is going to exist that it should extend GridView May 29 20:30:46 That has nothing to do with proper OOP style, just personal preference May 29 20:32:02 They chose to implement most logic in a common super class and having subclasses just layout children May 29 20:33:29 i'd be more ok with that if gridviews allowed headers. May 29 20:34:11 That too May 29 20:35:02 hey i want to buy an android phone. anything specific i need to look for regarding the OS? What's the current OS? May 29 20:35:14 4.4 Kitkat May 29 20:35:21 thanks yiati May 29 20:35:49 MotoX/MotoG/MotoE are cool, and Nexus 5 May 29 20:36:17 ohh.. i hear a lot about nexus May 29 20:36:21 ill start there:) May 29 20:37:24 so apparently if I create a com.google.common.base.Predicate, shit just blows up May 29 20:37:59 w00t app complete, that rare feeling :) May 29 20:39:02 rm -rf it for adventure May 29 20:41:24 Gaz`, and the imminent waterfall of crash reports :D May 29 20:52:39 hmm, something was using guava 15 already, bumping to 17 seemed to fix it May 29 21:07:10 did somebody try to compile the samples with eclipse (not studio) ? May 29 21:07:22 got a problem with one of them May 29 21:07:52 probably a newbie one May 29 21:08:17 I don't see the overflow in the activity bar May 29 21:08:30 when I compile the activitybar sample May 29 21:09:34 There's no overflow button pre-kitkat if your device has a menu button May 29 21:10:45 sorry for my newbiness but kitkat = 4.4 ? May 29 21:11:03 yes May 29 21:11:10 oh ok May 29 21:11:20 yeah I'm running 4.3 May 29 21:12:04 but many apps display an overflow in their activity bar, even on 4.3 May 29 21:12:08 do they emulate it ? May 29 21:13:22 yes May 29 21:13:59 ok, now I get it many thanks ! May 29 21:15:26 yeah and the things I've put in the overflow appear when I press the menu button, makes sense May 29 21:15:33 thannks a lot guys May 29 21:21:46 if I destroy the activity which created my service, which in turn uses a broadcastreceiver to listen for an intent, the broadcastreceiver stops working but it looks like the service keeps running, what am I doing wrong? May 29 21:23:38 I start the service with "Intent intent = new Intent(this, MyService.class); May 29 21:23:39 startService(intent);" May 29 21:28:35 Napalm, are you around? May 29 21:57:10 PatrickBic: can I do the same test (which architecture is the underlying AVD) with the adb tool? May 29 21:58:12 adb shell .. once logged in "cat /proc/cpuinfo" May 29 22:50:30 hmm May 29 22:55:51 hello all May 29 22:57:40 how to boot an AVD from the command line with the Dalvik runtime instead of the new ART runtime? May 29 23:39:45 hello May 29 23:39:47 anyone here? May 29 23:40:02 worst IRC entrance ever May 29 23:41:37 lol May 29 23:42:06 could i bother u for your input on a question i have sabton… i already found the solution to my prtoblem May 29 23:42:12 i want to know why it worked though May 29 23:51:39 jaspertheghost: you're better off asking your question, instead of asking whether you can ask your question. May 29 23:53:23 ok i formatted my computer reinstall android studio May 29 23:53:48 so i reopened my prohect and go main.xml no resource identifier found for attribute showAsAction May 29 23:53:58 i remove this pice of code May 29 23:53:59 http://pastebin.com/AUpSBvbr May 29 23:54:05 remove appcompat library May 29 23:54:08 and all is good again May 29 23:54:22 why is that? May 29 23:55:17 I just gave $50 to reading rainbow May 29 23:55:27 awesome May 29 23:55:29 wrong window May 29 23:55:34 they already reached there goal btw May 29 23:55:35 lol May 30 00:10:38 what permission does my app need to create a file in the Movies directory? May 30 00:11:02 just regular file permissions May 30 00:11:28 WRITE_EXTERNAL_STORAGE? May 30 00:12:27 Hi all. General question about an activity's life cycle. How would one handle code that Only needs to be ran the first time around? Build in a simple check with a bool would do ofcourse, but I feel like I'm missing something May 30 00:12:28 I am getting the error "open failed: EROFS (Read-only file system)" May 30 00:13:00 is it on the SDcard May 30 00:13:03 or internal storage May 30 00:13:04 http://developer.android.com/reference/android/os/Environment.html May 30 00:13:04 no May 30 00:13:08 it is in the movies directory May 30 00:13:10 wherever that is May 30 00:13:17 Environment.DIRECTORY_MOVIES May 30 00:13:19 yea May 30 00:13:25 Hi all, have any of you done SDL development for android? May 30 00:14:02 i've been banging my head for days now.. Can anyone please tell me the function which makes the text underline as you typed.. On the legacy samples SoftKeyboard. May 30 00:14:30 try -> READ_EXTERNAL_STORAGE May 30 00:14:38 actually May 30 00:14:38 nvm May 30 00:14:39 but I am trying to write a file May 30 00:14:44 sorry long day at work haha May 30 00:14:56 hmm idk… then seems like its mounted read/only May 30 00:15:27 I desparately need to get a file off my application's internal storage May 30 00:15:40 my phone is not rooted and I seem to be completely locked out of doing so May 30 00:16:21 What's the library I'd need to use __android_log_print()? May 30 00:16:47 so I was trying to copy the file to a place my PC can read, which is the Movies directory May 30 00:17:19 can u use ES file explorer? May 30 00:17:30 what is that? May 30 00:17:47 a sweet application for doing file manipulation on the droid May 30 00:17:49 in the plays tore May 30 00:18:00 create directory copy files May 30 00:18:06 mount FTP and copy files from local to ftp May 30 00:18:08 etc .. May 30 00:19:21 wait I think I have the directory name wrong May 30 00:19:30 I am trying the downloads folder now May 30 00:19:37 but the path is /Downloads/ May 30 00:19:58 according to adb shell ls May 30 00:20:07 there is no Downloads folder on root... so where is it actually May 30 00:21:39 lol May 30 00:21:47 That will do it May 30 00:22:06 erisco when you compiled ffmpeg did you see a bunch of warnings? May 30 00:22:12 yes May 30 00:22:18 but that is fairly typical compiling anything May 30 00:22:30 any idea where the Download folder is? or the Movies folder? May 30 00:22:47 Movies May 30 00:23:00 /Movies I believe May 30 00:23:03 when you attach the device to your computer via usb it mounts a drive May 30 00:23:13 at the root of that drive is Movies, Music, Download, etc May 30 00:23:21 but where is it on the android file system? May 30 00:24:33 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) May 30 00:24:35 WHat happens when you Log May 30 00:24:37 that May 30 00:24:38 Nvm, I think I figured this out. Thanks anyways. May 30 00:24:53 change pictures to movies May 30 00:26:27 /mnt/sdcard/Movies May 30 00:26:52 Are you doing file manipulation via the NDK? I haven't looked yet but maybe the NDK doesn't have permissions to add to the folder? May 30 00:27:08 no I am doing it in java May 30 00:29:23 yay it worked May 30 00:29:31 ;-) May 30 00:29:37 now I can look at the movie file in a hex dump and figure out what is wrong with it May 30 00:29:38 hopefully May 30 00:29:43 has anyone had trouble with windows 8 and adb drivers? May 30 00:30:15 Make sure the dimensions are the same from what the camera has take to what's being sent to the encoder May 30 00:30:26 THat's usualy a common issue when encoding video to make May 30 00:31:01 the code I borrowed is just generating dummy frames May 30 00:32:10 Did you write the FFMpeg JNI code already? May 30 00:32:56 it is just from example code that generates a second worth of dummy frames and encodes them May 30 00:33:19 problem is that the phone is unable to play back the file ... and I know almost nothing about video formats May 30 00:33:20 That link u sent me last night? May 30 00:33:24 probably May 30 00:34:53 it is encoding using h.263 May 30 00:35:09 and in the code it says it is appending the end sequence "000001B7" to make it an mpeg file May 30 00:35:18 I do not know what extension the file should have May 30 00:35:22 I presumed .3gp May 30 00:35:38 try mp4 May 30 00:35:53 I notice some of the ffmpeg tutorials are like that May 30 00:36:05 its like the writers took code form two different projects and put it together May 30 00:36:18 mp4 did not play either May 30 00:36:26 says the file is corrupted May 30 00:36:35 how many frames did you render? May 30 00:36:42 25 I think May 30 00:37:12 150 frames actually May 30 00:37:36 Note that libavcodec only handles codecs (mpeg, mpeg4, etc...), not file formats (avi, vob, mp4, mov, mkv, mxf, flv, mpegts, mpegps, etc...). See library 'libavformat' for the format handling May 30 00:38:25 is this mpeg thing supposed to be put in a container format like 3gp? May 30 00:40:23 I am going to blindly assume so May 30 00:40:42 I'm not sure. Still working on figure it all out myself. May 30 00:40:54 I could actually use your help with something when you get a chance May 30 00:41:03 ask away May 30 00:42:10 So I have the NDK installed. I downloaded FFMpeg for Android and just finished building the. Now after readying everything I believe I'm supposed to create an JNI adapter which will handling the communciation between java and C May 30 00:42:25 I assumed I would have to do this encoding in C May 30 00:42:44 And send each frame through the JNI adapter May 30 00:42:45 there is a convention to use both on the C and Java sides May 30 00:43:03 but you make it sound like you can just start writing in java once you have the FFMpeg installed May 30 00:43:40 ffmpeg is a C library May 30 00:43:54 if you want to make those C functions available to Java you have to write the bindings May 30 00:44:05 or someone has probably already done it on github May 30 00:44:30 personally I do not care to use ffmpeg from java so I am just writing c code May 30 00:45:00 So you're making your own JNI? May 30 00:45:12 Sorry I'm new to Android. May 30 00:45:14 what do you mean my own JNI? May 30 00:45:21 jni stands for "java native interface" afaik May 30 00:45:55 which is a standard for how native functions can call java methods and java methods can call native functions May 30 00:45:57 The tutorials I've read show creating an interface in Java for the FFMpeg commands May 30 00:46:50 I think what's happened is. Who ever created your OpenCV features created the interface I'm talking about May 30 00:47:14 you write a function in C, lets say it is void foo(int); May 30 00:48:12 k May 30 00:48:57 to call this from Java you are going to write a function which looks like JNIEXPORT void JNICALL Java_my_package_name_MyClass_foo(jint i) { foo(i); } May 30 00:49:18 there might be some conversion to go from jint to int, I do not know May 30 00:49:35 This tutorial I'm going by may have overcomplicated the process May 30 00:49:43 jint is just an int. anyhow, yes, basically accurate May 30 00:50:02 anyways, on the Java side you will have class MyClass { public static native void foo(int i); } May 30 00:50:25 there's a lot of tutorials on JNI out there. If you're going to run native code from java, you need to create the JNI interface to map into java classes and deal w/ all the data translation of anything more complex than basic ints and such May 30 00:50:40 any JNI tutorial will apply to android in most cases May 30 00:50:45 actually on the C side the parameter list is (JNIEnv *jenv, jclass, jint i) but whatever May 30 00:50:55 lol May 30 00:51:17 nothing that special about it, just a convention to follow May 30 00:51:54 well, there's some special things, specifically jenv and jclass May 30 00:52:04 anyhow it's more complex than you're going to get on IRC, look up some tutorials May 30 00:52:58 I am May 30 00:53:07 Just wondering if this was the route erisco was going May 30 00:53:23 I was hoping for a simple pass through to ffmpeg that I could call May 30 00:56:58 erisco: what app are you trying to make ? May 30 00:56:58 a video recorder and player ? May 30 00:57:11 Is it possible to get a screenshot of a connected android device through Eclipse? May 30 01:02:01 Da_Rhyno: does it have device name or just some numbers as the name ? May 30 01:04:45 if its not working try finding the specific newest USB drivers for your device from its official place May 30 01:14:59 erisco: Here's something you might need May 30 01:15:00 http://stackoverflow.com/questions/14298028/converting-yuv420p-to-rgba-using-opengl-es-2-0 May 30 01:27:49 Can someone help me out with this question, either in this chat or on stackoverflow: http://stackoverflow.com/questions/23912094/how-do-you-make-multiple-instances-of-the-same-activity-for-a-grade-tracking-app May 30 01:28:07 I was told I need to learn MVC but i can't figure out what that is in android terms May 30 01:52:30 okay I restated the question lol, here's a better version I think:http://stackoverflow.com/questions/23945805/how-do-can-i-implement-mvc-for-a-grade-tracking-android-app May 30 01:58:28 is it ever possible for an app to be told that the device is being called, and to know who is calling? May 30 02:10:58 how can i use gradle with android studio? May 30 02:11:06 that is switch my project to use gradle May 30 02:20:56 is it possible to access the assets directory without using assets manager? May 30 02:21:20 developing with the NDK here - porting from iOS. does all assets have to be accessed through this AssetManager thing? May 30 02:24:02 shingshang: I'd think about why you are having to deal with UI stuff in the NDK part. May 30 02:24:53 kurtisnelson: porting an iOS c++/opengl game to android May 30 02:25:07 ok so opengl. that makes some sense May 30 02:25:08 and I have to load resources, somehow May 30 02:25:29 in this case, you probably want raw resources versus the asset framework May 30 02:25:41 oh, so you can just put them on some folder? May 30 02:25:56 can it preserve directory structure? May 30 02:26:22 raw assets. May 30 02:26:24 look at https://groups.google.com/forum/#!topic/android-ndk/ppCEAY6Hpag May 30 02:26:55 you will have to do a little work in the java May 30 02:27:10 thanks, will take a look at that thread May 30 02:27:17 fingers crossed somewhere the answers will lie within May 30 02:29:58 yeah kind of looks like there's not a clean way to do it May 30 02:30:20 but I know raw is the path you want to go down, since you don't want to deal with resource qualification on native May 30 02:31:39 hmmm.. soo apparently I can't have two resources with the same first name, even if the extension is different? May 30 02:31:43 like something.txt and something.zip May 30 02:31:49 raw resources* May 30 02:33:53 nope May 30 02:34:05 because they go into R as R.raw.name May 30 02:34:11 no extension May 30 02:41:40 shmooz - It's a mix of letters and numbers May 30 02:42:07 shmooz - FA29RS302953 May 30 02:54:11 I figured out what the problems were earlier though, thanks. May 30 02:56:19 Hey I wanted to ask if Canvas.drawLine() adds shadows to line a little to the right or am I just crazy? If so how do I stop if from doing that? May 30 02:56:59 hello all May 30 02:59:27 zymaster, take a screen shot and zoom in May 30 02:59:45 but it shouldn't be adding a shadow **** ENDING LOGGING AT Fri May 30 02:59:59 2014