**** BEGIN LOGGING AT Sun Aug 18 02:59:58 2013 Aug 18 03:01:06 p_l if you send me a java file, i'll compile it and send the results back to you Aug 18 03:01:19 lol Aug 18 03:03:39 p_l btw there was a ff update today Aug 18 03:03:49 yes, I have it Aug 18 03:03:58 well, the 23.0 ;> Aug 18 03:04:06 23.0.1 Aug 18 03:07:56 I'm using ActionBarSherlock and the ShareActionProvider and made a new theme.. but my ShareProvider is still using the old theme while everything else in my app is using the new one Aug 18 03:08:46 is there something I need to get the actionbar provider drop down to use the new theme Aug 18 03:22:13 p_l http://tide.olympe.in/ … works on a raspi :) Aug 18 03:23:47 g00s: my problem is that my laptop is *physically* desintegrating :) Aug 18 03:24:11 :( Aug 18 03:28:50 p_l: this one looks good ... http://www.samsung.com/us/business/computing/laptops/NP900X4C-A03US Aug 18 03:28:54 Does anyone have recommendations for a good phone dock while debugging on it. I have been using http://www.clingo.com/home-and-office/universal-podium/ for the past month or so, and at first I loved it, but it has lost it's stickness. Aug 18 03:29:26 yiati: personally I like debugging over TCP/IP Aug 18 03:30:03 z4ce: Cool Aug 18 03:30:30 yiati: i like this one http://www.satechi.net/index.php/r1-arm-hinge-holder-stand-for-ipad-ipad-2 it's meant for tablets but i use it for both Aug 18 03:30:48 yiati: just mentioning it because before I realized it was possible I was looking for something like a dock Aug 18 03:30:49 yiati: it's just a little annoying on the sgs3 or sgs4 that the capacitive buttons get covered a bit. it's not an issue on any of my other devices though Aug 18 03:32:30 i had some other holders but they weren't adjustable and were too light weight so they'd move practically by themselves. i have 3 of the satechi ones now. Aug 18 03:32:52 kevinb: Hmm that looks nice for a tablet, do they have any for a phone as well? I'm browsing the site now Aug 18 03:33:20 they're wider than most phones, so i guess that could look kind of silly Aug 18 03:33:30 but they hold phones well Aug 18 03:34:07 kevinb: Cool if it is a heavy solid device that holds it nicely then it works Aug 18 03:38:25 android.app.FragmentManager fm = getFragmentManager(); Aug 18 03:38:25 detailsDialog detDialog = new detailsDialog(); Aug 18 03:38:25 detDialog.show(fm, "Details"); Aug 18 03:38:36 I get an error on line 3 Aug 18 03:38:49 The method show(android.support.v4.app.FragmentManager, java.lang.String) in the type DialogFragment is not applicable for the arguments (android.app.FragmentManager, java.lang.String) Aug 18 03:40:38 But if I change fm to android.support.v4.app.FragmentManager then I get an error on line 1 saying: Type mismatch: cannot convert from android.app.FragmentManager to android.support.v4.app.FragmentManager Aug 18 03:40:51 you are mixing support lib fragments and native fragments. if you support gingerbread devices them switch the getFragmentManager to getSupportFragmentManager, if you only support modern android then modify your detailsDialog to extends the DialogFragment from android.* not android.support Aug 18 03:44:16 Is it possible that an activity can have other things happen to it between onSaveInstance being called and the next time onCreate is called? Aug 18 03:44:22 it says that Method getSupportFragmentManager() is not undefined Aug 18 03:44:35 you need to use a FragmentActivity rather than just an Activity Aug 18 03:44:37 s/not/ Aug 18 03:47:17 I don't get it Aug 18 03:47:23 Odd thing is I am seeing that I am writing a value using onSaveInstance.. but some times when I rotate the screen it revert to an older value than the latest version my app had.. Aug 18 03:48:03 I would have thought onSaveInstance would be called before it was destroyed.. Aug 18 03:57:50 And my class extends ListActivity already so I can't extend Activity as well Aug 18 03:57:51 :( Aug 18 04:15:36 Can I refund an app purchase for a client after 15 minutes? Aug 18 04:23:00 hey guys Aug 18 04:23:08 got a question...trying to setup a gradle project Aug 18 04:23:24 and I'm getting 'Main Manifest missing from C:\path\here\AndroidManifest.xml Aug 18 04:24:03 f2prateek, yes Aug 18 04:24:23 err, nm, got it back to what I had before...forgot to save the build.gradle file :( Aug 18 04:24:28 anyway...my original problem is back now Aug 18 04:24:43 Execution failed for task ':MyLibrary:compileReleaseAidl'. Aug 18 04:24:49 > failed to find target android-17 Aug 18 04:25:09 that happens if I try to run gradle clean build from inside the IDE Aug 18 04:25:24 if I just run 'gradle' from the console things are fine Aug 18 04:25:33 if I run 'gradle clean build' from console, it errors just like that Aug 18 04:25:42 but the IDE doesn't seem to let me not have some task specified?? Aug 18 04:26:03 'No task to execute is specified' Aug 18 04:42:53 ProgramMax did you write the task yourself > Aug 18 04:44:18 oh, compileResourceAidl duh, thats their stuff Aug 18 04:44:54 ProgramMax from the command line, try $gradle clean bundleRelease' and see if that fails too Aug 18 05:02:05 g00s looks like it is downloading a bunch of stuff Aug 18 05:02:49 (I installed an older version of gradle just now...read that would fix it, but it didn't) Aug 18 05:03:05 mmm 'Could not create plugin of type 'AppPlugin'.' Aug 18 05:05:25 looks like this is a new error as of the old version Aug 18 05:05:29 gonna get the latest gradle Aug 18 05:06:58 OH MAN Aug 18 05:07:11 I think it is because nvidia's thing overwrote my path Aug 18 05:07:19 ANDROID_HOME for user ProgramMax goes to their thing Aug 18 05:07:30 which explains why I could go down to android version 15 but not 17 Aug 18 05:15:16 huh, weird Aug 18 05:15:16 worked Aug 18 05:16:21 well...sort of...it now works correctly in Android Studio but not from command line Aug 18 05:18:35 okay...command line was failing because it was using an old version of gradle Aug 18 05:18:41 guess android studio packages its own version of gradle Aug 18 05:19:19 and the reason both were struggling to compile for the target android-17 is because ANDROID_HOME was set to a path which didn't have the Androdi 17 sdk setup Aug 18 05:19:37 it was setup fine in android studio, but my path wasn't pointing there Aug 18 05:19:44 phew. FINALLY. That took me all day :( Aug 18 05:28:57 What's the best way to talk to google's api without using one of the libraries Aug 18 05:29:28 IE i just want the user profile info, I don't want to talk to the tasks api like it seems that most of the examples expect Aug 18 05:41:48 Mrono: Oauth2 probably. Aug 18 05:43:07 kjeldahl: Yeah, I already have the auth code but I need to exchange that for my access token and get the info Aug 18 05:43:18 with the userinfo.profile and/or userinfo.email scopes. Aug 18 05:43:22 yep Aug 18 05:43:26 but how Aug 18 05:43:36 that's what none of the examples explain Aug 18 05:43:56 Use this to test/figure it out: https://developers.google.com/oauthplayground/ Aug 18 05:44:18 kjeldahl: I already know what url's to call, what info I need, etc, but I don't know how Aug 18 05:44:44 Make sure you enable the apis in question, and that you are able to authenticate properly, and it should work. Aug 18 05:44:56 kjeldahl: how Aug 18 05:45:05 They are simple REST calls. You just need to get all the proper codes in place. Aug 18 05:45:21 with what? straight http calls? Aug 18 05:45:22 Sry, I'm not going to give an oauth2 tutorial here. But it works just fine. :-) Aug 18 05:45:42 Yes, they support both GET style query parameters and json. Aug 18 05:46:34 why does everything gloss over that Aug 18 05:46:53 they all say the same thing and never show how to actually talk to the api Aug 18 05:47:08 Are you doing this when you have a client in front of you, or do you need to do it on behalf of your user (server side, when user is not present)? If the latter, you need to get a refresh_token and use that. Get the refresh_token once from the oauth2 playground and use that in your server. Aug 18 05:48:02 kjeldahl: I'm doing it on the android app, trying to get the user info so I can talk to my server and get the correct user Aug 18 05:48:28 an online api request i believe Aug 18 05:49:07 i've gotten the 1/ token that needs to be exchanged for the one that starts with ya26. so I can then make another call and get the user info Aug 18 05:50:06 i swear, it seems like 90% of android java stuff you're supposed to already know and no one explains it Aug 18 05:50:34 Mrono: This has nothing to do with android/java stuff, and everything to do with oauth2 unfortunately. Aug 18 05:50:57 Unless you're willing to use any of the provided libraries, like Plus Services or similar. Aug 18 05:51:28 kjeldahl: is there a lib for just getting the user profile info Aug 18 05:51:45 What type of client id are you using, what have you set up in the Google APIs console? Aug 18 05:52:00 I'm pretty much just trying to do federated login Aug 18 05:52:18 client id? Aug 18 05:52:31 Mrono: Well, to get the user, the user need to be authenticated, and you need to be authenticated to access the services api. Aug 18 05:53:11 Google: "google api console". You need to set up your access to the Google services there. They do not allow you to use their APIs un-authenticated. Aug 18 05:53:30 Even the free services need to be authenticated. Aug 18 05:53:52 yes I set up one there but i've yet to find out where to use it on the android side Aug 18 05:54:44 Under "API Access" there, you set up client ids for different types of access, i.e. web apps, android app etc. It also has the simple api keys. Aug 18 05:55:44 but how do I use that on android Aug 18 05:56:32 Create client id => Installed application => Android. Aug 18 05:57:38 That is if you're going to use the REST api directly, which you typically will not do on Android. On Android, you would typically use the Google Play Services API which offers AccountSelector and does all the oauth2 stuff underneath. Aug 18 05:58:38 But the concept of scopes even carries through for those helpers. If you do not have the proper ones in place, you're not going to get much info in return. Aug 18 05:59:14 kjeldahl: I'm already using account selector Aug 18 05:59:39 Typically, you want to get at least the email, and to do that you need the userinfo.email scope (unless it's included in the userprofle scope, can't remember). Aug 18 05:59:58 I already know my scope, and the info i need Aug 18 06:00:19 but how do I trade the access code for the auth token Aug 18 06:01:26 nothing explains how to do it, they all just tell you to do it and give no info on it Aug 18 06:02:52 I mean AccountPicker, i.e. intent = AccountPicker.newChooseAccountIntent. That gives you an account name, which you can feed to getToken. Aug 18 06:03:14 kjeldahl: which i've done, and I have that token, but how do I use that Aug 18 06:07:16 That's the token you want to pass to your server, and verify there using oauth2. Aug 18 06:08:41 and that's done using an http client call? Aug 18 06:08:45 From your server, do a get: https://www.googleapis.com/oauth2/v2/tokeninfo?access_token=YOURTOKEN Aug 18 06:09:02 Test it from your browser first with a a proper token, see if it works. Aug 18 06:10:55 kjeldahl: hmm Aug 18 06:11:27 and if it works on the server that means that the user_id that gets passed back is valid for that user Aug 18 06:11:35 kjeldahl: I could hug you right now Aug 18 06:12:00 You may need to verify the "audience" to make sure it's returning a token that is authenticated against your own client. Aug 18 06:13:03 Yes, if the "audience" is the correct. Can't remember where that is hooked up. Checking. Aug 18 06:26:24 That's sad. I can't figure out where my app and service got it's audience number from.. Aug 18 06:27:56 It's related to my app, just can't find the number. Aug 18 06:30:06 lol Aug 18 06:41:54 FOUND IT! Aug 18 06:42:49 It actually IS the client_id. I struggled to find it because my client_id was actually defined in another project than where I expected to find it. Aug 18 06:44:15 So whenever you create a client_id for an installed application it will be connected to your application's certificate fingerprint, and the client_id for that gets returned as part of the "audience" value when you do a tokeninfo on it. You should verify that the client_id is what you expect it to be to avoid forgery Aug 18 06:48:03 Hmm now to make sure I get the right key Aug 18 06:48:38 DURRR Aug 18 06:48:41 i'm retarded Aug 18 06:49:44 Google APIs => API Access => Create an Oauth2 client ID Aug 18 07:00:50 kjeldahl: if I just want the user id is https://www.googleapis.com/auth/userinfo.profile the correct scope? Aug 18 07:23:58 kjeldahl: also, GoogleAuthUtil.getToken or GoogleAccountCredential.getToken Aug 18 07:24:22 userinfo.profile should be the right one Aug 18 07:24:34 I'm using GoogleAuthUtil.getToken Aug 18 07:24:52 I've got activities that work for each one Aug 18 07:25:21 k Aug 18 07:25:29 hey guys Aug 18 07:25:32 https://gist.github.com/Nyceane/4a7fbd9fe3e009511591 Aug 18 07:25:38 I think GoogleAuthUtil is the Play Services one, and the other one is another library. Aug 18 07:25:48 so when I pop Fragment3, Fragment2's onResume still runs Aug 18 07:26:01 how do I remove Fragment2 "completely" from the stack where it no longer runs Aug 18 07:26:15 the annoying part is that it's changing the color of my Actionbar Aug 18 07:29:12 in fact it runs through onStart without showing Aug 18 07:29:22 and it doesn't go through onPause, the Fragment is never there Aug 18 07:30:49 this.isHidden() is true Aug 18 07:30:52 this.isHidden() is false i mean Aug 18 07:31:50 sorry meetoman i can't help you Aug 18 07:32:05 nvm, isInLayout is false Aug 18 07:34:23 kjeldahl: you're right, com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential Aug 18 07:37:37 Jup, haven't used it myself so can't help you with that one. Aug 18 07:47:31 kjeldahl: do you know if the googleauthutil caches the token or should I limit my requests to it Aug 18 07:51:32 It says here http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html it may cache it, but it shouldn't affect your app as long as you invalidate it if it is no longer valid... Aug 18 08:35:05 how do i get to default of getSupportActionBar().setBackgroundDrawable? Aug 18 08:40:01 hey guys? Aug 18 08:47:25 How does CMS app work? anyone knows? Aug 18 08:47:37 content management Aug 18 08:48:51 I want to have a textView that is updated its value from server Aug 18 08:49:09 is anyone know what I have to do? where to start? Aug 18 08:50:55 bha cms would be better as a mobile web app Aug 18 08:51:08 mobile web site Aug 18 08:51:08 you mean with html5? Aug 18 08:51:18 maybe Aug 18 08:51:22 &jquery? Aug 18 08:51:29 uhm Aug 18 08:51:34 i'm not a web dev Aug 18 08:52:07 how do I build mobile web app, is it just a website to watch on chrome? Aug 18 08:52:16 or really app that can be downloaded at market Aug 18 08:52:19 ? Aug 18 08:52:57 mobile web app is dl from market, mobile web site is just a mobile optimized site Aug 18 08:53:08 oh Aug 18 08:53:27 you can do hybrid apps , a mix of native and html Aug 18 08:54:15 but where do I develope it? Aug 18 08:54:21 i guess not in eclipse Aug 18 08:54:54 may as well do it in firefox os Aug 18 08:55:11 I got osx Aug 18 08:55:32 is there any option to build on osx? Aug 18 08:55:56 not sure. ffos just seemed like an easy mobile option Aug 18 08:56:06 you can do it for chrome too Aug 18 09:49:57 I'm seeing something weird with a button. It has an icon on the right, a number on the left (single or double digit) aligned to the left. The style is Widget.Holo.Button.Borderless. On click I increment the number and change the width for single or double digit. However unless I add a space to the single digit string the number is clipped by the icon. Why is that? Aug 18 09:52:12 Here are a few screenshots of the issue: http://imgur.com/a/lZhBk Aug 18 09:52:55 It seems that it ignores the width I set (layoutparams width) unless the text is two characters. Aug 18 10:09:31 hello Aug 18 10:18:55 I was checking out how to set callback for regular spinner, Well, i don't get this part in this code http://ideone.com/e0F3Uz Aug 18 10:19:02 What exactly is that? Aug 18 10:19:23 We are initializing a new temporary object using new calling its constructor, Thats all regular and normal part Aug 18 10:20:03 but AFTER that there is this "lambda" kind of thing Aug 18 10:20:09 But I am not sure what exactly is that Aug 18 10:20:13 Is that a lambda? Aug 18 10:20:36 Well no it isn't as there is a definition of the handler inside it. Aug 18 10:20:42 Can someone kindly enlighten me? Aug 18 10:28:28 It's an anonymous inner class Aug 18 10:30:57 Ok, Gotcha Aug 18 10:31:27 So like Lambda class? Aug 18 10:31:28 :P Aug 18 10:53:49 Hrm, for some strange reason, my Loader runs returns the result correctly when starting from onCreateLoader Aug 18 10:54:16 but when I call restartLoader, I see onCreateLoader being called again... but the result doesn't reach onLoadFinished :o Aug 18 10:54:23 Ideas, anyone? Aug 18 10:59:18 has anyone else not been able to get Team Win Recovery with odin? Aug 18 11:12:08 Anyone know if Android 4.3 fiddled with mmap when it comes to sharing memory? Aug 18 11:21:24 lebo you should ask this in android-root Aug 18 11:21:59 thanks Aug 18 11:40:50 I've got a little puzzle Aug 18 11:41:08 I want to have a layout with a button on top, and a button on bottom Aug 18 11:41:18 and a list in the middle that streches to fill that gap Aug 18 11:41:27 not entirely sure how to do that Aug 18 11:41:37 I guess I specify an exact size for the two buttons, like 12dp or something Aug 18 11:42:16 Vertical linearlayout, button, other layout with layout_weight=1, button. Aug 18 11:42:32 Yes, the buttons would have to be fixed height, or you could use weights for a percentage. Aug 18 11:42:44 cool, thanks Aug 18 11:45:57 https://friendpaste.com/45aGuzvVBQIQUR0VW1gJOJ Aug 18 11:46:00 still no good? Aug 18 11:47:34 Why weightsum 2? Aug 18 11:47:45 don't know...playing with it, trying to get it to work Aug 18 11:47:55 ALso, I think wrapping the listview is unnecessary. Aug 18 11:48:20 Can set the weight directly on the ListView without the LL. Aug 18 11:48:26 k Aug 18 11:48:31 Might have to set layout_weight=0 on the buttons. Aug 18 11:54:50 ah Aug 18 11:54:56 I just had the height set too small Aug 18 11:54:58 that worked fine Aug 18 11:54:59 thanks :D Aug 18 12:27:33 All I can see is people joining and quiting... Aug 18 12:29:29 well nothing has happened since you joined Aug 18 12:29:30 :) Aug 18 12:29:41 it's not you, it's us! Aug 18 12:30:37 Idle Users, Why YU No Quit?! Aug 18 12:31:39 why would we Aug 18 12:43:50 Hello I want to do a get request to my local development environment. I have edited my host file to 10.0.2.2 sitename but still it doesn't let me connect to my local environment Aug 18 12:43:55 any idea's? Aug 18 12:57:22 Hi everyone, why I got "Failed resolving xxx interface" while using multiple dex files ? Thanks. Aug 18 13:06:07 hello i have recently installed android studio in ubuntu 13.04 and when i launched the studio for the first i get the following error: Aug 18 13:06:09 Gradle: Execution failed for task ':MyApplication:mergeDebugResources'. > java.io.IOException: Cannot run program "/home/mc/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory Aug 18 13:06:32 i search in stackoverflow but none of the answers solved my problem Aug 18 13:06:38 what is going wrong? Aug 18 13:12:13 Make sure you download all the tools and build tools in the SDK Download Manager, and get the relevant directories in your path. Aug 18 13:15:14 in android studio they are not preinstalled? Aug 18 13:16:50 hi Aug 18 13:19:47 resu01: Not necessarily. Start the Android SDK manager and click whatever is missing. Aug 18 13:20:20 any experience with google maps? it's showing nothing inside my app Aug 18 13:20:25 ok i will do this and i will inform you.thanks! Aug 18 13:23:03 actually, how is Android Studio going? Aug 18 13:24:00 is it stable? promissing? Aug 18 13:24:14 or just crap like eclipse? Aug 18 13:24:26 i haven't tried. hopefully at least simpler Aug 18 13:24:48 papachan: first of all check that you have correctly copied the debug key for your app Aug 18 13:25:06 if have made any mistake it will produce a white screen Aug 18 13:25:28 resu01: i have put it in AndroidManifest.xml and add it to map layout too Aug 18 13:25:50 resu01: oh debug key? Aug 18 13:26:19 resu01: i thought you was talking about api key Aug 18 13:26:45 J_Caselles: it is very good but you have to get used to it because it is quite different from ecplise Aug 18 13:28:57 I want to dispatch lots of threads in my android app and know when they have completed, what's the best way to do this? Aug 18 13:29:32 J_Caselles: its stable for me and fast Aug 18 13:29:47 I'm thinking maybe an IntentService which uses AsyncTasks Aug 18 13:30:13 papachan: when you use google maps you can produce two api keys. one for debug and one for release Aug 18 13:30:33 for which purpose do you want to use it? Aug 18 13:30:34 oh Aug 18 13:31:20 I may try it Aug 18 13:31:25 resu01: OK i see two api keys from the last programmer, i think one of them is the debug api key Aug 18 13:31:54 resu01: its a embed map inside our app Aug 18 13:32:48 papachan: if you want to debug your app you have to use the debug api key you have created Aug 18 13:33:27 resu01: fine. but i have tried to generate the final apk with the final certificate, and debug setted to false Aug 18 13:33:35 resu01 and the app didnt who the map Aug 18 13:33:36 read this https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api it will help you Aug 18 13:33:55 resu01 with the final api key Aug 18 13:34:19 so you have to use the release api key in your app Aug 18 13:35:06 just change the api key in your manifest Aug 18 13:35:59 resu01: yeah, i have done all the steps inside the android tutorial, the only thing that differ is we dont use mapfragment Aug 18 13:40:17 papachan: your app crashes or you just see a white screen when you open the google maps? Aug 18 13:43:05 resu01: the app dont creash, it show the map, but dont load the tiles Aug 18 13:43:11 and i have this message_ Aug 18 13:45:37 Google map signed api key errors in Android Aug 18 13:47:04 kjeldahl: i made the updates but the problem remains Aug 18 13:47:35 is it possible to be something wrong with my jdk Aug 18 13:47:36 ? Aug 18 13:47:55 papachan: which is the error message? Aug 18 13:54:29 bah Aug 18 13:54:35 I suck at thinking in threads Aug 18 13:55:27 I have an easily parallelizable problem but I just can't get my head around it Aug 18 14:06:02 resu01, 32bit userspace, you need it Aug 18 14:06:04 resu01: android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer Aug 18 14:07:01 resu01: http://pastebin.ubuntu.com/5999625/ Aug 18 14:09:09 pfn: what do you mean? Aug 18 14:09:24 papachan: sorry for one moment i will check this Aug 18 14:10:03 resu01: no problem, I am still trying Aug 18 14:10:42 the build tools path is wrong, too Aug 18 14:11:08 should be 17.x or 18.x Aug 18 14:13:22 pfn: i will check this Aug 18 14:22:41 pfn: i unistalled jdk7 and i installed oracle-java8 Aug 18 14:22:56 i changed the path in sdk and now it seems that it works properly Aug 18 14:23:03 thanks for your help Aug 18 14:24:48 quick question about jdk6 vs jdk7. does it matter which i use? i see jdk6 in all the docs but is using 7 an issue at all? Aug 18 14:36:58 quick question about jdk6 vs jdk7. does it matter which i use? i see jdk6 in all the docs but is using 7 an issue at all? Aug 18 14:37:44 ditoa: I guess there's no problem, shouldn't at least Aug 18 14:38:47 hello. is handle_mm_fault and/or do_generic_fault executed in a different context than process context and on a different stack? (linux kernel, x86) Aug 18 14:51:50 ditoa, just signing can cause problems, but most build tools accomodate for it now Aug 18 14:52:16 hey guys. so i am in a class that extends Fragment. is there a way to find the application context? hope i'm explaining that right Aug 18 14:54:46 getActivity. getApplicationContext Aug 18 14:57:31 perfection. thanks a bunch Aug 18 15:13:30 hello Aug 18 15:13:48 i have a problem with adv and eclipse Aug 18 15:14:03 im using eclipse kepler and last adt Aug 18 15:14:36 im trying to use eclipse android virtual device manager Aug 18 15:14:44 i have created a htc Aug 18 15:15:15 virtual device but when i click on start .. nothign happens Aug 18 15:15:27 the emulator is not showed Aug 18 15:15:37 working on debian squeeze Aug 18 15:26:17 hello Aug 18 15:27:24 so If want justified text in a textview I have to replace it with a webview and set

? wtf Aug 18 15:27:56 any help for me? Aug 18 15:29:33 plotino, ask Aug 18 15:30:44 see above :) Aug 18 15:30:55 I just joined Aug 18 15:31:01 i have a problem with adv and eclipse Aug 18 15:31:06 im using eclipse kepler and last adt Aug 18 15:31:12 im trying to use eclipse android virtual device manager Aug 18 15:31:17 i have created a htc Aug 18 15:31:23 virtual device but when i click on start .. nothign happens Aug 18 15:31:27 the emulator is not showed Aug 18 15:31:33 working on debian squeeze Aug 18 15:32:36 what does the eclipse console say? Aug 18 15:35:20 under, in fact im using the IDE and any error message appears Aug 18 15:35:45 its quite difficult to analyze without any log Aug 18 15:36:07 also in the web there is no so much Aug 18 15:36:15 well i can just tell you one thing: the android emulator sucks Aug 18 15:36:20 im just evluating to switch to thirdy part emulator Aug 18 15:36:26 ohh Aug 18 15:36:35 so what do you recommend? Aug 18 15:36:51 to debug app diretcly on the devices ?!? Aug 18 15:36:53 physical devices Aug 18 15:36:57 ok Aug 18 15:37:07 but with some risks Aug 18 15:37:24 why? what does your app do? Aug 18 15:37:29 i dont have a dummy device for debugging purpoises Aug 18 15:37:47 in general is an app do some file processing .. Aug 18 15:37:56 you risk to loose3 data for example Aug 18 15:38:23 it's important in that sense to limit the SD access Aug 18 16:07:35 Hey guys...on Android ICS, I can't seem to have Audio Alert + Vibrate for incoming SMS. I only have "Always", "Only When Silent" and "Never" Aug 18 16:09:01 some apps have custom permissions.. e.g. "Org.linphone.permission.C2D_MESSAGE" Aug 18 16:09:05 what does that mean? Aug 18 16:09:55 permissions are really just a string attached to the app - the system permits certain behaviours if the app has certain permissions, but other apps can do the same thing Aug 18 16:11:33 it's a bit chaotic if apps can invent their own catagories, no? They might as well name their permission "harmless" Aug 18 16:12:02 i would think the user would be given some indication of what the permission means Aug 18 16:12:25 nope, it's basically a private thing between apps Aug 18 16:13:53 i am shown permissions that I agree to before installing.. I don't recall seeing this Org.linphone.permission.C2D_MESSAGE permission Aug 18 16:14:55 couldn't that custom string be a permission to do anything? a master key to castle? Aug 18 16:15:06 Hey guys...on Android ICS, I can't seem to have Audio Alert + Vibrate for incoming SMS. I only have "Always", "Only When Silent" and "Never" Aug 18 16:16:49 this is very sneaky Aug 18 16:17:13 most permissions are publically specified from an enumerated set Aug 18 16:19:38 i could have a permission to access *everything*, and name it "control vibrator" Aug 18 16:20:01 users would think "well, i don't mind if this app controls the vibrator" Aug 18 16:20:43 makes the whole permission system in fact more dangerous than not having it at all Aug 18 16:22:49 how could such a huge vulnerability go unnoticed Aug 18 16:23:06 i'm totally blown away by this Aug 18 16:23:08 er... what? Aug 18 16:23:44 cybrNaut: Those custom permissions only make sense to the app implementing them, so it does not matter what they are called. Aug 18 16:24:22 cybrNaut: I can release an app which - say - is a client for a chat network... in my app, I can provide a permission which allows other apps to send to the chat network through me... when someone tries to send a message, I check if they have that permission or not Aug 18 16:24:27 morning. Aug 18 16:24:28 * gummylick nods Aug 18 16:24:39 nothing else on the system will recognise that permission, or do anything with it Aug 18 16:25:44 so the vulnerability is what? Aug 18 16:26:47 Leeds: if the name of the permission can be controlled by the app, then a rogue app can use a harmless name for a harmful permission Aug 18 16:27:39 still not following you... Aug 18 16:28:35 given me an example of what you mean by a harmful permission Aug 18 16:28:52 Leeds: consider Linphone's permission "Org.linphone.permission.C2D_MESSAGE".. as a user, i don't know what that permission means. It could mean, harvest private info and send over the network Aug 18 16:29:14 but on the face of it, the name of the permission does not suggest that Aug 18 16:29:22 what private information? Aug 18 16:29:42 although linphone is probably safe, i see other apps with custom permissions Aug 18 16:29:53 Leeds: address book info, for example Aug 18 16:29:58 cybrNaut, it means nothing Aug 18 16:30:11 except you still need the same *system* permission to access the address book Aug 18 16:30:12 it's an opaque id Aug 18 16:30:39 it just allows two apps that have that permission to communicate Aug 18 16:30:50 linphone can't grant a third-party app permission to do something which isn't implemented by linphone Aug 18 16:32:11 okay, i think i understand.. so it cannot circumvent the standard named permission categories, just offer permissions on the app itself Aug 18 16:32:13 it grants nothing else Aug 18 16:32:19 correct Aug 18 16:34:47 it could still be alarming.. i mean, what if a password safe app had a custom permission that let other apps access the db Aug 18 16:35:41 then the password safe should document it clearly Aug 18 16:36:03 and users of it should be aware if that permission Aug 18 16:36:45 and in a situation like that, the password app should probably be doing manual approval *as well* - in the same way that superuser apps do Aug 18 16:37:16 "App XYZ is trying to access your password database. Do you wish to enable one-time access, permanent access, or deny access?" Aug 18 16:51:12 i see android builds take a long time to compile javadoc/droiddoc. is there any way to disable it? i have already tried adding "BOARD_SKIP_ANDROID_DOC_BUILD := true" to board config and then clean install. doesnt seem to work at all. Aug 18 16:52:21 i also need to disable test cases execution for the whole ROM build. can i do that somehow? i just build the ROM so i am perfectly fine if test cases fail. i am not bothered with their failure. Aug 18 16:52:42 i am trying to save some time in build compilation and that is why i have these questions. Aug 18 17:19:25 ello I want to do a get request to my local development environment. I have edited my host file to 10.0.2.2 sitename but still it doesn't let me connect to my local environment Aug 18 17:20:50 anyone an idea? Aug 18 17:22:47 <_wli> hi guys. i m using Android Studio 0.2... it is saying "Default Activity not found" and in AndroidManifest.xml it is saying that it can resolve symbol Aug 18 17:23:01 <_wli> MainActivity in I have a MainActivity.java inside com/mdm/app/MainActivity.java Aug 18 17:26:01 <_wli> setting the src folder as source root seems to do the job Aug 18 17:28:30 hmm.. any reason why a MediaRouteButton would not show? i have android:visibility="visible" in my layout. if i change the item from an android.support.v7.app.MediaRouteButton to ImageButton, it shows fine. any thoughts...? i've been stumped for awhile on this one Aug 18 17:33:48 if I root my device ; can I control the power button ? Aug 18 17:43:15 <_wli> i m in a package call com.maidan Aug 18 17:43:28 <_wli> and inside the /app folder is the MainActivity.java Aug 18 17:43:43 <_wli> what should i put in the AnroidManifest.xml for the main activity? Aug 18 17:44:33 <_wli> i tried com.maidan.app.MainActivity, it try to find com.maidan.com.maidan/com.maidan.app.MainActivity Aug 18 18:12:06 so has anyone developed an app for mounting iso files? Aug 18 18:30:25 hm i dont get why i have to implement this serviceconnection boilerplate when its always the same anyway Aug 18 18:31:37 aep android has light of boilerplate areas; don't worry about it Aug 18 18:31:54 ugh, can't spell. *lots Aug 18 18:32:18 bundles, content providers, etc Aug 18 18:32:20 hm k :/ Aug 18 18:32:58 in the case of SC, the difficult part is not the boilerplate - but the asynchronous aspects of that callback Aug 18 18:33:19 hey Aug 18 18:33:24 yeah Aug 18 18:33:27 i have a design question for you guys Aug 18 18:33:28 how do i actually handle that? Aug 18 18:33:42 for now i just hope no one presses any buttons before the connection is there Aug 18 18:34:06 aep no good way :( you can't assume when it happens. when it /does/ then you have to check state of your object and maybe move it into the next state Aug 18 18:34:33 ugh Aug 18 18:34:46 so i just ignore user input until its done and hope it doesnt take forever Aug 18 18:35:03 its unlikely a user would be able to interact with the ui before SC is called Aug 18 18:35:13 right Aug 18 18:35:17 but still, ite best to be defensive :( Aug 18 18:35:33 when you program defensively on android, it ups the pain quite a bit, because there are these corner cases Aug 18 18:36:06 for example, what will happen first : onReturnActivityForResult or SC ? dunno Aug 18 18:36:22 fun Aug 18 18:36:39 if i want to populate a list fragment frequently with different things, should i save the result to a file and then re populate them or just recalculate it everytime Aug 18 18:37:12 jubjub: too big for main memory? Aug 18 18:37:32 a list of like 1000 entries Aug 18 18:37:57 actually more like 9^4 Aug 18 18:38:04 12^4* Aug 18 18:38:31 wtf...eclipse isn't recognizing either my phone or my nexus 7 Aug 18 18:38:48 jubjub nobody wants to scroll through a list of 1000 entries to begin with Aug 18 18:39:00 Hiraghm try command line adb ? Aug 18 18:39:15 g00s: right, there are filters Aug 18 18:39:19 I killed the server and restarted it via command line Aug 18 18:39:25 i've noticed adb become more troublesome since March Aug 18 18:39:36 but the initial lists are large Aug 18 18:39:58 jubjub sounds like maybe they should be in a database Aug 18 18:40:15 can anyone tell me how google dev console handles payments? Aug 18 18:40:17 use CursorAdapter, CursorLoader, etc Aug 18 18:40:34 hmm Aug 18 18:40:40 database on android Aug 18 18:40:44 so a jsong file Aug 18 18:41:12 what a crock Aug 18 18:41:19 having issues with notifications, the action buttons show / work in emulator but not on devices … thoughts? Aug 18 18:41:22 let the database filter and return the subset to the UI Aug 18 18:42:03 Hiraghm maybe restart eclipse if adb is showing all as well . ddms & go easily get confused it seems Aug 18 18:42:09 can the database cross reference entries with a dictionary Aug 18 18:42:10 as a filter Aug 18 18:42:23 oh, is this a list of words ? Aug 18 18:42:33 yea Aug 18 18:42:36 hm Aug 18 18:42:38 "words" Aug 18 18:42:56 like 1 800 got milk Aug 18 18:42:59 maybe a trie would be better Aug 18 18:43:00 okay Aug 18 18:43:06 what does "adb ppp" do btw? Aug 18 18:43:10 I see it in the list of adb commands Aug 18 18:43:17 PewPewPew Aug 18 18:43:29 g00s: that would be filtered because at least 1 word is in the dictionary Aug 18 18:43:41 is that the same ppp as in point to point protocol? Aug 18 18:44:24 jubjub so what is the worst case / average / best case scenario for the number of things shown in the listview ? Aug 18 18:44:35 is worst case, all 1000 things are shown ? Aug 18 18:44:42 no Aug 18 18:44:57 let me pm you, to explain Aug 18 18:45:07 pls stay in the channel, i may have to leave Aug 18 18:45:13 tru Aug 18 18:45:22 so Aug 18 18:45:26 essentially there is a list Aug 18 18:45:45 like 416 got milk, 416 got 234, 416 234 5677 Aug 18 18:46:03 like "416 got milk", "416 got 234", "416 234 5677" Aug 18 18:46:18 and i want the ones with real words to be shown Aug 18 18:46:36 output = "416 got milk", "416 got 234" Aug 18 18:47:07 how do you know what a real word is? regex ? another dictionary ? Aug 18 18:47:19 yea a dictionasry cross reference Aug 18 18:48:03 hello. anyone knowledgeable about page faults handling in the kernel and the basic x86 assembly? Aug 18 18:49:23 jubjub yeah in that case, i would read the json as a stream, and entry by entry cross correlate to build up another data structure. Aug 18 18:49:43 oh but Aug 18 18:49:45 ok but* Aug 18 18:49:58 the app has multiple lists Aug 18 18:50:03 accessible by a spinner in the actionbar Aug 18 18:50:24 when the spinner option is clicked the fragment needs to be refreshed Aug 18 18:50:32 with the new entries Aug 18 18:50:47 o Aug 18 18:50:48 i think Aug 18 18:50:50 i just got it Aug 18 18:51:00 i can attach a key to the json file Aug 18 18:51:06 and keep adding to the file Aug 18 18:51:32 ;) Aug 18 18:51:40 thats enough to get me rollin, thanks g00s Aug 18 18:51:56 sure; didnt help any but hope it works out Aug 18 19:02:29 updating android sdk for 4.3 Aug 18 19:02:45 maybe that'll help Aug 18 19:03:06 dunno why it eventually worked on my htc one but not my nexus 7 Aug 18 19:05:36 g00s: i have a final list of strings in my activity Aug 18 19:05:44 is it possible to modify it from my fragment Aug 18 19:06:33 How could I have an AlertDialog show a bunch of ImageButtons so that they get on a new line when they don't fit any more? Aug 18 19:07:19 zyngawow: im not a pro, but could you use a fragmentDialog? Aug 18 19:08:11 jubjub, never used Fragments Aug 18 19:08:48 does anyone have a link to android studio 0.2.0 ? Aug 18 19:09:09 nownot, google Aug 18 19:09:13 zyngawow: could give you more options Aug 18 19:09:31 zyngawow: yeah but all the link I see gives you latest and i can't find a link to previous releases Aug 18 19:09:45 nownot, 3 days ago it gave you 0.2.0 Aug 18 19:10:03 jubjub, I guess there must be something for layouts to show on multiple lines if they don't fit on one Aug 18 19:10:38 is 130.737825 0.2.0? it doesn't have release number in about Aug 18 19:13:35 zyngawow: i dont know then man, sorry Aug 18 19:27:22 how can i modify a public value in my activity with my fragment class? Aug 18 19:28:00 for notification action buttons what size images are y'all using? Aug 18 19:45:24 jubjub: you'd have to get the instance of your activity into your fragment. Better to just do a message passing object probably. Aug 18 19:45:36 jubjub: or just get the parent activity, cast it, and see if it blows up in your face Aug 18 19:45:50 nownot: Try Help => Check for updates, it usually shows both build numbers and version tags. Aug 18 19:45:51 google is telling me to create an interface Aug 18 19:46:15 dragorn: ^ Aug 18 19:48:46 jubjub: yup. that'd be the message passing. It's probably much better. Aug 18 19:49:07 thanks, ill look into it. Aug 18 19:50:29 in that case you'd make a call in your fragment to give it one end of the message passing system, and when your activity creates the fragment it registers the messenger with it Aug 18 20:03:59 Hey, I need to implement my own version of an EditText (long story..), lets say i print the text on the view surface and the user clicks somewhere in the view to place the cursor, is there a smart android/java way of figuring out where in the text the user place the cursor? Aug 18 20:05:58 hi all! I'd like to send data from one activity to many modules, but I don't know how to so that. Can somebody help me? Aug 18 20:55:36 is there anything special you need to do to use offline voice recognition rather than the more traditionl variety? Aug 18 21:02:30 Does anyone use Parse.com? Aug 18 21:02:30 has anybody here been able to set android studio to (auto) format code the way eclipse does? for some formatting (personal) preferences, i couldn't Aug 18 21:02:51 tomeo, we (company) use Aug 18 21:03:35 bitkiller: would you mind helping me out with a query? Aug 18 21:04:05 maybe it's offtopic for this channel Aug 18 21:04:14 but, i personally don't mind Aug 18 21:04:23 bitkiller: then perhaps I can priv you? Aug 18 21:23:15 good evening everyone, could one of you give me some hints on creating a launcher application which offers a drawer that is basically every accessible? the launcher app part is not that hard but the overlaying drawer is a bit tricky since I didnt really find many sources on that online Aug 18 21:23:23 is there any special tricks to making a view like the one on the bottom right of this? http://images.fonearena.com/blog/wp-content/uploads/2012/05/Google-Translate-v2.4-for-Android.jpg Aug 18 21:23:36 text box on bottom Aug 18 21:24:07 what do you mean Linkandzelda? Aug 18 21:24:30 isnt that just a textbox surrounded by 2 buttons Aug 18 21:24:31 ? Aug 18 21:24:47 yea, except that when you make ti go over 1 line it gets bigger Aug 18 21:25:06 or maybe it just does that anyway Aug 18 21:25:55 Linkandzelda: well maybe this would give you the answer: http://stackoverflow.com/questions/12537819/how-to-make-edittext-box-height-expand Aug 18 21:26:57 thanks Aug 18 21:31:38 karlsve: it may sound silly, but what kind of buttons are those? they are buttons but dont look like a "button" lol Aug 18 21:32:45 well you can take basically any shape (custom/non-custom) and get it to trigger an event on the click on that Aug 18 21:33:13 ah, does that do the highlighting of clicking as well? Aug 18 21:33:25 Linkandzelda: those buttons just have a different background Aug 18 21:33:49 Napalm: wasnt finished yet and yeah next piece of my explanation :D Aug 18 21:33:53 Linkandzelda: its this android:background="?android:attr/selectableItemBackground" Aug 18 21:34:03 ooo cool Aug 18 21:34:04 just add that to your button Aug 18 21:34:31 damn API 11+ Aug 18 21:34:44 you can make it backwards compatible Aug 18 21:34:48 but using styles Aug 18 21:34:56 fair enough Aug 18 21:35:03 add an attribute to your app called compatSelectableItemBackground Aug 18 21:35:06 set that on your view Aug 18 21:35:23 Linkandzelda: in case you might need it: http://developer.android.com/guide/topics/ui/controls/button.html#CustomBackground Aug 18 21:36:09 now in your base theme for < v11 set it to your own selector.. in values-v11/styles.xml set it as ?android:attr/selectableItemBackground Aug 18 21:37:44 thanks karlsve and Napalm, one final thing, whats your view on supporting lower than 4.x or 3.x? Aug 18 21:38:27 depends on your audience.. dev's are starting to do 4.x+ Aug 18 21:38:38 right now still necessary if you are developing an app that should get a broad field of customers, if you want to do things that older devices could not do anyways, its not really usefull :D Aug 18 21:38:50 if your app wants to reach a wider audience then you'll want to support 2.3+ Aug 18 21:39:06 http://developer.android.com/about/dashboards/index.html Aug 18 21:39:25 Linkandzelda: take a look at that to see whats going on Aug 18 21:39:57 now that is useful Aug 18 21:40:16 so thats like 33.1% of users that would be missing out Aug 18 21:41:07 exactly, by using the support library most of the things that android 4.x got stylewise can be used in 2.3+ Aug 18 21:41:08 really shows how far things have come since 1.0 lol Aug 18 21:43:02 supporting 2.x for a new app is idiotic, unless you're in an app category where 30-40%+ of user are on 2.x Aug 18 21:43:08 hmm so now its just me having a pending question :/ maybe someone knows a bit about creating overlays over other apps :/ Aug 18 21:43:44 karlsve: what kind of overlay? Aug 18 21:44:54 bubbleguuum: as i said, if you are not developing 4.x specific stuff you might consider it. its not idiotic since some people want to sell their apps and getting a broader field of customers does make a difference then. 1/3 is not a tiny piece of the cake Aug 18 21:45:27 Linkandzelda: well, basically an app drawer that can be pulled in from any application that is running Aug 18 21:45:28 i wonder what kind of users still use those devices Aug 18 21:45:40 karsle: it depends on the app category. less than 10% of my potential customers are on 2.x Aug 18 21:45:52 and 2.x must die Aug 18 21:46:10 ah, sounds it that needs root Aug 18 21:46:26 I was recently looking into mappers for games, and its a similar thing Aug 18 21:48:15 personally I dont want to support anything lower than 3.x, as long as it doesnt hurt too much Aug 18 21:48:42 Linkandzelda: I believe its something like FLAG_WATCH_OUTSIDE_TOUCH Aug 18 21:49:11 hmm, well what would the ovelay do? Aug 18 21:51:22 i want to build a launcher app that provides widget support on the home screen and to show notifications there. The apps should just be available through the drawer and from anywhere, those apps should be sorted into categories and those categories customizable Aug 18 21:51:59 additionally if you pull the drawer just a bit it will show you only the currently running apps whilest pulling it out completely will show the categories Aug 18 21:54:01 thats a really cool idea Aug 18 21:54:17 makes me think of Action Launcher's app drawer but from anywhere Aug 18 21:54:47 yeah well will take some time to do that but ill get to it Aug 18 21:55:26 i just dont like those launchers where you put all the apps you need often on your homescreen. it gets filled up with stuff you might actually never need Aug 18 21:55:55 indeed Aug 18 21:56:23 and you have to keep it clean. so why not just ignore that ability by make it possible to run your apps from anywhere, but at the same time use the space you get for widgets/notifications Aug 18 21:56:43 so if you are looking at your homescreen you see whats really important... not those app icons Aug 18 21:59:41 Linkandzelda: + ill probably offer it for free Aug 18 21:59:45 completely Aug 18 21:59:49 no adds nothing Aug 18 22:00:00 how come? theres a lot of potential earnings there Aug 18 22:00:16 well donations possibility maybe Aug 18 22:01:16 i got a job and i would like money but im not into charging users for something they would donate for Aug 18 22:02:49 It's probably just a personal preference.. i am always a fan of people who offer things to others for free and if i would charge users for that I would not do the things i'd like others to do Aug 18 22:06:39 interesting Aug 18 22:10:07 hey guys, i rrequire help communicating between fragment and activity Aug 18 22:10:20 i know that you can implement this using interface Aug 18 22:10:54 but what i want to know is how do you activate a function in an activity from an event in the fragment Aug 18 22:11:02 for example the fragment has a button Aug 18 22:11:30 and when the button is press the activity adds an item to the dropdown list on the actionbar Aug 18 22:15:05 Augh Aug 18 22:15:38 I just had one of my spent three hours looking for a bug last night, got to it today and found the bug in two minutes things Aug 18 22:17:11 my phone's stopped being recognized on USB and isn't showing the USB tether option, I'm wondering if there's a way to verify the device is still acting properly as a USB device? Aug 18 22:18:11 device manager Aug 18 22:21:26 shows it as an unrecognized device, I've been getting the problem on multiple computers so I believe it's a problem with the phone Aug 18 22:23:04 including a mac Aug 18 22:26:18 is there an offiical edittext with clear button? Aug 18 22:27:02 Linkandzelda: no Aug 18 22:27:11 bit of a bind but ok Aug 18 22:30:05 jubjub, just getActivity and then call your method, super trivial Aug 18 22:30:42 if i want to do speech recognition using only the offline recognition system, how would i go about doing that, I haven't been able to find any details elsewhere Aug 18 22:30:47 true Aug 18 22:41:57 how can I make my edittext fill the width of a linear layout regardless of the text inside? fill_parent doesnt work and only sets it to the size of the hint until entering text Aug 18 22:53:58 weight Aug 18 22:54:19 and don't use fill parent Aug 18 22:54:27 it's misnamed Aug 18 22:54:44 ah,w hat should I use? weight is set at 98 with my other 2 views set to 1 Aug 18 23:05:56 what's inside armeabi-v7a Aug 18 23:06:40 my apk is 11mb. Nine of which is this library Aug 18 23:07:20 I'm looking to store an Address object in SharedPreferences (using a custom Preference). What would be the best way to store it? Aug 18 23:11:11 I'll probably just override the edit text preference and add autocompletion Aug 18 23:15:53 hmm.. is there a way you can get the system audio output stream? to record and/or process output stream Aug 18 23:33:45 hello. I am trying to get all the text posted in a notification. What I am trying is working with 4.2.2 but not with 4.3. Help please. Thanks. Aug 18 23:38:09 pfn: ? Aug 18 23:49:45 hi guys, i want to programatically caputre and save the screenshot just before the screen goes off. i know the capture and save part, my problem is knowing when to call the capture and save function, is there some listener i should register my activity with? Aug 18 23:49:50 Linkandzelda: I think he meant to use match_parent instead Aug 18 23:50:57 Linkandzelda: is it a horizontal LinearLayout? Aug 18 23:51:02 with 3 views? Aug 18 23:52:12 hi guys, i want to programatically caputre and save the screenshot just before the screen goes off. i know the capture and save part, my problem is knowing when to call the capture and save function, is there some listener i should register my activity with? Aug 19 00:04:57 Hey guys, having some trouble with a CNF exception using android studio, even though the manifest clearly defines the main activity correctly. It seems to only happen when my activity extends actionbaractivity instead of a regular activity. Aug 19 00:05:03 Any clues Aug 19 00:05:08 ?* Aug 19 00:08:29 Here is a copy of my manifest file. http://pastie.org/8248668 and my main activity http://pastie.org/8248669 Aug 19 00:18:48 What's the logcat? Probably the ActionBarActivity is the one nt being found Aug 19 00:19:33 f2prateek: Sorry, forgot to include it. http://pastie.org/8248687 Aug 19 00:19:49 but yes it appears you're correct Aug 19 00:21:48 ffs who's bright idea was it to make http://developer.android.com/reference/android/speech/tts/UtteranceProgressListener.html this a class instead of an interface, and what were they smoking at the time >.< Aug 19 00:24:42 f2prateek: Here is my build.gradle - http://pastie.org/8248702 Aug 19 00:32:20 f2prateek: Any idea? Aug 19 00:32:33 Looks fine to me Aug 19 00:33:09 Is thsi uysing android studio? Aug 19 00:33:14 f2prateek: Indeed. Aug 19 00:33:40 No idea then Aug 19 00:34:33 f2prateek: It just makes no sense that it builds fine, all the files are correct, but yet it cant find the mainactivity Aug 19 00:37:14 f2prateek: This is the only odd thing I notice. http://i.imgur.com/LHtaQqi.png Aug 19 00:39:28 the other compat jar points to the sdk repo, this doesnt Aug 19 00:44:55 anybody else able to weigh in? Aug 19 00:50:05 try building with the command line Aug 19 00:50:09 gradle clean && gradle build Aug 19 00:58:36 f2prateek: Well I'll be damned, its working Aug 19 00:58:56 thanks Aug 19 01:19:25 Linkandzelda, it always fills for me, dunno what you're doing Aug 19 02:00:48 hm. how could Oblivion be for rent on iTunes already, its just out in the theatres Aug 19 02:01:02 * g00s grabs, maybe its a fuckup Aug 19 02:02:13 g00s: It was out in April... and the blu ray has been out for a while also Aug 19 02:02:25 huh, really? Aug 19 02:02:27 lol Aug 19 02:03:15 mhm lol Aug 19 02:03:30 haha, i'm Oblivious Aug 19 02:04:32 that pun almost cruised right over my head Aug 19 02:04:47 get it? Aug 19 02:04:48 hehe Aug 19 02:05:09 because tom cruise is the lead actor Aug 19 02:05:21 im not good with jokes. Aug 19 02:08:56 if i am inflating a layout multiple times within an activity, what's the standard way to get a component from within the view when iterating over all of them Aug 19 02:09:19 i tried using findViewById but it always pulls the first component... i'm guessing ids are global? Aug 19 02:09:36 O.o Aug 19 02:09:53 the resulting tree of view return by the inflater is the scope for findViewById Aug 19 02:10:29 hmm, that's odd. i am calling findViewById with the scope of the enclosing RelativeLayout Aug 19 02:10:41 if you add those to a parent, and then findView on the parent - yeah, then the first one will be found Aug 19 02:11:38 yeah, so maybe you want to inflate, find the view on that hierarchy before adding it to the enclosing laytout Aug 19 02:12:05 or figure out a way to generate ids, which is … a little more work Aug 19 02:12:55 well i'm querying the data at a different time than when i'm inflating... so i guess i have to either hold a list of references to the components or generate ids like you said Aug 19 02:13:05 thanks Aug 19 02:13:22 hello Aug 19 02:13:38 is it possible to prevent an android activity from being killed? Aug 19 02:13:50 WITHOUT using a service or a broadcast? Aug 19 02:14:25 if its not in the fg, no i don't think so Aug 19 02:14:51 fg? Aug 19 02:14:58 you can theoretically pin an application, but no, not stop activity from being killed without deep root wizardry Aug 19 02:14:58 foreground Aug 19 02:15:24 pin an application? Aug 19 02:15:53 thing is I am trying to program a pebble app, but the pebble sdk is really weird, and I can't get the service to work Aug 19 02:16:02 it has to be inside the activity for some reason Aug 19 02:16:12 here is the code: http://pastebin.com/pwaQ7nT8 Aug 19 02:17:24 dunno anything about pebble, but maybe that should be in a service ? Aug 19 02:17:42 PebbleKit.sendDataToPebble(getApplicationContext(), UUID, names); Aug 19 02:17:59 g00s: thats what I would like to do, but I keep getting a nullpointerexception when I put it in the service Aug 19 02:18:15 the error being in the pebble sdk files Aug 19 02:18:25 so I want to avoid trying to go through those Aug 19 02:18:31 thats very weird Aug 19 02:18:49 does that line of code do network comms ? Aug 19 02:18:53 and to be honest I have been programming android and pebble for the better part of 3 days only Aug 19 02:19:09 g00s: it does, but that is not the problem Aug 19 02:19:20 problem is line 65 Aug 19 02:19:36 I can't get the dataHandler to register from within a service Aug 19 02:19:39 for some reason Aug 19 02:19:48 without knowing whats going on , its hard to say. if PeppleKit.sendXXX itself starts a service, thats good. they would say that Aug 19 02:20:12 oh yeah, and registering a receiver like that, hm Aug 19 02:20:48 well, they seem to be providing some Facade in these PebbleKit.xxx helper methods, its hard to say Aug 19 02:20:53 its a black box Aug 19 02:21:10 i'm sure the docs prescribe idioms on how those should be used Aug 19 02:21:37 g00s: thats the problem too... Aug 19 02:21:50 pebble SDK docs are rubbish when it comes to Android and iOS Aug 19 02:21:59 once your activity goes away, you may leak that receiver and the context Aug 19 02:22:02 I managed to get the pebble app running Aug 19 02:22:07 but nothing else Aug 19 02:22:40 see: PebbleKit.registerReceivedDataHandler(getApplicationContext(), dataHandler); Aug 19 02:22:49 your passing dataHandler to a black box Aug 19 02:23:07 mornin' all Aug 19 02:23:07 I realize that Aug 19 02:23:10 which is an inner class to your activity Aug 19 02:23:23 so its got a reference to your activity, which has a ref to the context Aug 19 02:23:32 so that, i imagine, without knowing the sdk, is terribad Aug 19 02:23:37 so I wanted to get around it by somehow maintaining the activity running Aug 19 02:23:44 i'll just say, thats broken, dont do it Aug 19 02:23:56 no, dont' fight against the lifecycles Aug 19 02:24:06 put it in a service if thats where its supposed to go Aug 19 02:25:03 you can register the receiver on onStart, unregister in onStop Aug 19 02:25:32 and then in onStart, you may have to see if your data is stale, dunno how their api works Aug 19 02:26:16 i dont see any unRegister, so things are not balanced Aug 19 02:26:43 wow… ok thanks Aug 19 02:26:52 I think I need to read a lot more Aug 19 02:26:59 thanks for the info Aug 19 02:27:22 sure, hopefully they have some examples, see where they register and unregister things Aug 19 02:27:47 good morning alex_PP Aug 19 02:27:48 they do, but tbh they are terrible and have no comments what so ever Aug 19 02:27:56 but than you for your help! Aug 19 02:28:04 why is a toast called a toast Aug 19 02:28:19 desmin88: because it pops up Aug 19 02:28:29 mind. blown. Aug 19 02:28:36 :) Aug 19 02:30:06 how good or bad are the job openings for new android developers? im curious after watching a programmers conference the speaker at that conference said that it is pretty difficult for new android devs to make a dent at anything mobile at this point because that field is taken over by the big companies. Aug 19 02:30:18 is that somewhat true or total bullshit? Aug 19 02:30:49 molossus there is some truth to that, but its very complex. depends on where you are, what your skills are, etc Aug 19 02:30:55 i wouldn't worry too much Aug 19 02:31:08 you could have a job in SF in a week if your a ninja android dev Aug 19 02:31:44 i /do/ think its hard for indie android devs Aug 19 02:32:00 but if you work for a startup, mobile dev shop, etc thats different Aug 19 02:32:11 g00s , the thing is that i started learning android programming but im not sure if i should keep going that route or learning more advanced web development instead of mobile dev. Aug 19 02:32:46 one thing i would like to add. a lot of growth now is in mobile apps for enterprise Aug 19 02:32:57 unfortunately, thats not android's strong area Aug 19 02:32:59 are there any sites where you can swap reviews? i don't mean like "hey i'll give you a 5 star rating if you give me one"; i mean "i'll rate X apps honestly and then get X honest reviews from other people" Aug 19 02:33:32 g00s , what about hybrid apps? is that going to become the norm in the future? Aug 19 02:33:47 i mean html5/css3/JS Aug 19 02:33:52 molossus i don't know Aug 19 02:34:22 when i think hybrid, i think html5 with native components Aug 19 02:34:22 g00s , are you familiar with php? what about that. Aug 19 02:34:51 i don't know anything about php -except that i have on good authority from leeds that it sucks Aug 19 02:35:56 http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ here's some key complaints with PHP Aug 19 02:36:09 hehe, i have seen that :) Aug 19 02:36:19 i'm not a fan of hybrid apps Aug 19 02:36:35 worst of both worlds imho Aug 19 02:36:37 what would be a good combination to focus on the next few years? php dev , html5/css3/JS , java , ??? . Aug 19 02:36:49 oh, thats pretty broad Aug 19 02:37:00 depends on your goals Aug 19 02:37:37 if you're still in school, concentrate on becoming an anwsome general dev, then whatever's flavor of the month whe you start working'll be easy to pick up Aug 19 02:39:06 if you're trying to get a job, then i dunno Aug 19 02:39:12 whatever there Aug 19 02:39:24 's most deamand for where you are, are looking to go Aug 19 02:39:25 im working but want to change to something different Aug 19 02:39:41 in that case, find somthing you enjoy Aug 19 02:40:06 some people find web stuff to be a real pain, and mobile fun, some have the opposite outlook Aug 19 02:40:27 if you're changing directetions o would think you only want to do it once Aug 19 02:40:28 in my case mobile dev is a pain, except jquery mobile, Aug 19 02:40:43 android seems very complex Aug 19 02:41:15 can be. it's easier with a programming backfround, as opposed to design / web Aug 19 02:41:26 i can't type today, sorry about that Aug 19 02:42:08 im not a hardcore programmer but can understand and write programs mostly in php or java Aug 19 02:42:38 mostly in the form of wordpress custom templates, jquery mobile sites, joomla custom site, and web administration Aug 19 02:43:21 im thinking of going the android route, but im not so sure if that is the correct path Aug 19 02:43:40 i'm a big believer in doing things you enjoy. the more you enjoy it, the more you'll care and the better you'll do. Aug 19 02:44:00 there's no point toiling away at somthing you hate Aug 19 02:45:17 and there's often, at least in programming, an obvious course from hobby to job Aug 19 02:45:19 I love that PHP site... Aug 19 02:45:25 it is good Aug 19 02:45:51 i read it every now and again just to remind me about php Aug 19 02:45:58 learning PHP now would be silly - if you want to do modern 'cool' web stuff, you should be looking at ruby/python and js frameworks Aug 19 02:46:21 how long do they have left in them i wonder? Aug 19 02:46:38 server side templating in general … Aug 19 02:46:44 i always relegated them to the trendy johnny come latelys bucket Aug 19 02:46:47 but that goes for django / ror too Aug 19 02:46:51 I have a horrible feeling that I'm going to be trying to write some python CGI later today which is going to have to interact with php Aug 19 02:47:00 oh my Aug 19 02:47:12 the thing is that , most CMSs use php Aug 19 02:47:33 well, it's going to pay for a long weekend in Thailand later this year, so... :) Aug 19 02:47:46 good call. where are you going? Aug 19 02:48:18 got flights booked for Bangkok, might go down to Hua Hin - heard mixed reports Aug 19 02:48:29 pro tip: chang mai is awesome! Aug 19 02:48:54 (also going to Osaka/Kyoto in a couple of weeks, and have done Bali, Kota Kinabalu, UK and Spain so far this year) Aug 19 02:48:57 never been there, look nice though Aug 19 02:49:44 done Bangkok plenty of times before - it's pretty much the default weekend getaway from here Aug 19 02:50:15 oh yeah, you're in HK Aug 19 02:50:27 i just got back from japan Aug 19 02:50:32 it's brilliant Aug 19 02:50:40 planning another trip for next summer Aug 19 02:51:19 i pit on 4kg in 2 weeks though Aug 19 02:51:30 watch out for all the fried food Aug 19 02:51:34 :O Aug 19 02:51:57 next time i'll be there for a bike race, so i should be able to keep the weight of f :s Aug 19 02:52:03 i gope Aug 19 02:52:06 *hope Aug 19 02:52:06 this will be our third trip in 3 years! Aug 19 02:52:39 and some android phones work with the metro gates! Aug 19 02:52:43 at last! Aug 19 02:52:57 (though, sadly, not mine) Aug 19 02:53:01 first time was a bit daunting, but after that it's like... it's a very cool place, the people are pretty friendly, the food is great, the trains are amazing, and it's *really* not that expensive, particularly after the devaluation of the yen this year Aug 19 02:53:34 is there octopus android support yet? Aug 19 02:53:39 don't know about that Aug 19 02:53:45 i spent a fortune Aug 19 02:54:09 but everywhere's a shock comming from SEA Aug 19 02:54:26 HK is pretty expensive, compared to most other places in Asia, apart from Singapore - Japan was surprisingly reasonable from my point of view Aug 19 02:55:25 there's an official Octopus app for reading balance and getting transaction history over the 'net - there's no soft Octopus yet, which baffles me somewhat, and my card is too old (8+ years) to work with the official app anyway Aug 19 02:55:36 there's also one or two unofficial apps which can read balance Aug 19 02:55:36 :( Aug 19 02:56:10 https://en.wikipedia.org/wiki/Mobile_Suica Aug 19 02:56:39 why there aren't more is insane Aug 19 02:58:06 they also seem to have - at least somewhat - cracked the problem of having multiple compatible payment cards Aug 19 02:58:12 the one issue i had with the suica cards was that they don't allow you to run into the deposit for a single trip Aug 19 02:58:26 yeah, that is a nice thing about octopus, you can take it negative *once* Aug 19 02:58:32 so you always have to top up before you can get out of the gates Aug 19 02:59:02 so an NFC baalance reader was very useful for me Aug 19 02:59:27 as i'm fairly disorganised Aug 19 02:59:34 on this Japan trip, we're paying around HK$600-$650 per night for decent 3*/4* hotels, small rooms, but clean, comfortable, fast internet... Aug 19 02:59:44 :o **** ENDING LOGGING AT Mon Aug 19 02:59:59 2013