**** BEGIN LOGGING AT Mon Apr 21 02:59:58 2014 Apr 21 03:00:09 i have one in play; i don't discuss it much :) Apr 21 03:00:29 especially now its kinda embarrassing, since i wrote it around froyo Apr 21 03:00:32 and it looks like froto Apr 21 03:00:39 *froyo, so atm i'm reworking that UI Apr 21 03:00:50 no problem. that's cool Apr 21 03:01:05 pm me the name? :) Apr 21 03:01:35 hey have you heard of roboelectric? Apr 21 03:01:50 i dont use it; but yeah i've heard of it Apr 21 03:02:02 can say much about it Apr 21 03:02:25 i bet 'unit tests' are the blocking thing for gradle-plugin 1.0 Apr 21 03:03:13 hey so what's mqtt all about Apr 21 03:04:16 good for wearables huh? Apr 21 03:06:13 mqtt is just a small tech for IoT Apr 21 03:06:32 but that field is very up in the area, protocol wise Apr 21 03:06:52 i bet if google adopts a protocol, it would become a defacto standard, or apple Apr 21 03:07:06 right now everybody has a proprietary thing Apr 21 03:07:12 problem with mqtt is that its tcp Apr 21 03:07:30 tcp i shard on very small low power devices Apr 21 03:07:35 *is hard Apr 21 03:07:43 70mW Apr 21 03:08:02 so why is it tcp and not udp Apr 21 03:09:21 thats the way ibm designed it; mqtt-sn is UDP i think Apr 21 03:10:55 i'm guessing mqtt uses tcp for stateful connections. if your connection dies, the broker can distribute notifications Apr 21 03:11:15 so other devices know something happened Apr 21 03:11:51 mqtt also adds QoS guarantees above all of that Apr 21 03:13:21 gotcha, so what does your app use it for? Apr 21 03:13:55 one of the two apps will use it for sending weather data Apr 21 03:13:59 2 apps use it Apr 21 03:15:20 hey Apr 21 03:15:50 When SQLiteDatabase.rawQuery() fails to find any rows, does it return null? Apr 21 03:16:00 For some weird reason this info isn't in the api docz Apr 21 03:31:00 Koolaids: have you checked if result==null? Apr 21 04:23:18 how do i append new message to the bottom of a listview? Apr 21 04:29:36 add it to your data source and notifyDatasetChanged Apr 21 04:30:20 hello all Apr 21 04:32:57 for an asynctask, how can I get it to loop without having the thread by calling that loop? Apr 21 04:33:33 don't use async task... Apr 21 04:35:02 thats probably why im getting unexpected results. In my asynctask doInBackground I have a while(true) and even though the UI is responsive -- any other threads running using another Asynctask I have are not responding Apr 21 04:35:07 it's not meant to loop Apr 21 04:35:21 so a vanilla Java Thread then? Apr 21 04:35:31 that's because async task is serial by default Apr 21 04:36:17 No parallel by default because google deems developers too stupid to leave it parallel by default Apr 21 04:36:57 maybe I need a service for this? Here's what I'm doing. I have a Parrot AR Drone that I'm getting NavData from. I send a ticket datagram to the correct port and it starts feeding me a tons of nav data. I'm displaying that data on the UI (Google Glass) Apr 21 04:36:59 executeOnExecutor Apr 21 04:37:34 I need that thread to run infinitely so I can keep getting that nav data and feed to the UI Apr 21 04:37:51 just use a plain thread Apr 21 04:38:00 ok Apr 21 04:39:36 so a service wouldn't be a good idea here or doable but overkill? Apr 21 04:42:35 thanks pfs -- i'll look at timed ui updates articles I just googled Apr 21 04:44:24 im php and c++ programmer and im working with android recently. i have a lot of problem with java error and exception. i think there are a lot of Non-understandable lines of error that i can't understand anything of it. i wrote a simple app that press on button and another activity launch but it forced close with exception with this error: http://axgig.com/images/05785975447356009631.jpg but i can't understand a character of this error. i try to under Apr 21 04:45:03 check line 18 on Main.java Apr 21 04:47:08 f2prateek: line 18 http://axgig.com/images/94051745203763323886.jpg Apr 21 04:47:36 your b variable is null Apr 21 04:47:46 what does main_activity look like Apr 21 04:47:57 main_activity.xml that is Apr 21 04:51:27 f2prateek: http://wikisend.com/download/847044/Activity.zip Apr 21 04:52:17 did you look in main_activity.xml? have you defined a button with id as button1? Apr 21 04:52:24 QubeZ, use a service for lifecycle Apr 21 04:52:26 AndroidManifest.xml http://codepad.org/U3JCkLQC Apr 21 04:52:46 main_activity.xml doesn't have button1 as an ID Apr 21 04:52:50 why are you posting your manifest? Apr 21 04:53:10 where is main_activity.xml Apr 21 04:53:20 in Activity/res/layout Apr 21 04:53:31 found Apr 21 04:53:33 you'er using it on line 15 in Main.java Apr 21 04:53:43 You put your button1 in fragment_main.xml instead Apr 21 04:53:55 wow Apr 21 04:54:07 ohhh where is my button Apr 21 04:54:17 why eclipse doesn't return error ? Apr 21 04:54:24 try changing line 15 to fragment_main.xml and see what happens Apr 21 04:54:41 eh, R.layout.fragment_main Apr 21 04:56:17 piracyd3: wordked Apr 21 04:56:26 what happen ? Apr 21 04:57:04 i have three xml Apr 21 04:57:09 hmm Apr 21 04:57:54 I'm not an expert in explaining Activity's lifecycle, but I'll try. In onCreate() method, your app will try to inflate a layout. In your case, it is fragment_main.xml Apr 21 04:58:19 inside that layout, you've put a Button component with an id of button1 Apr 21 04:58:45 in order to use that button, you will need to instantiate it (Line 18) Apr 21 04:59:19 providing its corresponding id Apr 21 05:00:12 Anyone please correct me if I'm wrong :p your main_activity.xml doesn't have Button component, so it will return NullPointerException Apr 21 05:00:32 i know it's because of update adt and sdk when i did everything broke . i thin ADT developer doesn't test their work and put their changes directly on repository. i did just like before but this time fragment_main.xml added and i didn't know it. i report a bug for these problems here: http://code.google.com/p/android/issues/detail?id=68592 Apr 21 05:00:44 i want to accept lines of text from a telnet-based server and store each line in an sqlite record. Then I want to notify the UI that there are new lines. Preferably displaying in a listview. I don't want to rerender the listview every time a new line comes in, i just want to add it to the listview and scroll to the very bottom. How can I do that? Apr 21 05:02:22 mintux what do you mean? your earlier problem was just a layout error Apr 21 05:04:08 damccull, i'm having the same problem too but without telnet stuff. I want the new message to append to the bottom of the listview Apr 21 05:04:14 piracyd3: i know but the template changed when i updated . i remember there is only one main_activity by default while it changed to fragment and i wrote my code with main_activity but put my button on fragment without i know Apr 21 05:05:10 piracyd3: you can invalidate the listview's adapter and make it reload, then force a scroll to bottom probably...but I don't know if that's the most efficient way to do it. Really taht's what I want to know Apr 21 05:07:12 mintux: i'm not really sure why. but i think it's a new feature of ADT. See this http://stackoverflow.com/questions/22289164/adt-blank-activity-created-with-fragment-activity/22694256#22694256 Apr 21 05:12:18 mintux: the updated tools will simply generate a different layout, existing code will continue to work regardless of which version of ADT you were using. Apr 21 05:12:57 f2prateek: before this update i generate my project from command line then import to adt . Now the import doesn't work Apr 21 05:14:21 what isn't working in the import? Apr 21 05:18:06 ALso the \'unwanted project' is because you had your minSdkVersion less than 14, which sets up the actionbar compatiiblity library so you can use the action bar api's on older devices Apr 21 05:23:06 f2prateek: see this movie i show all things in this movie https://www.youtube.com/watch?v=2ViiSx0pqFo Apr 21 05:23:07 OK debuggin' time. Whilst adding a parcelable object of my making to an intent, then using localbroadcastmanager to send that intent elsewhere in my app, then trying to get that parcelable back out, I am getting a null pointer exception. Stepping through, I find that the intent on receiving side DOES have something in it, but if I expand the arrows in the variables display, I see java.lang.ClassNot Apr 21 05:23:08 FoundException: [LObject;.....so the relevant code is https://gist.github.com/damccull/6185798204fc2c3f7359. How do I fix this? Apr 21 05:23:35 f2prateek: i remember before update sdk and adt i choose old Apr 21 05:23:47 version as min version Apr 21 05:23:54 i don't need action bar and ... Apr 21 05:24:40 then delete it and change the imports Apr 21 05:25:15 f2prateek: i did but i faced to a lot of errors and problems . i prefer adt let me choose what i want Apr 21 05:25:44 of course it gives you a choice Apr 21 05:26:14 either change your minSdk to above 14 so you don't the compat library, or select a non-action bar theme from the drop down Apr 21 05:26:24 both options are given to you when using the wizard to create project Apr 21 05:28:55 f2prateek: but i want my application worked on old device not 4 and after it . but i don't need action bar. another things. ok it give me this option but create only one project . not 2 acompt.. project per new project . use only one Apr 21 05:30:11 If you don't want the action bar, select a theme other than one of the action bar ones (you're selecting holo light with dark action bar) Apr 21 05:31:01 ok let me test it now Apr 21 05:31:35 It creates the second project because you selected thatyou wanted the action bar, and your minimum required sdk was 8 (that you selected). But the action bar is not available on devices before API 8, so it makes the second project, which the is ActionBarCompat project to let you have the action bar on older devices Apr 21 05:32:00 How can I add a devider to a horizontal layout Apr 21 05:32:03 everytime I do Apr 21 05:32:09 it changes the entire layout size Apr 21 05:32:29 ^IN XML Apr 21 05:33:08 actionbarcompat should just be a library isn't it? Apr 21 05:33:36 f2prateek: what least version to doesn't create second project ? Apr 21 05:33:39 eclipse/ant needs it be a library project Apr 21 05:33:51 mintux: select 14 Apr 21 05:33:55 or higher Apr 21 05:44:45 f2prateek: android 4 . yeah i don't have problem with that version . but i select none template with lower version and it makes appcpmpat again. but it's not important point my question is why the new project generated from ADT has error see: http://axgig.com/images/18336539389961310222.jpg Apr 21 05:45:16 when you went to the lower version did you change the theme like I said? Apr 21 05:51:42 f2prateek: exactly this is steps to created that project : 1. http://axgig.com/images/06227749138692728574.jpg 2. http://axgig.com/images/20025114192029401220.jpg 3. http://axgig.com/images/71319473047176222016.jpg 4. http://axgig.com/images/22260093035798845463.jpg Apr 21 05:52:34 ok so it's working? Apr 21 05:59:52 f2prateek: as i sent you a screenshot http://axgig.com/images/18336539389961310222.jpg appcpmpat project created again . and this project (test) has error so NO Apr 21 06:01:05 waht does activity_main look like? Apr 21 06:01:10 the xml file Apr 21 06:03:22 f2prateek: http://axgig.com/images/84818793914484842212.jpg Apr 21 06:06:28 change R.id.container to android.R.id.content Apr 21 06:07:03 error disappear Apr 21 06:11:29 f2prateek: thanks for your help i was very sad but i don't touch anything (no update adt or sdk) until i finished learning android development Apr 21 07:08:59 I am starting a service and I want to know when it ends how can I? Apr 21 07:19:06 http://stackoverflow.com/questions/23121895/my-android-app-is-not-being-updated-on-the-google-play-store Apr 21 07:19:11 can someone help me out? Apr 21 07:19:35 does people use USSD for real time chatting in android? Apr 21 07:31:30 kamol: do you mean for chatting using apps like facebook? Apr 21 07:31:45 yola: yes Apr 21 07:32:57 kamol: no they are using internet. Apr 21 07:33:41 yola: ic, so USSD is only provided by Mobile Operator only? Apr 21 07:34:08 kamol: yeah Apr 21 07:34:39 yola: it is clear now to me. Thank you! :) Apr 21 07:35:02 kamol: u welcome. Apr 21 07:41:17 * Moony22 yawns Apr 21 08:08:59 Is google maps on every android device by default? Apr 21 08:09:50 no Apr 21 08:10:20 not on amazon devices Apr 21 08:10:28 At the moment im using Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr="+location.getLatitude()+","+location.getLongitude()+"&daddr="+plaque.getLatitude()+","+plaque.getLongitude())); Apr 21 08:10:29 not on 3rd party roms, unles you flash it too Apr 21 08:10:52 wanting to get a navigation between the user and a point of interest Apr 21 08:10:53 and the app might just not be installed Apr 21 08:10:56 or be disabled Apr 21 08:18:45 hi guys, i have a mysteryous nullpointer http://stackoverflow.com/questions/23188727/error-passing-data-from-fragmentactivity-to-fragment Apr 21 08:27:03 Oh it seems to open in Chrome when I disable Maps Apr 21 09:17:55 is there a way to avoid using android:layout_below with an ID? can i use someting like "previous item" instead of the actual id? Apr 21 09:35:16 don't think so, what's wrong with using the id? Apr 21 09:35:32 It is regarding gson, getting error in line 24 http://pastie.org/9097159 Expected BEGIN_OBJECT but was BEGIN_ARRAY Apr 21 09:45:48 Anyone know how can I stop android studio from printing deleted log calls? Restart didn't help, neither project clean. Apr 21 09:46:28 You're telling gson your json is an array of Wrapper items.. But the first item in the array is another array, the next two are just longs.. Apr 21 09:49:01 Hi SimonVT, happy easter. :D Apr 21 09:49:02 SimonVT: you are right agian! Apr 21 09:49:44 found the answer under gson doc “Serializing and Deserializing Collection with Objects of Arbitrary Types” Apr 21 09:51:36 n20: hello :) Apr 21 09:54:15 Anyone here been seeing strange issues when using nested fragments + getChildFragmentManager() + FragmentStatePagerAdapter? Apr 21 09:58:45 I have key of pubnub(3rd party real time messaging), which I dont’ want to hard code in the class.. Where do you usally keep such configurations? Apr 21 10:04:47 How can code be ran after a dialog is created? Apr 21 10:07:44 eg. after oncreatedialog Apr 21 10:11:22 is there some sort of onresume? Apr 21 10:11:44 do you mean after a user has dismissed it ? Apr 21 10:12:06 bankai_au: before that Apr 21 10:12:15 whilst it's in the foreground ? Apr 21 10:12:15 but after the view has been setup and the dialog has been created Apr 21 10:12:18 bankai_au: yes Apr 21 10:13:23 I can't have any code after returning AlertDialog.builder.create obviousl Apr 21 10:13:25 obviously* Apr 21 10:13:37 this is a dialogfragment Apr 21 10:25:07 what would cause setReadable(true) to return false if I'm using a file inside my app's files dir? Apr 21 10:27:44 Moony22: there's nothing stopping you running code after you've created a dialog Apr 21 10:30:09 hmm Apr 21 10:31:23 bankai_au: turns out there was something wrong with the method I was calling Apr 21 10:34:00 I call a DialogFragment, which call a AlertDialog.Builder, which has a onShow() handler which sets .setEnabled(false) on a ListView item. This works and the item gets grayed out. My problem is that it is still clickable, why? Apr 21 10:34:38 how can i retrieve the device name? like in my iPad, i can get “Drew’s iPad”. for android, I suppose just “Nexus 7” or whatever would be ok Apr 21 10:47:48 hi guys , i have lenovo s920 phone ! the main problem is there isnt any custom rom that support persian language , so can anyone help me about how can i add persian language to a rom ?! Apr 21 10:50:49 marandi: see the topic Apr 21 10:54:24 I want to add a widget to my app - I have an object that I'd like to associate 1:1 to my widgets. is that... possible, even? Apr 21 10:55:20 I to want to alert using a toast from with in a Thread. to do so I am passing a context for the Thread constructor but it is not working. any help? Apr 21 10:55:21 marandi, learn English Apr 21 10:55:59 shadej: toast has to shown on UI thread or it wont work Apr 21 10:56:08 smallfoot-: good idea ! but it took times Apr 21 10:56:24 I wish Google would have Android only available in English, then all people who don't know English can keep on living in the stone age Apr 21 10:57:09 smallfoot-: your native language is..? Apr 21 10:57:49 robhol, my native language is Swedish, but my phone's, tablet's and computer's system language is set to English Apr 21 10:57:59 Do Google Store apps usually have a 'restore' button for purchases? Apr 21 10:58:32 apple741: restore? Apr 21 10:59:00 in what sense Apr 21 10:59:02 sabton: okay, so to solve this I am trying to use a service ( to display the toast) but I want to start the service in a synchronous way because I need to know when the service ends. is there any way that I can get a notification when the service ends? Apr 21 10:59:37 apple741, if you buy apps on Android ,then you will be stuck with Android forever, unless you want to leave behind all apps you payed for, because don't think you can just go get a iPhone or a Windows Phone and expect you to use the apps you payed for, if they Apr 21 10:59:41 robhol: Sorry I mean like if they have purchased in-an app purchase before and are trying to download it again without having to pay Apr 21 10:59:55 if they're available, you will have to buy those same apps again on the new platform you have on your new phone Apr 21 11:00:01 yeah, you can reinstall it at any time Apr 21 11:00:13 paying for apps is stupid, its a scam to sell apps Apr 21 11:00:27 shadej: Google "android toast service" Apr 21 11:00:30 smallfoot-: you've published how many of them? Apr 21 11:01:00 actually forget it. I don't feel like baiting today Apr 21 11:01:02 robhol, none so far yet, but I have under development, with plans to publish as free open source software Apr 21 11:01:36 sabton: I know how to toast from with in a service I asking if it is possible to start a service in a synchronous way.( I googled it but found no good info) Apr 21 11:02:56 * hackkitten is having a hell of a time figuring out why this Android OpenGL app isn't working properly Apr 21 11:03:07 extending the AndEngine source to support the rendering of 3D models Apr 21 11:03:39 apple741: in-app purchases are locked to a single instance, this is different to an 'app', which is purchased (as it's available on all devices) Apr 21 11:04:23 smallfoot that sounds amazing, and you'll make money how then? Apr 21 11:04:57 tugs for premium users? Apr 21 11:12:55 hey, how can I run tests with gradle against the release buildtype, not only against the debug one? Apr 21 11:13:18 http://stackoverflow.com/questions/20294415/how-to-run-the-connectedinstrumenttest-gradle-task-on-a-release-build Apr 21 11:13:23 no answer Apr 21 11:19:06 strange question, but how do i tell why my code simply stops running? no exceptions, and it’s completely expected to run (no outside influence that i know of) Apr 21 11:19:08 what's the reason for this, are you worried about proguard problems ? Apr 21 11:19:25 app still functions after that, but weirdly Apr 21 11:19:46 ultra-: what do you mean 'stops' ? Apr 21 11:20:20 some methods that are expected to be called, don’t get called… seems like the first one just returns and then the next don’t get called Apr 21 11:20:39 it’s just bizarre Apr 21 11:21:24 ultra-: is it reproducable ? Apr 21 11:21:34 i’m gonna have to just put in logs to see what the last line being ran is Apr 21 11:21:38 yeah every time Apr 21 11:21:53 breakpoint, debug and step through Apr 21 11:22:50 yeah gonna have to, tnx Apr 21 11:38:10 I call a DialogFragment, which call a AlertDialog.Builder, which has a onShow() handler which sets .setEnabled(false) on a ListView item. This works and the item gets grayed out. My problem is that it is still clickable, why? Apr 21 12:09:19 what would be the best thing to do to increase gradle build speeds? better hd? better proc? more cores? Apr 21 12:09:44 osxorgate: https://www.timroes.de/2013/09/12/speed-up-gradle/ Apr 21 12:09:50 but yes, better proc Apr 21 12:10:16 cause im wondering what new amcbook to go for, whether maxing it out will have noticable effect Apr 21 12:10:30 combined with that 15" is slightly too large Apr 21 12:12:24 i have a new MBP with 16 GB and 2.3. Apr 21 12:12:45 definitely get 16 GB ram and the upgraded processor. depends on what your budget is. Apr 21 12:13:27 right now i have 2012 air 2.0ghz i7, feel like things are sluggish Apr 21 12:14:56 funkbox: building does use all cores then? Apr 21 12:14:59 yeah, on my air it's a bit slower. Apr 21 12:16:18 you can run with --parallel Apr 21 12:16:27 it depends on how many projects you have, how many cores etc Apr 21 12:18:22 Android Studio also has settings for that. I'm not sure if it respects the settings.gradle file Apr 21 12:19:16 https://plus.google.com/+AndroidDevelopers/posts/ECrb9VQW9XP Apr 21 12:19:17 you can add org.gradle.parallel=true to your gradle.properties Apr 21 12:26:53 yeah i added that and the daemon Apr 21 13:20:39 how can I force select text in an edit text when its clicked? Apr 21 13:21:05 I don't know, maybe some onClick or onFocus handler Apr 21 13:22:49 Morning Apr 21 13:25:58 Moony22: do this in your onclick listener Selection.selectAll(mEditText.getText()); Apr 21 13:32:39 Napalm: heh, I'll try that now. Apr 21 13:33:25 does it make a difference that it's in a dialog? Apr 21 13:34:49 Napalm: it does not work (your solution). This is what I have: http://pastebin.com/FDJbBKFu Apr 21 13:36:02 Moony22: did you log the click listener.. is it even getting fired? Apr 21 13:36:30 Napalm: it is Apr 21 13:36:40 perhaps its happening too late Apr 21 13:36:50 one second Apr 21 13:37:13 I tried as well doing edittext.setText("") and it clears when clicking on the edittext Apr 21 13:40:35 Moony22: its because the actual clicking alters the selection to get the input cursor Apr 21 13:40:46 you need to make your change after that occures Apr 21 13:44:31 Moony22: try posting it Apr 21 13:45:41 Moony22: http://pastebin.com/Avx30x2r Apr 21 13:46:41 anyone know where I can find the source code for screen capture/screen shots? Apr 21 14:41:32 Napalm: heh, sorry for my VERY slow response Apr 21 14:42:19 the solution you gave results in the cursor moving to the beginning when clicking Apr 21 14:47:56 does anyone here support the Amazon store for Kindles? Apr 21 14:49:11 Easiest way to merge one Intent#getExtras() into another intent? Tried to do this -> https://gist.github.com/rmacy/2ed79414afb2d0c63461 not a Java dev by trade. be easy on me ha. Apr 21 14:51:54 RMacy, I don't know, but there is also Bundle() class Apr 21 15:11:16 anyone know why http://pastebin.com/HJdZc17h isn't working? Apr 21 15:15:04 is there software to view recorded logcat (like that catlog writes) on my computer with filtering and color? Apr 21 15:15:53 pidcat Apr 21 15:15:54 I think Apr 21 15:16:08 there's a bunch of them as far as I understand Apr 21 15:25:41 I'm migrating my app from Android Studio to IntelliJ IDEA, and on Android Studio I had two build.gradle files. However, on IDEA there's only one. Where do I place the other one? Apr 21 15:30:13 why place another one? Apr 21 15:30:43 Im creating an intentChooser and overriding a package that appears in it to use the SDK provided by the third-party (facebook). Everything works except for the icon, i'm using LabledIntent; For some reason it uses my app icon instead of the facebook one... Any ideas? Apr 21 15:47:06 is there a way to qualify a resource folder, or more specifically a string value, based on the MODEL or MANUFACTURER? Apr 21 15:54:19 Nope Apr 21 15:57:48 anyone tried adding AndroidSlidingUpPanel to Android studio project? Apr 21 15:57:57 i cant seem to get it to work Apr 21 16:38:50 why do generated fragments in android studio have a factory newInstance method? what is beneficial to doing that vs just using new with a constructor? Apr 21 16:57:41 <[F_F]> Hi Apr 21 16:57:49 <[F_F]> I want to start making android apps Apr 21 16:57:53 <[F_F]> Where should I start? Apr 21 16:59:11 <[F_F]> ? Apr 21 17:04:16 Hi all is this -> SoundPool sp = new SoundPool(3, AudioManager.STREAM_MUSIC, 0); Cabable of playing wav Apr 21 17:05:05 and where do i need to put the files in res/raw ? Apr 21 17:24:16 Hi, I'm trying to display a numberpicker widget with a default value of 300 but it keeps going back to 0 when i try to scroll Apr 21 17:25:38 Hello Apr 21 17:26:29 PSA - switching all cores except one offline and setting the final one to lowest freq. is not a good idea on android Apr 21 17:26:31 I just pulled the kernel sources for the flo, built them and ran it on my device with the default config. But there is no wifi, any help? Apr 21 17:26:51 gudenau: you're probably missing an externally-built wifi driver Apr 21 17:27:04 Where coult I get that? Apr 21 17:27:16 how is the best way to override sound of button clicked? Apr 21 17:27:24 Replace the sournd file. Apr 21 17:27:26 gudenau: search in flo sources (not just the kernel ones) Apr 21 17:27:40 I am using the default rom though. Apr 21 17:28:39 actually i set "android:soundEffectsEnabled="false"" and use MediaPlayer to play sound. there is a better way? Apr 21 17:28:46 I'm migrating my app from Android Studio to IntelliJ IDEA, and on Android Studio I had two build.gradle files. However, on IDEA there's only one. Where do I place the other one? Apr 21 17:38:14 i got it with media player Apr 21 17:38:18 Thanks Apr 21 17:41:15 gudenau: https://developers.google.com/android/nexus/drivers Apr 21 17:44:32 What are the things called that show a user how to use an application Apr 21 17:44:42 with the blue OK button Apr 21 17:44:57 "custom made", that's what they are called ;p Apr 21 17:45:19 If you're looking for the general term, Tutorial or Guide. I think there's a library on github for that, lemme check Apr 21 17:45:21 GEEGEEGEE: "clings" Apr 21 17:47:47 Oh, good to know Apr 21 17:48:15 Think this is the one I once found https://github.com/amlcurran/ShowcaseView Apr 21 17:52:52 Hey all, Does anyone know of a gridview library or solution that supports metro grids such as in Windows 8? I'm looking for something that is adapter based, and can recycle views and all that good stuff. I used an implementation with GridLayout but it does not perform at the level that we need. Apr 21 17:59:14 how is the best way to override sound of button clicked? actually i set "android:soundEffectsEnabled="false"" and use MediaPlayer to play sound. there is a better way? Apr 21 18:04:09 ok thanks kakazza Apr 21 18:04:29 how would i run a java function like fileutils.copyFile as root? Apr 21 18:05:38 Use cp. Apr 21 18:05:50 most tutorials I see use shell commands instead, yeah Apr 21 18:05:58 i assume there is no better way? Apr 21 18:06:08 Make a native library. Apr 21 18:06:14 how would I do that? Apr 21 18:06:21 The NDK. Apr 21 18:06:39 oh, you're referring to JNI? Apr 21 18:07:01 I don't know C/CPP but i know how to compile stuff with the NDK Apr 21 18:07:02 Yes. Apr 21 18:07:18 Just use Runtime.getRuntime(). Apr 21 18:07:31 .exec("") Apr 21 18:07:34 ok Apr 21 18:07:39 With su. Apr 21 18:08:41 Transfusion: i believe the general answer to "do something as root" is "you don't", unless you've otherwise jailbroken the device. Apr 21 18:08:48 rooted? whatever. Apr 21 18:09:09 Why would you not? Apr 21 18:09:23 It is awsome for devoloping. Apr 21 18:09:25 rooted the day I got the phone, I live on the edge, so to speak. Apr 21 18:09:27 so assume the general case is "Google Store App" Apr 21 18:09:34 just run with that. ;-) Apr 21 18:09:40 heh Apr 21 18:09:41 You can put root apps on the play store. Apr 21 18:09:47 a normal Google Play-provied app won't be able to 'su' to root Apr 21 18:09:49 But without root, you can not. Apr 21 18:10:12 and i for one wouldn't want to install an app that has root access Apr 21 18:10:19 I have a handfull of apps on my device that do. Apr 21 18:10:23 uhh, proxydroid, shadowsocks, do, (i think?) Apr 21 18:10:35 you're braver people than i. :-) Apr 21 18:10:38 All of chainfires app I beleave. Apr 21 18:10:52 I'm Apr 21 18:11:04 uhh, scratch that. Apr 21 18:11:21 Transfusion: anyway, you just want to be able to easily push files onto the device for dev purposes? Apr 21 18:11:25 Transfusion: see `adb push` Apr 21 18:11:37 Transfusion: as long as the target dir is world-writable, you can `adb push` into it Apr 21 18:11:39 no root required Apr 21 18:11:43 very handy for dev purposes Apr 21 18:11:48 jonp: no, I'm planning to make a frontend to some shell utilities Apr 21 18:11:54 nah, i just sftp in ;) Apr 21 18:11:56 If it is a dev device, you could use adb root aswell. Apr 21 18:12:29 * Transfusion already has DigiSSHD installed heh Apr 21 18:14:12 > a normal Google Play-provied app won't be able to 'su' to root Apr 21 18:14:24 because of a store limitation or simply because most devices aren't rooted Apr 21 18:14:37 Not rooted. Apr 21 18:17:35 * Transfusion looks at the source of OI File Manager, wonder how its "root explorer" works Apr 21 18:18:00 Su and ls I would guess. Apr 21 18:18:09 Or native. Apr 21 18:18:44 In theory you could make a native app that makes the current procces uid and gid 0. Apr 21 18:19:11 That *should* work. Apr 21 18:32:07 who's gotten their IO receipts? Apr 21 18:35:37 * canadiancow wants a ticket Apr 21 18:40:14 I need a good TV remote control app for an old 90s Panasonic CRT. Any suggestions? Apr 21 18:48:58 no way to do multiple inheritance of state in java? Apr 21 18:49:08 I'd like all my ui elements to have a ".hide()" method Apr 21 18:49:17 how can i achieve this Apr 21 18:50:08 I'm having an issue with a fragment. I wonder if anyone can shed some light - it contains a linearLayout that conatins a framelayout - which has a custom camera surface view in, and then a linearlayout which has some buttons in. If i load the fragment from the activity onCreate and then replace it with another fragment on a button press from within the first fragment. If i then replace the 2nd fragment with the 1st a Apr 21 18:50:08 gain the buttons dont render but the surfaceview does...? Apr 21 18:53:47 arphen you can perhaps do something like: http://stackoverflow.com/questions/5836662/extending-from-two-classes Apr 21 18:54:53 top answer btw Apr 21 18:56:19 So i don't suppose anyone else can shed light on a fragment not rendering correctly? or at least a pointer towards how to debug? Apr 21 18:57:24 arphen: .setVisibility(View.GONE) not good enough? Apr 21 18:58:38 thanks metadan Apr 21 18:59:34 np but tbh kakazza's response might be more apt? Apr 21 19:05:20 how come if i copy sth from my android device to my pc using usb there are always random files missing? Like if I copy the whole sdcard dir on my poc it has 100 files and 50 folderes less and if I look for them they are just missing and I can copy them manually again Apr 21 19:05:45 but i dont get any errors, if i wouldnt compare afterwards i wouldnt notice Apr 21 19:10:37 Using Matcher, when looping through with matcher.find(), how I get the first and last character of the currently used match? I may have several matches and wish to operate on them all Apr 21 19:22:29 are people still getting IO codes? Apr 21 19:28:47 guys i have a problem http://stackoverflow.com/questions/23173027/passing-arrays-another-class-and-asynctask Apr 21 19:42:15 Hello android-dev'ers Apr 21 19:49:37 Make a tablet android is the same like make a android phone app if i am right? Apr 21 20:03:56 perlsyntax: basically Apr 21 20:05:39 i was thinking of makeing a tablet app for android. Apr 21 20:06:10 i been doing alot of reading on android programming. Apr 21 20:06:33 i didn't know that. Apr 21 20:09:22 Tablets are just phones with big screens and maybe no phone Apr 21 20:10:04 i see Apr 21 20:11:10 SpeedEvil, But they got faster cpu in it right. Apr 21 20:11:17 if i am right. Apr 21 20:11:27 Nope. Apr 21 20:11:38 Sure - sometimes. Apr 21 20:11:49 But you can't say anything about a tablet - other than the screen is bigger. Apr 21 20:11:52 Unless it's smaller Apr 21 20:12:00 :)) Apr 21 20:12:34 i thought samsung got the biggest tablet screen if i am right. Apr 21 20:12:49 http://www.dx.com/p/r430c-cartoon-pattern-android-4-2-tablet-pc-w-4-3-screen-wi-fi-ram-4gb-blue-white-311746 comes to mind Apr 21 20:13:12 perlsyntax: nope Apr 21 20:13:19 http://bgr.com/2014/02/14/largest-android-tablet-ever/ Apr 21 20:13:44 https://www.youtube.com/watch?v=x2RwzFAcKrU Apr 21 20:13:49 :O Apr 21 20:13:57 SpeedEvil dude! that would be wicked for board games Apr 21 20:14:05 i thought 10.1 i big. Apr 21 20:14:12 was big Apr 21 20:14:57 It would actually Apr 21 20:17:06 yep Apr 21 20:19:05 Do they use table for IT?Sorry if this off abit. Apr 21 20:19:38 tablet Apr 21 20:24:48 anyone experienced missing view elements after popBackstack() to the previous fragment? Apr 21 20:31:39 is there any way to force a viewgroup render refresh? Apr 21 20:32:24 Can anyone think of a reason why the method setImageDrawable() for ImageView would be setting the wrong drawable? I have a small List of ImageViews which all update properly, only the first element does not Apr 21 20:32:49 all of them are generated exactly the same way... I'm really at a complete loss Apr 21 20:32:59 Don't know if it's at all relevant but is it a zero based counting issue? Apr 21 20:33:19 sometimes stuff at the start of a list that has problems is related to stuff like that? Apr 21 20:33:34 using a foreach loop to access the list Apr 21 20:35:25 and I can get its drawable to update, it just 'skips' one (it has a list of possible states, and it sets the same drawable for the first two states, while all the other examples of the class do those correctly). Apr 21 20:35:57 I don't think there there is anything else trying to set it somewhere else, or I'd be getting an arrayoutofbounds or something Apr 21 20:37:15 sorry i'm new to this can't help other than generally Apr 21 20:37:57 so should i assume that if i havent gotten a i/o confirmation by now that I didnt get in (yet again)? Apr 21 20:38:35 a co-worker got his confirmation and wallet charge at like 10am, another co-worker and i have seen neither yet Apr 21 20:48:46 Question. Whats the differerence between AlertDialog.Builder(getActivity()) and AlertDialog.Builder(this) ; Apr 21 20:49:01 How do I make the height of each item in a ListView shrink based on the height of its contents? Currently all my items appear to have fixed height (even though I've tried tweaking various settings), and they're inexplicably tall given their contents. Apr 21 20:49:18 Ram_ I guess it depends on where you're using them Apr 21 20:49:44 Inside a Fragment Apr 21 20:49:53 I have a Dialog, inside a fragment. Apr 21 20:49:55 this would be the current object so if you're in a fragment it's probably the wrong thing to use, getActivity() would be better there Apr 21 20:50:10 but if you were in the activity then this would return the activity Apr 21 20:50:17 But my question was in general. I have seen soem examples, where people use this, where as in otehr examples, its used as getActivity() Apr 21 20:50:18 ie the same as getActivity in the fragment Apr 21 20:50:52 the examples using getActivity are probably fragments, and the ones using this are probably activities. Apr 21 20:50:53 I see, so If I am in an activity, then I can use this or getActivity() . but in a fragment, I can only use getActivity() Apr 21 20:51:09 no activity has no getActivity method Apr 21 20:51:13 but fragment does Apr 21 20:51:23 but in either case 'this' refers to what you are in Apr 21 20:51:30 but the method is asking for an activity Apr 21 20:53:03 metadan : I didnt understand the last two sentence Apr 21 20:53:16 getActivity() or getContext() is a little bit more explicit, there is also a style issue to consider Apr 21 20:53:50 Ram_ so AlertDialog.Builder wants to get an object of type Activity Apr 21 20:53:55 Here's a screenshot related to my question: https://www.dropbox.com/s/asvesxbym1ai36b/ui_problem.png Apr 21 20:54:12 right. Apr 21 20:54:17 so if you are in an Activity you can give it 'this' Apr 21 20:54:23 i cant use this, if its a fragment Apr 21 20:54:33 but if you are in a Fragment and give it 'this' it gets a fragment Apr 21 20:54:34 from where I am calling teh AlertDialog.Builder from. Apr 21 20:54:45 so you have to use getActivity() in the fragment Apr 21 20:54:51 true. but from an activity class, I can however, use this or getActivity Apr 21 20:55:00 or actually no Apr 21 20:55:03 i can oly use this. Apr 21 20:55:10 because activity des not have getActivity() method. Apr 21 20:55:17 yes exactly Apr 21 20:56:10 in that case, what can i use apart from this in in activity class Apr 21 20:56:17 getApplicationContext() ? Apr 21 20:56:33 jasonj8 have you got custom layout.xmls for the list items? Apr 21 20:56:48 Ram_ why? does 'this' not work? Apr 21 20:57:11 no no. its just for learning purpose. not that *this* doesnt work Apr 21 20:57:27 ah ok, well if it wants an activity use 'this' Apr 21 20:57:43 Ram_ -> 'this' returns the current Object Apr 21 20:57:46 metadan: Yes. I've tried tweaking the various parameters but I could not come up with anything that changed anything at all. I also tried changing the height of things within the ListAdapter I'm using to populate the ListView. Apr 21 20:58:04 If you use it in an Activity, you get the Activity you use it in, if you use it in a Fragment, you get that Fragment Apr 21 20:58:25 getApplicationContext() returns a Context object Apr 21 20:58:46 jasonj8 is it because something outside the individual items is set to fill parent which is causing the inner items to expand or something? Apr 21 20:59:01 An Activity is also a Context (through several layers of inheritance) Apr 21 20:59:39 I have all their heights set to wrap_content Apr 21 20:59:56 weird Apr 21 21:00:01 (I also tried setting some of their heights to "0dp" and various other things) Apr 21 21:00:35 dunno - what's that layoutTree style debugger in the screen shot? Apr 21 21:01:00 enneract true. Activity is a subclass of Context. adn Dialog.Builder expects a context. which I can get (from an activity) using this or getApplicationContext(). in the former case, it returns the activity, while in the latter case it returns the getApplciationContext Apr 21 21:01:09 The one in eclipse's DDMS Apr 21 21:01:39 It's exactly how it looks in genymotion (and my phone) Apr 21 21:01:43 ah cool, is that a live debug? (I've only used studio) Apr 21 21:01:50 yeah Apr 21 21:02:00 that's really useful Apr 21 21:02:17 I know this would work from Activity, my question is if I can use getApplicationContext(). If not where would u generally use getApplicationContext() ? Apr 21 21:02:35 Ram_ getApplicationContext() returns the same object as getContext() (though this is not guaranteed to remain true forever) Apr 21 21:02:37 Ram_ I think you could use getBaseContext() from the activity there Apr 21 21:02:55 Ram_ I don't know what getApplicationContext would be used for Apr 21 21:03:16 Ram_ iirc, Activity composites the Context, and when used as a Context, is identical to the Context object retrieved by getContext() or getApplicationContext() Apr 21 21:03:35 oh, hey I found it Apr 21 21:03:39 ha Apr 21 21:03:48 nice, what was it for ref? Apr 21 21:04:02 tl;dr, 'this' from an Activity, getContext() from the same activity, getApplicationContext(), getBaseContext() are functionally identical Apr 21 21:04:12 so I had the list within a fragment with in an activity Apr 21 21:04:22 I changed the activity's height to wrap_content Apr 21 21:04:30 enneract useful thanks Apr 21 21:05:02 did that fix or break it? Apr 21 21:05:02 enneract: Yes. I figured out that they are all idential. unfortuntaly, I dont know in what scenario I could use what. May be I should have phrased my question a better way. Apr 21 21:05:08 I think things might get stranger if you have multiple Activities (not sure if they all get the same Context under all circumstances), in which case the 3 getXXXContext methods might get you different results, but most of the time it should work Apr 21 21:05:15 It fixed it (it was previously match_parent) Apr 21 21:05:25 cool Apr 21 21:05:40 so i guess it was pulling everything out before rather than letting it contract naturally Apr 21 21:05:51 oh, not entirely fixed :| Apr 21 21:06:14 doh Apr 21 21:07:03 oh wait false alarm (this concludes my debugging play by play) Apr 21 21:07:18 enneract have you ever had a fragments viewGroup not all visible after a popBackStack? Apr 21 21:07:22 Ram_ oh, I see. Uhm, it depends :D. Fragments get *attached* to Activities, and so while they are attached, getContext() gets you the activity Apr 21 21:07:42 metadan: yea, usually you need to handle the restoration through fragmenttransaction Apr 21 21:08:13 enneract ok cool, so i've tried creating a new instance but i have the same issue Apr 21 21:08:26 http://stackoverflow.com/questions/8772921/how-to-pop-back-stack-for-activity-with-multiple-fragments start here Apr 21 21:08:33 nice thanks Apr 21 21:09:27 omg this makes no sense at all Apr 21 21:10:44 enneract. I thought getActivity() would be better from a fragment. Apr 21 21:10:58 Hmm yeah i think i got all that but i'm still having an issue with unrendered buttons Apr 21 21:11:03 In the dev console, do alpha and beta apks ahve to be signed with the same key as release? Apr 21 21:11:30 The problem is these questions have been asked in stackoverflow, and everyone seems to point to different direction. some say usegetApplicationContext(), some say use getActivity(), some say DONT use getbaseContext(). Apr 21 21:11:46 ok so I have two drawables, 'top_red_state0', 'top_red_state1'. Verified in R that the IDs point to different images. if I set an imageview drawable to either one, it displays the image for 'top_red_state0' Apr 21 21:11:47 I am absolutely clueless, as to what to use where, Apr 21 21:12:02 Ram_ use getActivity() Apr 21 21:12:18 Ram_ unless you are doing something REALLY strange, or the fragment is not yet attached to an activity Apr 21 21:12:23 I understand, but I would like to know the differen ce between all, and where its used where Apr 21 21:12:43 rather than differnc e, I want to know where one can use what. Apr 21 21:13:00 The differences are subtle, and mostly have to do with things that dont matter in the overwhelming majority of cases Apr 21 21:13:02 I understand teh basic difference say between getApplicationContext, and getActivity(). Apr 21 21:13:15 ok Apr 21 21:13:40 but I have also seen cases, where people recommend not to use getActivity() but getApplicationContext() to allow garbage collector to work Apr 21 21:13:55 so I am "confused" Apr 21 21:14:02 I've never heard of that Apr 21 21:14:55 http://stackoverflow.com/questions/11224414/android-getapplicationcontext-memory-management Apr 21 21:16:38 NeverMind, the very link had a post which clearly explaijns where to use etApplicationContext vs getActivity Apr 21 21:16:44 or ActivityClass.this Apr 21 21:18:51 Right so if I pop back from one fragment to the previous, some of the buttons are missing(visibly) but if i debug the code they are found in the (re)inflated view and have event listeners attached fine Apr 21 21:19:07 then if I switch to landscape and back the buttons are there Apr 21 21:20:09 can anyone suggest anything? Apr 21 21:21:01 Hello. Anyone know if I can use file descriptors to write to an app's internal disk space from a remote service? Apr 21 21:32:13 metadan: try iterating over the views and refreshing their state Apr 21 21:39:24 enneract: thanks thats i'll try that Apr 21 21:39:59 enneract: would I do that at the end of onCreateView in the repopped fragment? Apr 21 22:00:09 so removeAllViews() doesn’t remove the object references, right? Apr 21 22:02:34 how do i share a app thats been uploaded as beta? Apr 21 22:03:33 through the google group you created (i assume you still have to do this?) Apr 21 22:04:11 guys, I just replaced a broken screen/digitizer in a nexus 7 firstgen. afterwards, sound from the speakers won't work for media, but will work for choosing things like alarms. sound works fine from the headphones. I can find nothing in the software which would explain this behavior. All volume controls indicate their fully turned up. Apr 21 22:04:23 any idea if there's something I could have hit hardware wise which would cause the speakers to not play media? Apr 21 22:08:00 jbwiv__: sounds like a short somewhere, you should probably ask in #android tho Apr 21 22:11:45 bankai_au, I have to publish it and then share the store url? Apr 21 22:11:53 and people int he group can instlal it? Apr 21 22:12:20 I guess I don't get to go to IO again Apr 21 22:12:54 no emails of any sort Apr 21 22:14:07 hm, is there a stats for android market share breakdown (ics, jb1, jb2, jb3, kk, etc) on a per year or per month basis? Apr 21 22:19:53 Anyone know if it is possible for a remote service to write into the internal disk space of an app bound to it through AIDL? Apr 21 22:20:28 lasserix, yeah, I did :( Apr 21 22:21:09 I found a forum mention of pogo pins causing similar behavior, but I've examined them and they seem to be in contact with the pings on the bevel Apr 21 22:21:29 Your application has been published. It can take several hours until it is available throughout Google Play. Apr 21 22:21:33 several hours ;__; Apr 21 22:22:06 how can i figure out why my app is FC'ing if there is no info in logcat? Apr 21 22:23:18 there is always info in logcat Apr 21 22:25:04 hmm i have log level set to verbose, and am using the main buffer Apr 21 22:25:28 there is always info in logcat Apr 21 22:25:32 adb logcat -s AndroidRuntime Apr 21 22:26:14 ah that worked Apr 21 22:26:24 wonder why it wasnt showing up in alogcat Apr 21 22:26:44 because any on-device logcat apps are useless Apr 21 22:27:15 apps can only read their own logcat, as of.. ICS or JB or something. Apr 21 22:27:36 jb, I think it was Apr 21 22:27:49 JesusFreke ah, i thought even that wasn't allowed. i was wondering how gmail feedback send logs + screenshots Apr 21 22:27:58 can read only their own logcat Apr 21 22:28:00 not all processes Apr 21 22:28:03 nah, you can read your own. it doesn't even require a permission Apr 21 22:28:33 oh i see Apr 21 22:29:29 how about if the logcat app had root? Apr 21 22:30:56 guys please please help me please :( :( http://stackoverflow.com/questions/23188727/error-passing-data-from-fragmentactivity-to-fragment/23204797#23204797 Apr 21 22:31:21 man i hope this rumor of google discontinuing nexus tablets after this one is bogus Apr 21 22:34:19 anyone here have a Play Edition device they use for development? is it on par with nexus wrt updates ? Apr 21 22:37:42 if i say "i certify this app to work on nexus device', that holds /some/ water Apr 21 22:38:15 it implies that, it works on the gold standard, and if your device has issues, its not my fault Apr 21 22:38:49 of course thats only theoretical, if it doesn't work on the most popular device (some samsung) then the dev would be screwed Apr 21 22:39:35 is it efficient to repeatedly make runnables? or is there a better way Apr 21 22:40:14 ultra- just make it once ? Apr 21 22:40:44 it's more efficient than making more runnables.. and less efficient than making fewer runnables.. Apr 21 22:41:03 yes, making 0 runnables is quite efficient :) Apr 21 22:41:58 ok :) Apr 21 22:42:25 private Runnable myThingy = new Runnable() { … }; Apr 21 22:42:31 just keep reusing that Apr 21 22:42:51 i miss function pointers from c/c++ Apr 21 22:43:19 just reading an article that c++ is moving more and more away from OOP to functional / generic programming Apr 21 22:43:44 the STL was always pretty much generic flavor, that probably started it Apr 21 22:46:38 i was, i just wanted to make sure that’s ok to do Apr 21 22:46:45 i think i found another way anyway Apr 21 22:55:12 is there a best practice for where to put extra files in an android repot that should not end up in the final apk? Apr 21 22:58:44 for example, i have an svg that is used to make the icon files Apr 21 23:28:37 Is it possible to loop music seamlessly with Android? I have a music file that loops seamlessly in Audacity, but pauses for 1/2 sec or so when run with the MediaPlayer. Apr 21 23:29:04 I've tried with .ogg .wav. and .mp3 but all exhibit the same gap Apr 21 23:38:05 I have a dialog with a bunch of stuff wrapped in a scroll view, but for some reason it cuts the first 3 or 4 views off at the top, and won't allow me to scroll up any further (and there's about an equal amount of empty space at the bottom). Apr 21 23:38:18 Anyone encountered this? Apr 21 23:51:24 i hi guys Apr 21 23:51:35 there is anyone? Apr 22 00:07:04 anyone out there ever struggled on receiving binary files over sockets into android ? no issue on small files, but larger tends to get "garbagy" :) Apr 22 00:13:48 howdy - any avid users of Android Studio here? Apr 22 00:14:07 I'd like to mark certain patterns as "errors" in AS/IntelliJ Apr 22 00:14:14 is it possible to do so through the coding standards jarfile? Apr 22 00:17:50 okay Apr 22 00:20:51 are there any decent app templates to get me started? Apr 22 00:21:52 So far I've seen 30 questions in a row and no answers. :) Apr 22 00:22:45 its late, give everyone a break ;) Apr 22 00:22:52 it's asking time, not answering time Apr 22 00:23:04 ultra-- depends on what you want to do, but i recomend using a fixed size thread pool via executor service if you are going to be making a lot of runnables in their own threads Apr 22 00:23:17 TJ_CRS never heard of anything, just a plain socket ? Apr 22 00:23:47 yeah, nothing special. But when I grab the transferred file it's all wonky Apr 22 00:24:27 g00s: : gonna try a few different ways of reading the datastream, maybe I messed up somewhere Apr 22 00:30:37 g00s: found the error, appears that once again it's the author of this stupid code that did it... once day I will get him ( me ) :( Apr 22 01:04:19 I want to put a listview in a tab, anyoine got an example of this? Apr 22 01:14:28 GEEGEEGEE google :) Apr 22 01:15:17 wtf is google ? Apr 22 01:16:33 bankai_au ugh; trying to wget the rxjava wiki / javadoc + marble diagrams Apr 22 01:16:51 seems they made it especially difficult Apr 22 01:23:10 if wget could resume on reconnect, it would be perfect Apr 22 01:23:41 Google has cancelled your order. Your card was not charged. Reason: Item out of stock Apr 22 01:23:44 :( :( Apr 22 01:24:11 which item ? Apr 22 01:24:28 Registration Fee - Google I/O 2014 Registration Fee Apr 22 01:25:42 oh well you can download it from youtube Apr 22 01:26:13 I collected all the I/O's that I was interested in with subtitles for last years Apr 22 01:26:27 an expensed trip to the US of A would have been nice Apr 22 01:26:34 as much as one loves their airports :p Apr 22 01:26:51 maybe I'll still get wwdc yet! :p Apr 22 01:27:23 it will be more of an adventure if you sneak in Apr 22 01:28:04 social engineer your way in Apr 22 01:28:41 and record footage of the security guards hauling you out Apr 22 01:30:55 Hi: I have a listview that I am populating with Widgets in another xml file. So, if each item in the ListView contains a button, how do I set an onclickListener for every button in the list? Apr 22 01:37:53 gah, thought i almost had it working, not its downloading git commits Apr 22 01:39:40 klaw: you could do it in the getView method of your listview adapter Apr 22 01:44:34 git clone https://github.com/Netflix/RXJava.wiki.git ? Apr 22 01:46:07 bankai_au did you see the pngs in there ? Apr 22 01:46:18 i didn't :) Apr 22 01:46:30 Has anyone had issues with the Google Maps API v2 segfaulting? Apr 22 01:46:31 didn't look, was just taking a stab Apr 22 01:46:51 no, they aren't there so the javadoc is far less useful Apr 22 01:46:59 not sure what tool they use for that Apr 22 01:51:48 Can anyone _please_ direct me to some information on making the current ADT and NDK downloads actually work? The C/C++ indexing seems to have lost it's mind. Nothing I read online helps. Apr 22 01:54:25 :( spending 3 days in python/javascript land. i miss android dev Apr 22 01:54:59 I'd like to miss it. Can't even get started. :-/ Apr 22 01:55:26 ScottD: i don't understand the problem - is it not working with eclipse or you can't get it to compile anything ? Apr 22 01:55:49 bankai_au - both, actually. Let me try to explain better... Apr 22 01:56:44 My Android Traceview view won't pop up after completing a method profile Apr 22 01:56:53 What could be the issue? Apr 22 01:57:29 I'm using C (not C++). My main file includes a header that defines SUCCESS to be 0. Now in the C file, it thinks SUCCESS is undefined. If I try and compile, I get an undeclared error. But if I highlight it and ask Eclipse to show me the declaration, it pops right to it. It makes no sense. Apr 22 01:57:43 Eclipse recognizes the DDMS package as installed and so wont allow me to install the tools, both in bundle or individually. Apr 22 01:58:06 ScottD try restarting Eclipse :P Apr 22 01:58:09 ScottD: eclipse is rubbish and lies a lot, i wouldn't trust it ... Apr 22 01:58:16 And I also restarted Eclipse :P Apr 22 01:58:39 I've tried everything I can think of. Even installing on other platforms (using OS X mainly). No dice. Apr 22 01:58:57 And Studio doesn't do native. So that's no good. Apr 22 01:59:19 Google should be ashamed of these tools. Apr 22 01:59:34 ashamed? lol Apr 22 02:00:00 the tools have had a bad reputation from day 1 Apr 22 02:00:12 It's a well deserved reputation. Apr 22 02:00:14 my first android book said the tools sucked Apr 22 02:00:24 well, in a more friendly way ;) Apr 22 02:00:40 I develop for just about every platform under the sun. This is by far the most annoying. Apr 22 02:01:35 have you used xcode? lol Apr 22 02:02:04 Yeah, I have. It's very odd until you get used to it. But at least it does what it says it does. Apr 22 02:02:13 It appears I can pull the traceview file using the command line Apr 22 02:02:15 I'll try that. Apr 22 02:02:18 (In between crashes, that is. ) Apr 22 02:02:22 Get low level :P Apr 22 02:03:10 I think I'm going back to make files tomorrow. Apr 22 02:03:15 ScottD use the WP tooling ? Apr 22 02:03:26 WP? Apr 22 02:03:29 windows phone Apr 22 02:03:33 i really love that thought process "it's very odd until you get used to it". it really means "obscure and stupid, but i deal with it" Apr 22 02:03:48 bankai_au - lol Apr 22 02:03:58 bankai_au - Actually, I replaced it with QtCreator. Apr 22 02:04:14 g00s: We shall not speak of such things. Apr 22 02:04:17 going from java tools to obj-c tools is like traveling to a foreign land Apr 22 02:04:23 regardless, eclipse is shit, yes, it has a lot of problems and IJ not having NDK support isn't great either, but you have to deal with what you've got Apr 22 02:04:45 no ndk support Apr 22 02:04:46 lol Apr 22 02:04:52 I'm going to deal with it. I'm going to feed it to 'rm -rf' tomorrow. Apr 22 02:04:54 g00s: i usuallly trip over things like "seriously? this is so basic and youcan't even do that? but i can make some pretty fly across teh screen in two lines" haha Apr 22 02:05:42 g00s: Actually, for this project, Windows Phone is about the only thing I'm not targeting. Apr 22 02:06:52 OK gang, thanks for the advice. I'm going to go drink until I forget about Eclipse. :-) Apr 22 02:06:54 i picked android since i thought it was a good fit for the project; i'll use any platform that is a good fit Apr 22 02:07:07 don't care if its ios, wp, etc Apr 22 02:07:11 i like to avoid IDEs and do everything from cli/text editor when possible Apr 22 02:07:24 your life must be painful Apr 22 02:07:39 life is pain, anyone who says otherwise is selling something Apr 22 02:07:49 OTOH, you have to know whats not a good fit. want to use rfcomm on iOS? nope, forget it. want to use MediaPlayer on android? pain ahead ;) Apr 22 02:08:12 in truth, i find learning a few standard cli commands easier than wrestling with a new gui Apr 22 02:08:28 commands and an IDE are completely different things Apr 22 02:08:42 hmm? Apr 22 02:09:03 commands to set up sdk, compile, that sort of thing Apr 22 02:09:42 i know for some projects you really need the features of an ide, but thats not always the case Apr 22 02:42:19 which is correct way to clean text in EditText: 1. editText.getText().clear() or 2. editText.setText(“”) ? Apr 22 02:43:39 kamol i think settext(null) works ;) Apr 22 02:44:11 Which is annoying because contentEquals(null) throws a null pointer. Apr 22 02:44:43 anyone know what is causing signature conflicts when installing release apk, even though i have uninstalled debug apk? Apr 22 02:45:07 Anthaas ideally, i guess String.EMPTY="" should be defined Apr 22 02:45:28 g00s: Exactly what I was thinking. Apr 22 02:46:16 g00s: you are right, it works, TextView.java has this “if (text == null) {text = “”;}”. But your opsion is more clear. Thank you! **** ENDING LOGGING AT Tue Apr 22 02:59:58 2014