**** BEGIN LOGGING AT Fri Dec 27 02:59:58 2013 Dec 27 03:00:09 ask pfn he said he does all his apps in scala Dec 27 03:00:35 Aha Dec 27 03:01:10 Googling Android development with Scala. Dec 27 03:02:02 Android applications are self-contained, there appears to be no way for users to deploy a shared library to a device. The Scala library therefore needs to be embedded in every Android application that uses it. Dec 27 03:02:25 So it is possible. Dec 27 03:02:41 You just need to embed the library in every app. Dec 27 03:06:30 Can anyone help generate some ideas, on how to create a web/url filter on browsers.. Dec 27 03:06:48 solved my problem myself: Dec 27 03:07:28 For any who care: I wrote a trivial subclass of Activity that all of my "need authentication" Activities now derive from Dec 27 03:08:13 nice Dec 27 03:08:19 and that subclass implements an interface - AuthDialogSpawner - which has a single callback function to tell the Activity to launch the auth dialog (which is a single shared class) Dec 27 03:08:50 Has anybody used the youtube player api? Any time I have a youtubeplayerfragment and I click home or recents apps, that app crashes giving me this exception: http://pastebin.com/mvCu9yaB Dec 27 03:09:12 the subclass has an override for onStart() that sets an IV in the Application class that tells it which activity is currently doing things that need authenticatoin Dec 27 03:09:21 this may not be the optimum solution - I've only been writing Java for a week Dec 27 03:15:16 Yes, scala on Android works well Dec 27 03:15:57 you can deploy shared libraries to devices, but it requires root Dec 27 03:16:12 or a custom rom Dec 27 03:17:26 * pfn movie time & Dec 27 03:23:23 im trying to use androidscreencast and mouse clicks dont work. i tried the suggestions http://code.google.com/p/androidscreencast/ Dec 27 03:24:40 any logs for this channel? where? Dec 27 03:25:56 hi all :) are there any concurrency concerns with startActivity(Intent)? i want to call it from my GLSurfaceViewSubclass.onTouchEvent() method Dec 27 03:31:41 where should i go for help with importing a project into android studio? Dec 27 03:34:38 jnewt: you can use google Dec 27 03:36:28 correct, i can use google Dec 27 03:37:10 any "real-person" help available? Dec 27 03:37:39 googles pretty close Dec 27 03:39:06 doesn't seem to be close enough in this case Dec 27 03:39:15 okay i can help Dec 27 03:39:25 you want to import a project into as? Dec 27 03:45:14 Heres my class: http://pastebin.com/RVn5SAem and stacktrace: http://pastebin.com/yX9hs4Ea This is stumping me good Dec 27 03:47:14 anyone have any advice for dealing with "extra" touch events that arrive *after* launching a new activity? Dec 27 03:47:31 maybe i can somehow clear the queue of touch events coming in? Dec 27 03:47:45 desmin88: i just had a project i was working on a few months on my desktop computer. Dec 27 03:48:53 have you tried File -> Import Dec 27 03:49:12 i am now on my laptop, downloaded the current android studio and tried to open the project. i don't even know what you mean "import as", i just want to continue work, but whether i import or try to open, i get errors about the gradle version being 1.7 and needing to be at least 1.9 Dec 27 03:49:24 or an invalid gradle home Dec 27 03:50:18 import into as (android studio) Dec 27 03:50:48 my root directory for the android stuff for this project is called android, and contains some gradle stuff, and shows up with the gradle symbol in the file explorer Dec 27 03:51:04 i select that and click ok Dec 27 03:51:29 then i can select a customizable gradle wrapper or use local gradle distribution Dec 27 03:52:16 looks like API Level 19 has a cancelPendingInputEvents() method Dec 27 03:52:19 if i use the customizable gradle wrapper and leave auto-import checked, i get the version error. if i chose local gradle, i don't know, can't guess the gradle home Dec 27 03:54:42 desmin88, i don't get a selection, it jumps to import project from Gradle. i know the other work i was doing used gradle Dec 27 03:57:34 i found something on google about deleting the gradle folder, which i have tried, and now it tells me that 1.6 is required, and that the current release is 1.9-rc-3 (when before it said i had 1.7 and needed 1.9) Dec 27 04:00:15 my android/testProject has a file called build.gradle, and buildscript has a dependenc showing com.android.tools.build:gradle:0.5.+ which i assume is good for any version above 0.5.0 ? Dec 27 04:00:52 sdk versions all show 18, buildToolsVersion is 18.1 Dec 27 04:05:46 it seems they are not backward compatible? Dec 27 04:13:30 desmin88: can you still help? Dec 27 04:28:26 jnewt: i dont know the answer, sorry Dec 27 04:49:17 desmin88, no problem, thanks for letting me know. Dec 27 04:54:01 I'm getting an ISE and a dead object exception, when using the youtube player api in my app and navigating away from an open player. Heres my class: http://pastebin.com/RVn5SAem and stacktrace: http://pastebin.com/yX9hs4Ea Dec 27 04:54:21 Google searches bring up people talking about it, but no solutions. Can anyone weigh in? Dec 27 04:57:46 blah. Dec 27 04:58:33 Has anyone ever gotten a "Cause: com/android/build/gradle/internal/model/DefaultAndroidProject : Unsupported major.minor version 51.0"? It appears that my JDK version is referenced wrong but I never changed it (I was messing around [now] uninstalled libs) Dec 27 04:59:49 51.0 is java7 Dec 27 04:59:56 do you have that installed? Dec 27 05:01:11 desmin88: I can reinstall it. Do you think that one of the libraries I was using required 7? Dec 27 05:01:25 Thats precisely what i thikn Dec 27 05:01:37 Perhaps a library was compiled with 7. Dec 27 05:01:47 How can I uninstall it completely then? Dec 27 05:01:55 So if you didn't have a runtime environment of 7, you'd get an error Dec 27 05:03:21 I definitely have 1.7 installed. the latest, 45 Dec 27 05:05:13 Hmm Dec 27 05:05:58 AS or eclipse Dec 27 05:06:10 I would prefer to remove the library all together. So I went ahead and erase the directory and removed the dependency from build.gradle Dec 27 05:06:13 AS ^ Dec 27 05:06:38 oh Dec 27 05:06:40 well retry now Dec 27 05:06:58 It's still not working, that's where I am stuck Dec 27 05:07:10 if i set the gradle version to 1.9, it says 1.6 is required. if i set it to 1.6, it says the version is too old. wtf android. Dec 27 05:08:03 gradle is at 1.9. but that was never changed haha Dec 27 05:08:07 jmfurlott: Settings >Compiler >Java compiler, is project bytecode version set? Dec 27 05:08:52 It is set to 1.7 Dec 27 05:09:14 And you are 100% sure you have java1.7installed and only 1.7? Dec 27 05:09:24 Per-Module is empty Dec 27 05:09:32 No. I may have 1.6 installed Dec 27 05:10:11 Then uninstall all java jres/jdks Dec 27 05:10:16 and then in stall the latest 1.7 Dec 27 05:10:48 Do you mean off my entire system? Dec 27 05:10:54 Yes Dec 27 05:13:33 desmin88: it looks I have 1.6 installed in a completely different place. I am on a mac and I think that came preinstalled Dec 27 05:13:51 oh Dec 27 05:14:45 Android Studio requires 1.6 as well, so I will have to install it Dec 27 05:14:45 I am not sure then, try changing the project bytecode version to 1.6 then? Dec 27 05:15:17 still no difference then. hmm I may scratch the project and copy the code over by hand Dec 27 05:18:39 desmin88: Can I ask a favor to check what you have under your module(s) in Project Structure -> dependencies Dec 27 05:19:01 sure Dec 27 05:19:30 I have all my project libraries Dec 27 05:19:40 which i specificy in my build.gradle Dec 27 05:19:52 so it would be blank if you had none Dec 27 05:22:31 I started getting this error today as well. (it was totally fine yesterday) Dec 27 05:23:07 I just checked the sdk manager and there are a handful of updates that I needed to grab so I will see if that fixes it. Dec 27 05:24:46 w9jds_: let us know what happens Dec 27 05:31:14 is there a common method that people use for writing their own gestures? Dec 27 05:34:08 can someone look at this code... http://pastebin.com/94X2ugEU Dec 27 05:34:21 My app crashes when it comes back from a QRCode scan. Dec 27 05:34:44 I marked where I think the problem is... I think it is becuase I am calling from a FRAGMENT Dec 27 05:36:29 IrishGringo: post your stacktrace as well Dec 27 05:37:04 canvs2321: I am kind of new to android and Android Studio... and I am running this on a device... not sure how to get a stack trace... Dec 27 05:37:35 logcat Dec 27 05:38:00 look for the tab in the bottom called logcat and set to errors and copy all the red stuff into a pastebin Dec 27 05:38:02 give me something to google for stack trace... and I'll work on it Dec 27 05:38:13 looking Dec 27 05:42:19 IrishGringo: google logcat and stacktrace. Stacktrace will usually give you the exact line in your code that is failing Dec 27 05:42:41 k Dec 27 05:42:44 &the why Dec 27 05:44:47 updating the sdk manager stuff didn't fix it :/ Dec 27 05:45:28 still getting Cause: com/android/utils/ILogger : Unsupported major.minor version 51.0 Dec 27 05:47:41 w9jds_: yup same here...I am reinstalling AS right now and about to create a new project to copy over files...not sure what else to do Dec 27 05:48:11 grr it was a pain in the ass just to configure to project the first time... Dec 27 05:51:22 w9jds_: there must be a solution Dec 27 05:52:00 jmfurlott: I just hope it is better than banging your head on the wall for hours before it is found :/ Dec 27 05:53:15 w9jds_: unfortunately that is where im at Dec 27 05:54:43 canvs2321: http://pastebin.com/hTQnQdda Dec 27 05:55:00 I can not seem to get logcat working... I posted my issues there... Dec 27 05:55:10 Failed to start monitoring Dec 27 05:55:43 please check the confirmation dialog on your device... Dec 27 05:56:14 Good luck jmfurlott, I am about to pass out so I'm going to call it quits for the night. Dec 27 05:56:16 IO Error getting info for device 01 **** BEGIN LOGGING AT Fri Dec 27 06:01:12 2013 Dec 27 06:04:38 Hey guys! I am having serious(not sure) trouble with mocking locations on android. It's just not working! As soon as I try to mock a location, it newly retrieved location by the LocationClient is null.... Dec 27 06:04:43 who died and is stinkin gup the place Dec 27 06:08:42 Why is .setMockLocation giving a null location to LocationClient? Dec 27 06:09:54 canvs2321: http://pastebin.com/SSicFHee Dec 27 06:10:03 includes stacktrace... figured it out Dec 27 06:11:13 Well, the .setMockLocation is not giving a null location to LocationClient, it's the location that the LocationClient tries to get by using .getLastLocation() that is null.. Dec 27 06:13:56 The stack trace shows there is a NullPointerException on the line which tries to get the Latitude and Longitude of the location, which makes sense, since the location is null. What makes no sense is that the location is null... Dec 27 06:17:38 What makes even less sense, is that sometimes it works, sometimes is does not... Dec 27 06:17:59 http://pastebin.com/SSicFHee Dec 27 06:18:26 can someone give me a hint why my qrcode scan is crashing when I return from the intent? Dec 27 06:18:32 IrishGringo: genymotion can use the camera Dec 27 06:19:11 desmin88: not sure what you are saying... genymotion? Dec 27 06:19:22 genymotion is an android emulator Dec 27 06:19:29 superior to the sdk type Dec 27 06:19:34 which supports a camera Dec 27 06:19:55 IrishGringo: have you authorised adb on your device? Dec 27 06:20:14 because, y'know, that's what it gives as an error, twice Dec 27 06:21:11 Leeds: I am googling hwo to do that Dec 27 06:21:21 just hit the bloody "authorise" button Dec 27 06:21:25 you don't need to google it Dec 27 06:21:31 lol Dec 27 06:21:42 IrishGringo: apparently session name is null Dec 27 06:21:44 line 107 Dec 27 06:21:50 did you read the stacktrace? Dec 27 06:21:59 argh, that's impressive... Dec 27 06:22:00 Leeds: where is the authorize button? Dec 27 06:22:04 on the screen Dec 27 06:22:10 when you need to fucking authorise it Dec 27 06:22:11 argh Dec 27 06:22:12 gone Dec 27 06:22:42 Leeds: ive said before, late night this channel goes to shit with broken english people asking to be spoonfed Dec 27 06:22:54 desmin88: it's lunchtime here :( Dec 27 06:23:05 oh Dec 27 06:23:05 well Dec 27 06:23:14 in general this channel is like that :P Dec 27 06:23:35 don't make fun of me desmin88 hehe Dec 27 06:23:54 yes, unfortunately it is Dec 27 06:23:59 jmfurlott, you have an excuse, android studio is pretty bitchy Dec 27 06:24:22 I'm on android studio Dec 27 06:24:24 IrishGringo: You should learn to read stacktraces. Line 107. xxSESSION_NAME.setText(session_name); You get session name from your bundle. Dec 27 06:24:38 When is a session name string ever put into your bundle? Dec 27 06:24:48 also, I don't really understand the resumehasrun boolean Dec 27 06:25:34 I get the feeling you've copy and pasted code without understanding how it works Dec 27 06:26:20 desmin88: I do copy and paste a lot of code... but I am normally doing iOS stuff... just learning Android Dec 27 06:26:25 fair enough Dec 27 06:26:28 we all started somewhere Dec 27 06:26:59 Anyways look at your stacktrace, NPE on line 107, work from there Dec 27 06:28:33 Ahhh... I bet session_name is null becuase its in the onResume procedure ( or what ever you call them )... Dec 27 06:30:46 yes that is correct. Dec 27 06:31:15 well... i dont think its the onResume... still crashes Dec 27 06:31:31 show the new stacktrace Dec 27 06:32:48 Does anyone know of a way to see if LocationClient is doing its work? I am always gettting the same value when I call .getLastLocation() ... Dec 27 06:33:11 desmin88: I am also getting the same error on a fresh project in AS. Must be my system config then... Dec 27 06:33:22 probably Dec 27 06:33:47 i am trying to figure out how to setup my android studio to use a project that i have in a sub directory of a git repo. but it won't import (different gradle versions), seems to be missing an android facet so it won't compile (after i removed all of the gradle stuff and started over. thing is, it opened fine on my home computer, but now that i'm on my laptop, it's a mess. how do i figure out what i did wrong? Dec 27 06:35:58 desmin88: http://pastebin.com/cnEc8n1E Dec 27 06:37:31 well which one is it Dec 27 06:37:33 you posted a shit ton Dec 27 06:38:16 the last pastebin is the last stacktrace... and I see that on resume there are some problems... Dec 27 06:38:42 gentlemen Dec 27 06:39:03 line 109, now fix that error Dec 27 06:43:18 instead of resume... I think I need something like onStart... something that runs just once... and at the begining... Dec 27 06:43:50 Hey guys, real quick, where is the documentation in the eclipse ADT? Dec 27 06:43:57 IrishGringo: what is line 109 Dec 27 06:44:02 the documentation for android Dec 27 06:44:20 wilornel: d.android.com Dec 27 06:44:24 its in the topic Dec 27 06:44:38 what about the one you download through Android SDK Manager? Dec 27 06:44:53 desmin88: that is in a protected void onResume(){ Dec 27 06:44:53 uhh? Dec 27 06:45:00 IrishGringo: What is the line Dec 27 06:46:03 What about the documentation one downloads through Android SDK Manager? Dec 27 06:46:15 what do you mean Dec 27 06:46:27 what /about/ it Dec 27 06:47:04 desmin88: xxSESSION_NAME.setText(session_name); Dec 27 06:47:11 wilornel: the one you download is sitting in the sdk folder under a subdirectory called docs Dec 27 06:47:38 IrishGringo: So your textview or string is null, figure out which and fix it. Dec 27 06:48:00 I think that the bundle is not set resuming from the CameraScan... Dec 27 06:48:24 can you repaste your class please Dec 27 06:49:03 jmfurlott: Thanks tons Dec 27 06:50:30 desmin88: http://pastebin.com/kL1nSqVV Dec 27 06:52:56 IrishGringo: You need to print out 'session_id' and 'session_name' and 'xxSESSION_NAME' and 'xxSESSION_ID' and see which is null. Dec 27 06:53:11 Damn, I can't get LocationClient to give me the latest locations... Dec 27 06:56:34 IrishGringo: so did you do that? Dec 27 06:56:57 on a related note... my android device never seems to be connected so good with teh cord... I am always having to fiddle with it Dec 27 06:57:33 desmin88: I commented out those lines to see to test the crash... Dec 27 06:57:42 they are not vital lines Dec 27 06:57:57 They are where its crashing Dec 27 06:58:01 so they are 'vital' Dec 27 07:01:19 desmin88: I think this is what is happening... My MainActivity fires intent to start this Activity. This Activity fires onRESUME, and it works the first time, becuase the bundle has SESSION_NAME and SESSION_ID.... Dec 27 07:02:13 but when this class calls intent to fire up the camera, it returns with a bundle that does not have SESSION_NAME... and onRESUME is fired, which is when it fails. Dec 27 07:02:18 when it crashes... Dec 27 07:02:48 So I think I need to find a way to call some code just once... at startup. Dec 27 07:03:12 so can you just do what i said or... Dec 27 07:04:32 why are you protecting those classes like onCreate() ? Dec 27 07:05:21 (drive by review :) ) Dec 27 07:06:07 I am new to android programming, read few manuals on how to install an apk file to the emulator.... so downloaded and put into my custom directory, using command prompt 1. started the , 2. started the emulator and 3. tried to install the apk by giving adb instsll WeChat_2.x.x..apk Dec 27 07:06:18 If my class implements LocationListener, can't it be cast to that type? Dec 27 07:06:24 capella: protecting onCreate()... was that to me? Dec 27 07:06:26 after this there is a blinking dash in the command prompt and nothing happens Dec 27 07:06:31 am i doing it right ? Dec 27 07:06:42 if you posted the code yah Dec 27 07:07:20 desmin88: I am pretty sure I need to move that code to a different procedure... like onCreate. Dec 27 07:07:43 cool Dec 27 07:08:35 really though why are you ignoring my advice Dec 27 07:09:01 capella: i'm reading your advice again... Dec 27 07:09:13 desmin88: presumably you're not telling him exactly what he wants to har Dec 27 07:09:22 yep. Dec 27 07:09:47 Leeds: why even ask for help if you don't want it Dec 27 07:09:49 but the first time it fires, those values are not null... they work... but when onResume fires after coming back from the camera, then the bundle is different.. I think that is the issue Dec 27 07:10:03 So, it makes no difference if your onCreate() and other Android lifecycle methods in an activity isn't declared public? Dec 27 07:11:08 "The method requestLocationUpdates( LocationRequest, LocationListener) in the type LocationClient is not applicable for the arguments (LocationRequest, LocationListener)...." Dec 27 07:11:23 desmin88: I'm reading your advice again Dec 27 07:12:57 "The method requestLocationUpdates( LocationRequest, LocationListener) in the type LocationClient is not applicable for the arguments (LocationRequest, LocationListener)...." Dec 27 07:12:59 Why is that?? ^ Dec 27 07:14:23 It makes no sense to me Dec 27 07:14:46 Why would LocationRequest and LocationListener != LocationRequest and LocationListener? Dec 27 07:14:56 ok its been some time so il ask again Dec 27 07:14:57 I am new to android programming, read few manuals on how to install an apk file to the emulator.... so downloaded and put into my custom directory, using command prompt 1. started the , 2. started the emulator and 3. tried to install the apk by giving adb instsll WeChat_2.x.x..apk Dec 27 07:15:01 after this there is a blinking dash in the command prompt and nothing happens Dec 27 07:15:06 am i doing it right ? Dec 27 07:15:13 thre is no progress bar or anything Dec 27 07:15:27 solofight: I don't really understand what you're doing Dec 27 07:16:06 solofight: A blinking dash in the command prompt is just your cursor. Meaning it's waiting for some input Dec 27 07:16:22 wilornel: wanted to install WeChat app in the emulator - so downloaded the apk file and used the command "adb install 'path_to_setup_/WeChat_xxx.apk" Dec 27 07:16:32 so, what did he start in step 1. ? Dec 27 07:16:48 you started the "," ? Dec 27 07:16:48 capella: started the server Dec 27 07:17:01 wilornel: started the server Dec 27 07:17:02 ah :p Dec 27 07:17:17 "adb instsll WeChat_2.x.x..apk " Are you sure it's instsll and not install? Dec 27 07:17:37 solofight: Can you show us some logs, can you copy past something into pastebin.com? Dec 27 07:17:40 wilornel: i typed install in the command prompt and wrong here Dec 27 07:17:47 Maybe you could read what the command prompt is saying.... Dec 27 07:17:54 Just make a pastebin Dec 27 07:18:06 * solofight googles for where to find logs for installation Dec 27 07:18:23 solofight: No, just copy past your command prompt.... Dec 27 07:18:29 wilornel: command prompt is not saying anything... after the command it goes to the next line and keeps blinking Dec 27 07:18:38 omi Dec 27 07:18:46 solofight: Alright, try this now. Adb shell Dec 27 07:19:02 Then, run your install command Dec 27 07:19:05 You'll be inside the device, so it will return you something that time Dec 27 07:19:15 Make sure you're in the device by doing "adb shell" Dec 27 07:19:22 ahh ! its a 15 mb setup.. so i think it took so much time... now it says success Dec 27 07:19:32 wilornel: oh adb shell gets me into the device Dec 27 07:19:32 solofight: ahh! Dec 27 07:19:35 \o/ Dec 27 07:19:41 solofight: Exactly Dec 27 07:19:43 capella: wilornel thank you very much Dec 27 07:19:50 solofight: Then you could've seen the output of the installation Dec 27 07:20:00 Anyone knows how a type is not equal to itself? Dec 27 07:21:44 "The method requestLocationUpdates(LocationRequest, LocationListener) in the type LocationClient is not applicable for the arguments (LocationRequest, LocationListener)"... Dec 27 07:22:24 wilornel: thank you again Dec 27 07:22:29 so is that an "IDE I'm thinking for you!" message, or from logcat? Dec 27 07:22:33 solofight: :) Dec 27 07:22:58 it's an messge, hahah Dec 27 07:23:07 I think I have to clean the project Dec 27 07:23:10 or just Restart eclipse Dec 27 07:23:21 nope, same thing after restart... Dec 27 07:23:31 or get intelliJ Dec 27 07:23:45 aaaahh no that's for later Dec 27 07:23:51 We don need no stinkin' "clean" button :( Dec 27 07:25:05 Course, we *can* invalidate the cache restart the IDE, but sounds more technical Dec 27 07:25:11 Eclipse was the first program I've seen which needs for no aparent reasons.. Dec 27 07:26:38 Alright alright, how can I cast my DataFragment class, which implements LocationListener, into LocationListener? Dec 27 07:26:54 After using Eclipse for like 8 hours and finding I could (needed to?) manually delete error messages from the build system, I'd had enough Dec 27 07:27:28 4 out of those 8 hours being spent pointlessly, right? Dec 27 07:27:31 you want to cast a class to an interface? Dec 27 07:28:00 Aparently I need to Dec 27 07:28:26 I have a LocationListener object inside the class, but that class also implements the interface Dec 27 07:28:30 Using that object doesn't work Dec 27 07:28:35 so I shall cast the class Dec 27 07:32:17 well my thought is "yah you can't do that" Dec 27 07:33:05 Ach, well, just a sec Dec 27 07:33:16 cast an class implementing an interface to the interface? Dec 27 07:33:29 is what he says Dec 27 07:33:51 why do you think you cant do that Dec 27 07:34:02 class != interface Dec 27 07:34:21 uhh well you can Dec 27 07:34:29 tell me Dec 27 07:34:39 Well that's what they do there: http://developer.android.com/training/location/receive-location-updates.html#StartUpdates Dec 27 07:35:01 If I have Class Apple implementing interface Fruit, I easy do Fruit fruit = (Fruit) apple Dec 27 07:35:08 mLocationClient.requestLocationUpdates(mLocationRequest, this Dec 27 07:35:15 ); Dec 27 07:35:42 this being "public class MainActivity extends FragmentActivity implements GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener, LocationListener { ... Dec 27 07:37:04 desmin88: So, any idea why it's telling me I can't use a LocationListener in place of a LocationListener? Dec 27 07:37:13 paste code Dec 27 07:37:27 wait so Fruit fruit implies you're instantiating an interface Dec 27 07:37:41 will try to concatenate the essential Dec 27 07:37:45 thats basic java Dec 27 07:38:03 news to me? Dec 27 07:38:15 then you must not know basic java Dec 27 07:38:41 Yeah I think casting to an interface was made clear during the tutorials Dec 27 07:38:56 MMm ... could be Dec 27 07:39:33 you shouldnt need to cast to the interface if your class implements it Dec 27 07:39:37 I'm trying to remember that last gig ... Dec 27 07:40:47 pastebin.com/5Aa8YtTL Dec 27 07:40:53 desmin88: ^ Dec 27 07:41:15 desmin88: Oh and yeah, that's what I was thinking, I shouldn't need to cast it if the class implements it. Dec 27 07:41:28 desmin88: But that error is so weird... Dec 27 07:41:53 So your class is location listener, but you also have a locationlistener inside you class Dec 27 07:41:55 is that correct? Dec 27 07:42:19 my class implements LocationListener, AND I have a LocationListener inside my class, correct Dec 27 07:42:30 is that what you are supposed to do? Dec 27 07:42:56 not at all what I am _supposed_ to do, it's not polished code at all Dec 27 07:43:22 desmin88: ^ Dec 27 07:43:47 desmin88: the problem is on line 21 in the pastebin Dec 27 07:44:05 It tells me I cannot use LocationClient, LocationListerner for LocationClient, LocationListerner. Dec 27 07:44:35 i dont see an mlocationrequest anywhere Dec 27 07:44:40 other than in line21 Dec 27 07:44:43 When I try to use this in place of the LocationListener argument, it tells me I cannot use LocationClient, DataFragment in place of LocationClient, LocationListerner Dec 27 07:45:04 desmin88: mLocationRequest is not the problem. The problem is the second argument Dec 27 07:46:40 did you import the wrong locationlistner Dec 27 07:46:58 there are 2 i believe Dec 27 07:48:22 If your class implements LocationListener, why encapsulate the methods in the mLocationListener var? Dec 27 07:48:44 "not at all what I am _supposed_ to do, it's not polished code at all" Dec 27 07:48:46 capella: Ignore that, I was testing with different things Dec 27 07:48:58 ah :) Dec 27 07:49:25 ah, spots the scrollback Dec 27 07:50:16 wilornel: so did you import the wrong one? Dec 27 07:51:03 desmin88: Hm... there's the android.location.LocationListener one and the com.google.android.gms.location.LocationListener; one Dec 27 07:51:14 so import the correct one Dec 27 07:51:15 I replace the first with the second one, and now the IDE is not complaining Dec 27 07:51:19 replaced* Dec 27 07:51:40 problem solved Dec 27 07:51:40 desmin88: It works! Thanks Dec 27 07:52:01 desmin88: But why are there two different LocationListener? It's so ** (ach I feel sick now...) Dec 27 07:52:16 :p Dec 27 07:53:11 I'm still not done here, now I have to figure out why it's designed this way.. Dec 27 07:53:15 the google guys have a wicked sense of humour and like to screw with developers' minds Dec 27 07:53:27 Leeds: Impossible! Dec 27 07:53:39 I shall not believe that idea Dec 27 07:54:03 you must be new here :P Dec 27 07:54:08 Hrm, if the ampersand is an invalid character for an app, then why oh why did eclipse let me name the project with an ampersand in it... Dec 27 07:54:35 And, like, desmin88 did have the intuition that there was a second LocationListener in the libraries Dec 27 07:54:52 i just googled location listener Dec 27 07:54:53 2 popped up Dec 27 07:54:56 Leeds: Sort of. I stay for a week every 4 months Dec 27 07:55:45 desmin88: Hahah nice find Dec 27 07:55:50 Unbelievable though Dec 27 07:56:46 Alright, I'll take a walk with that new, functional LocationClient. Have a good night guys, thanks tons Dec 27 08:14:39 one of my mates just messaged me - his dad bought a windows tablet for 223, down from 323, which was down from 600 -- gee they really wanna get rid of 'em haha Dec 27 08:16:54 MS seems ... confused these days Dec 27 08:17:11 soon they'll be paying you to take them ;) Dec 27 08:17:48 Nobody would even get paid to use them daily Dec 27 08:30:18 Hello, given an inputstream to photo data, how can I tell if there is anything in that photostream? Dec 27 08:30:22 (err input stream Dec 27 08:32:53 read the stream? Dec 27 08:34:37 you'll get a -1 from the read methods if there's no data in the stream Dec 27 08:34:41 or no more data Dec 27 08:36:18 ahh okay Dec 27 08:36:38 yeah thanks, had an idea but after some more research think i can route out this crash :) Dec 27 08:39:27 Does anyone know if the uris for contact data are reliable, eg if I am querying raw contact entity, i can switch on the mime type and rely on the data given it is within the android uri domain? Dec 27 08:42:07 Also another question I have is if there is a way to check the validity of intents to be sent, ie, if i grab from the list of packages some packages, some of them will or won't be able to launch by intent, is there a way I can determine this before I launch the intent? Dec 27 08:51:11 Is the loading of images through BitmapFactory supposed to be done on an ASyncTask? Dec 27 09:25:28 I keep getting a class not found exception at runtime for ViewPager. Dec 27 09:25:37 Any idea what I could be wrong Dec 27 09:25:44 I've setup the right path in gradle Dec 27 09:28:08 try to clean your project Dec 27 09:28:14 sometimes the build can be messed up Dec 27 09:28:51 desmin88: did everything possible Dec 27 09:29:05 running out of options.. Dec 27 09:33:19 hi Dec 27 09:33:30 Suppose an app stores user details on its own server over its own API. When a user connects via their facebook account, should it be the app/client that connects to FB asking for details or should it be the app's server? Dec 27 09:40:14 does gradle not let you do any network requests when running a script via command line? Dec 27 09:40:34 its complaining about invalid json but when i run the script standalone, its fine >.> Dec 27 10:35:51 so you can't use translucent decore in 4.4 if you have an actionbar? that's a shame... Dec 27 10:36:40 kinda makes me tempted to remove the ActionBar in this app, not like it needs it anyway (was only using the overflow menu for a 'settings' page and that's it) Dec 27 10:49:03 so, do we know how YouTube app passes data from one activity to another Dec 27 10:49:20 there is no intent-ish thing showing up in logcat :-( Dec 27 10:54:46 Anyone has experience using google play-services in a maven project? Dec 27 11:39:45 hi Dec 27 11:51:48 how to put the rectangle on my camera preview Dec 27 12:14:12 howdy Dec 27 12:14:27 simple question.. does android support QML? :) Dec 27 12:17:37 heya folks, one weird question Dec 27 12:17:42 Natively on Android, no. Can you install Qt for ANdroid and make it run, probably. Dec 27 12:17:52 I've got a fragment with a fragmentpageradapter in it, paging 6 other fragments Dec 27 12:18:05 the problem happens when I browse for an imagei n the gallery then come back (restore instance) Dec 27 12:18:09 hmm.. does the user needs to install that kjeldahl ? or can i build it in the app Dec 27 12:18:26 I would guess you would have to bundle it with your app. Dec 27 12:18:46 When I do that, only the last fragment remains in the viewpager, trying to navigate forward results in a crash Dec 27 12:18:54 hmm would suck Dec 27 12:19:12 i try to use a different language because html5 on android doesnt really work that well Dec 27 12:19:56 Hard to get around java on Android, or at least JVM based languages. Dec 27 12:20:12 i hate java even more than my ex gf Dec 27 12:20:43 I'd recommend you use what the framework offers your instead of trying to force Qt into it. Dec 27 12:20:45 Yeah, not my favourite language either. Dec 27 12:21:13 (Very?) few people use Scala. Dec 27 12:21:23 pfn does, iirc. Dec 27 12:21:38 kakazza, i use html5 on bb10 because it works more than awesome, i can even do system calls like notifications :) but porting the app to android makes it a hell because 90% of the things dont work anymore Dec 27 12:21:48 Learn java on ANdroid first, then move to another jvm languagelater if you want. Dec 27 12:21:48 Does Qt even look native on Android? If not, it's an easy answer: Don't use it. Dec 27 12:22:15 but android is my third dev platform Dec 27 12:22:19 not first or second Dec 27 12:22:21 The Android ewbview is also a known security risk. Dec 27 12:22:24 After? Dec 27 12:22:28 bb10 and 7 Dec 27 12:22:28 (sry I'm on a 10kbit link) Dec 27 12:22:37 Wow, really picked the big platforms there. Dec 27 12:22:45 i dont care about big :) Dec 27 12:22:47 Probably one of the few devs, I guess work is good. Dec 27 12:23:20 kakazza, your app will be gone and nowhere to be found on a platform thats bigger... except if its already known by a smaller group Dec 27 12:23:21 :) Dec 27 12:23:43 And on BB10 I'll have 20% of the market with 100 users ;p Dec 27 12:23:56 lol make it a few mil Dec 27 12:23:57 :P Dec 27 12:24:21 but that wasnt the discussion :P Dec 27 12:24:33 what is the security risk in webview Dec 27 12:25:00 Is the loading of images through BitmapFactory supposed to be done on an ASyncTask? Dec 27 12:25:26 MITM attacks which give full access to the app sandbox and resources. Dec 27 12:25:33 lol Dec 27 12:25:33 Yeah, let's not go down that road. How big is the app? You'll experience less problems if you go native than trying Qt or HTML5. Dec 27 12:25:56 Up to API level 17/18 I believe. Dec 27 12:26:03 kakazza, well i just rebuilded it for bb10 to make it look native Dec 27 12:26:12 so ask me again in a month Dec 27 12:26:12 :) Dec 27 12:26:19 autrilla: Loading images should always be on a different thread than the UI thread. Dec 27 12:26:21 Heh Dec 27 12:26:47 Which API level are you targetting Asmooh? Dec 27 12:27:07 ehm 11+ because of the actionbar but in building it against 4.4 Dec 27 12:27:21 kakazza, I have them in a ListView, how am I supposed to do it so it doesn't freak out when it tries to set the image for each ListView item and it doesn't find it? Dec 27 12:27:39 Google "Picasso square", use that. Dec 27 12:27:46 Maybe throw in OkHttp too. Dec 27 12:27:56 Asmooh: Go >14 Dec 27 12:28:13 hm Dec 27 12:28:29 11-14 is not worth it. Has very few users and not worth the effort to support it. Bugs, some APIs only available with 14/15 etc. Dec 27 12:28:54 https://developer.android.com/about/dashboards/index.html Dec 27 12:29:05 kakazza, I'm not doesnloading them, just loading them from a drawable Dec 27 12:29:06 13 is 0.1%, 11, 12, 14 below 0.1%. Dec 27 12:29:15 autrilla: That works too. Dec 27 12:29:23 oh ok Dec 27 12:29:24 ahh okay :) Dec 27 12:29:26 thanks Dec 27 12:29:44 http://square.github.io/picasso/ Go to "Resource Loading" Dec 27 12:29:57 i cant force people on android to have min 720p, right? Dec 27 12:30:29 There's no such concept, really. Android doesn't deal in pixels. You can "force" screen size and screen density. Dec 27 12:30:43 yeah i found that out Dec 27 12:30:50 thats why im building an android resfix Dec 27 12:31:02 But if you're doing it right, you'll easily cover 90% of all screens without much effort. The other 10% are large screens, like tablets. Dec 27 12:31:41 well i will try to make it on resolution anyway... so basiclly it calculates how big boxes needs to be compare to how big they are on 720p Dec 27 12:31:43 For example, older tablets might have 720p, but it will still look like shit, because the layout just doesn't work on 10". Dec 27 12:31:52 hmm Dec 27 12:31:55 thats a point Dec 27 12:32:14 https://developer.android.com/guide/practices/screens_support.html#density-independence Dec 27 12:32:23 That whole article is worth a read. Dec 27 12:33:00 did that a few times over the years Dec 27 12:33:20 thats why i stopped with android :P Dec 27 12:33:47 Maybe you didn't read carefully enough. Dec 27 12:34:20 This video helped me a great deal: https://www.youtube.com/watch?v=zhszwkcay2A Dec 27 12:37:13 okay :) Dec 27 12:38:54 At first it might seem "Oh, shit, I have to write the same layout for all different screens". But really, it's that you effortlessly write it once for most of the devices, because you use dp, not px. Dec 27 12:44:46 yea Dec 27 12:56:45 people, when i try to use my webcam as the emulators camera, the emulator starts without errors but when i initiate the camera app, it says "unfortunately the camera is not available" Dec 27 12:57:19 when i google they say check log, but am new to this.. how to debug kindly give some inputs Dec 27 12:57:52 *camera has stopped Dec 27 13:17:44 OK, Internets Dec 27 13:17:51 I need your advice :) Dec 27 13:18:08 people, when i try to use my webcam as the emulators camera, the emulator starts without errors but when i initiate the camera app, it says "unfortunately the camera is not available" Dec 27 13:18:08 when i google they say check log, but am new to this.. how to debug kindly give some inputs Dec 27 13:18:14 *camera has stopped Dec 27 13:18:41 I'm revamping the "chat view" in one of my apps, but I'm not completely sure what to make of it as I'm really no designer. Any suggestions? Dec 27 13:19:26 I'm thinking speech bubbles from an avatar (most common afaik), but any cooler ideas are welcome. :-) Dec 27 13:19:38 solofight: Fire up the DDMS and check what logcat's telling you. Dec 27 13:19:50 DDMS ? Dec 27 13:20:36 dalvik debug monitorijng services ! Dec 27 13:20:44 solofight: Dalvik Debug Monitor Server :) Dec 27 13:21:00 solofight: But yeah, that one. It includes logcat. Dec 27 13:22:35 trying to open this link http://developer.android.com/tools/help/logcat.html ... my b**ch internet conn is taking so long Dec 27 13:24:27 Hi, I am following this tutorial: http://developer.android.com/training/basics/data-storage/databases.html and it mentions a "FeedEntry._ID" property, however that is not defined in the FeedEntry class, is that a standard property of java Objects? the compiler does not seem to complain but I can't find it in the java docs... Dec 27 13:24:43 n20: it says failed to connect to camera service Dec 27 13:25:50 So guys, check this out Dec 27 13:26:05 solofight: How are you trying to open the camera? Dec 27 13:26:25 n20: by clicking on the camera icon on the emulator Dec 27 13:26:27 2 projects, both use the same custom font with unicode characters, both have the same MyCustomFontTextView component which just loads the font with createFromAsset and sets it as the typeface Dec 27 13:26:36 1 shows the unicode characters, the other doesn't Dec 27 13:26:36 n20: http://pastebin.com/8YQKBimM Dec 27 13:26:38 same exact code Dec 27 13:26:45 what could be the cause? Dec 27 13:27:41 solofight: Try this: http://stackoverflow.com/questions/14012924/android-how-to-use-webcam-in-emulator Dec 27 13:28:12 Tee_Pee: Same data you're outputting to the screen as well? Dec 27 13:28:38 aye Dec 27 13:28:52 the sizes and settings of the textview match to the letter Dec 27 13:30:40 simoneb_: _ID is inherited from BaseColumns http://developer.android.com/reference/android/provider/BaseColumns.html Dec 27 13:31:57 Tee_Pee: That's weird. Same device I take it? Dec 27 13:32:04 n20: thank you, just noticed that. what is that string supposed to contain? why does it use it as the primary key of the db? if that string is unique for each FeedEntry that does not seem to make much sense (i must be missing something.....) Dec 27 13:32:46 n20 - I just realized that it isn't the font, I am reading the JSON response improperly, I am getting ?s due to that... my fault completely Dec 27 13:33:08 simoneb_: The field name itself isn't unique, which basically gives adapters and so on a common base to stand on. :) http://stackoverflow.com/questions/3192064/about-id-field-in-android-sqlite Dec 27 13:33:56 simoneb_: Like, if you follow the standard, you'll always know where to find the (PK?) ID for a table Dec 27 13:34:05 (Someone better correct me if I'm phrasing it incorrectly) Dec 27 13:34:22 n20: so that is supposed to contain the name of the column which holds the primary key, right? Dec 27 13:34:47 this is pretty maddening, I have two textViews in my relative layout, one is small, the other is large. The smaller one is set to alignTop and alignBottom with the large one, with a gravity of center_vertical. This works *fine* in the layout editor (and appears correctly) but running on a device the smaller text is always top aligned - anyone know why this might be? Dec 27 13:35:15 Tee_Pee: Yay. Better a JSON related issue than some obscure font loading one :) Dec 27 13:35:55 simoneb_: http://stackoverflow.com/questions/4313987/do-i-have-to-use-id-as-a-sqlite-primary-key-and-does-it-have-to-be-an-int-an Dec 27 13:36:10 http://pastebin.com/v8e9NfT5 for reference, this is my code, and it's appearing in a ListView. Dec 27 13:36:44 after some apps and the problem always returning, i´ve found that using Service is the best approach to handle progressdialog along with orientation changes Dec 27 13:38:09 yup Dec 27 13:38:22 Turns out the API is returning wrong stuff Dec 27 13:38:27 I'm gonna go yell at my API programmer. Dec 27 13:38:31 Wasted a goddamn hour on this Dec 27 13:38:37 storkme: Could you provide us with two screenshots? Dec 27 13:39:12 Tee_Pee: I know the feeling. I was debugging JSON the other day, turns out it was returning a JSON Object in string form all of the sudden, which basically looked the same at that hour Dec 27 13:39:49 r cannot be resolved. tried all of the obvious solutions. what do? Dec 27 13:40:07 jasonmog: The error log should contain one error that's not like the others. :) Dec 27 13:40:27 the Problems tab? Dec 27 13:40:42 jasonmog: Think so, are you using Eclipse? Dec 27 13:41:30 yes. 100% of the errors are "R cannot be resolved" Dec 27 13:42:22 that means you have an error in one of the xml files Dec 27 13:42:27 so its failing to generate R.java Dec 27 13:42:36 jasonmog: Any resources with a dash in its name or anything like that? :) Dec 27 13:42:40 thought so but how do i know which one and what line? Dec 27 13:42:49 no weird naming. this project built in the past Dec 27 13:43:04 but this is a new eclipse Dec 27 13:43:09 thats where the eclipse ui sucks, its hard to find those errors Dec 27 13:43:16 yeah Dec 27 13:43:19 Android Studio actually catches those in a good way :D Dec 27 13:43:22 jasonmog: i don't think older versions of eclipse would give that error Dec 27 13:43:25 ant is much simpler, but ant and eclipse clash badly Dec 27 13:43:28 jasonmog: e.g. indigo Dec 27 13:43:36 i plan to move to android studio but first i need to make sure i can get this built in eclipse Dec 27 13:43:51 jasonmog: ant is much simpler to build with Dec 27 13:44:16 always had this problem with each version of eclipse Dec 27 13:44:38 is there some way to validate my xml files? Dec 27 13:44:57 about all i can think of is to try to modify and save one Dec 27 13:45:02 and then watch the error log Dec 27 13:45:02 or a command line tool to individually build them? Dec 27 13:45:24 or give up on eclipse and just 'ant release' Dec 27 13:48:38 wow it was a wrong newline Dec 27 13:49:29 i would appreciate to be un/confirmed on my finding Dec 27 13:50:40 bitkiller: ? Dec 27 13:51:57 that a Service is the best way to handle a background task that updates UI (progress dialog) and orientation changes Dec 27 13:52:16 n20: http://imgur.com/xYqnYSh does this help at all? I'm going out of my mind a little bit, the left text has a gravity of center_vertical explicitly set. Dec 27 13:54:09 is there any way to check what the gravity is in say the hierarchy viewer? I'm looking at the view properties and nothing is jumping out at me. Dec 27 13:55:18 storkme: Hang on Dec 27 13:56:46 storkme: Do you really have to have your alignTop&alignBottom if you're only having those two views? Dec 27 13:56:53 hey guys, i am having a big problem Dec 27 13:57:06 how do I downgrade google play services to revision 12? Dec 27 13:57:34 new version has conflict with admob, and the new version does not support dfp Dec 27 13:57:42 which I am currently using, how can Google be this careless? Dec 27 13:57:54 storkme: layout_height="match_parent" should fill up nicely if that's your use-case. It won't look correct in the layout editor, but it should look as expected in the ListView Dec 27 13:58:03 guys? Dec 27 13:58:37 n20: I've got a view underneath it, too. Dec 27 13:59:07 storkme: The genre? Dec 27 14:00:21 yes Dec 27 14:05:02 okay the real solution to my problem was installing the build tools Dec 27 14:05:21 i have the sdk and platform tools installed Dec 27 14:05:34 and those were the only ones specified in the instructions Dec 27 14:06:19 storkme: Does this make a difference? It's a bit unclear in the editor :) Dec 27 14:06:24 storkme: ^http://pastebin.com/CDhYZJRV Dec 27 14:07:39 ehm Dec 27 14:07:44 woeps Dec 27 14:07:47 wrong channel Dec 27 14:10:17 n20: http://imgur.com/GNFzEdF Dec 27 14:10:56 storkme: Hmmm. That was unexpected.:) Dec 27 14:11:03 likewise Dec 27 14:11:11 I'm getting very very confused. Dec 27 14:12:46 Any margins/padding? Dec 27 14:13:01 none at all :/ Dec 27 14:16:27 kakazza, still here? Dec 27 14:17:51 fuck it, I'll come back to it later I guess... Dec 27 14:19:33 Or anyone with Picasso knowledge for that matter. Dec 27 14:19:44 storkme: http://pastebin.com/zkCizjJd Dec 27 14:19:50 I know about Picasso autrilla Dec 27 14:20:08 autrilla: Picasso.from(getActivity).load("http://www.google.com/favicon.ico").into(myImageView); Dec 27 14:20:15 jaynewstrom, alright! What could cause it to be awfully slow? Dec 27 14:20:19 what is the best way to handle dates for different locals? I have a date edittext that will eventually find its way to a mysql database, and I need to make sure its formatted correctly. Dec 27 14:20:35 n20, Picasso.with(), not from afaik Dec 27 14:20:47 Loading from resources btw Dec 27 14:20:48 autrilla: are you loading really large bitmaps? are you creating a new instance of picasso each time you use it? Dec 27 14:21:01 jaynewstrom, I'm accessing it staticly Dec 27 14:21:09 autrilla: Ah, my bad - my short term memory is still borked I see, given that I just used it :D Dec 27 14:21:13 yep, n20, works fine. Dec 27 14:21:30 jaynewstrom, well, yes the bitmaps are big Dec 27 14:21:33 2000x2000 Dec 27 14:21:42 Maybe I should use smaller sizes Dec 27 14:21:44 autrilla: theres your problem Dec 27 14:21:49 But I don't understand image sizing with dps Dec 27 14:21:50 autrilla: 2000x2000 is quite big. :) Dec 27 14:22:19 It's square images that are set on a GridView to autofit Dec 27 14:22:27 What image size in pixels should I use? Dec 27 14:22:45 autrilla: px = dp * (dpi / 160) Dec 27 14:22:54 are these stored in the apk? or are you downloading them? Dec 27 14:23:00 jaynewstrom, stored Dec 27 14:23:15 autrilla: :) > http://developer.android.com/guide/practices/screens_support.html Dec 27 14:23:17 you could place them in the different resource files, based on screen dpi as well, that would help Dec 27 14:23:32 i've overridden scrollBy on a subclassed scrollview and it doesn't scroll... i'm calling super.scrollBy(0, someValue) and nothing... any ideas? Dec 27 14:23:34 autrilla: Contains some goodies on the DPI Dec 27 14:23:51 someValue is giving me a value, it should scroll Dec 27 14:24:12 n20, pixels depend on dpi, so I should make a res for each dpi Dec 27 14:24:20 duh... Dec 27 14:24:32 And how many dps is half a screen? Dec 27 14:41:15 conclusion: relativelayout in a listview is weird an can go fuck off and die Dec 27 14:48:27 How am I supposed to know the dps of an element if it's set to autoFit on the GridView? Dec 27 14:53:51 380x380 seems to work fine for xhdpi Dec 27 15:16:12 when using a navigation drawer how are you supposed to switch to another top level view from a deeper level view? the clear top flag only clears the stack if the activity is already running :/ Dec 27 15:53:22 Hello world! Dec 27 15:53:36 9-patching with a touchpad is such a hassle. :D Dec 27 16:18:21 it is? just click click click the borders... Dec 27 16:19:50 When uploading an apt to the play store, it claims that I am supporting more localizations than I actually am. I can't find any references to Hebrew or Spanish in my manifest or strings. What might cause the play store to think I support the localizations? Dec 27 16:20:37 is there an event that fires after a fragment is loaded? I'm trying to persist the contents of a text box across tab changes Dec 27 16:21:56 hi all Dec 27 16:21:58 grep_awesome: you're using libraries that specify those localiations Dec 27 16:22:18 or possibly some really really bad typos Dec 27 16:23:28 funkbox: that's quite possible. I do use Facebook, google analytics, and admob. Is there any way to get rid of those translations for my built apk? Dec 27 16:24:51 AphelionZ, as in, in a ViewPager? Dec 27 16:25:30 BenOrnstin: here's my code thus far http://pastie.org/private/1ximghivmlnoqmirgqg Dec 27 16:28:19 funkbox: yeah it was facebook. Thanks!. I deleted the translations for facebook and it shows up correctly on new builds. Dec 27 16:28:44 using emulator (4.3) shell in linux and tab completion works. in windows, it doesn´t. Does it depend on anything of the hosting terminal? Dec 27 16:29:09 how can i enable it? Dec 27 16:32:13 AphelionZ, this may work (but I'm not certain if it will with actionbar tabs): http://stackoverflow.com/questions/9779397/detect-viewpager-tab-change-inside-fragment Dec 27 16:32:25 thanks, checking it out Dec 27 16:37:07 Does someone know a clean method of getting the context from a custom class (in my case called Project that basically stores data) Dec 27 16:42:58 What image size in pixels should I use for images on a GridView set to autoFit? I don't know hoy many dps it'll occupy Dec 27 16:46:42 autrilla: you can specialize your res folders more than just dpi, you can do screen width and dpi, just make buckets for each type Dec 27 16:47:26 "buckets" meaning some average size image that'll work given that general screen dpi and size Dec 27 17:07:30 Hello, I am very new to Android development. I found a Stack Overflow answer that looks like it's what I need, but the answer doesn't include a code example. Would somebody mind helping me out with the implementation? http://stackoverflow.com/a/5387742 Dec 27 17:07:36 BenOrnstin: just ended up doing it on onStart http://pastie.org/private/kdsxgfiwjpo4sdw3evfg Dec 27 17:08:06 How can I get access to the QEMU monitor of an emulator instance? 'qemu monitor' via port 5554 bails out with "KO: internal error: could not detach from console !" and `-qemu tcp:127.0.0.1:5553` fails with "chardev: opening backend "socket" failed" Dec 27 17:08:34 ok why am i now getting unable to execute dx again :/ Dec 27 17:08:36 grr Dec 27 17:10:04 Java.nio.BufferOverflowExceptipn when i build my project Dec 27 17:10:11 wtf over? Dec 27 17:10:49 i was getting that when i used googles most recent API abomination. im building for 2.3.3 which worked fine till just NOW Dec 27 17:14:55 was building fine 5 minutes ago. fixed a native function prototype to match the function and now when i build i get "unable to execuyte DX" Dec 27 17:15:10 anyone have ANY ideas why my build system is now broke because i fixed a bug in my code? Dec 27 17:16:37 Hi. I have a gameloop and I would like to call some sort of function in it that handles the events of the activity. Atm the game renders and behaves perfectly fine but the actionbartabs it is in are quite laggy. So I think I need to call an update function in my gamethread. Dec 27 17:16:44 Is there one? Dec 27 17:23:50 could my build be failing because i have too many files in assets? Dec 27 17:24:09 i guess every file in assets is pkzipped and as they are all very small the zipping probably increases their size Dec 27 17:24:40 i noticed my apk got HUGE when i split the data up into separate files Dec 27 17:25:15 could that be the problem? Dec 27 17:26:08 why am i getting a buffer overflow when i build :( Dec 27 17:27:30 omfg google lol Dec 27 17:27:53 update available for platform tools to 19.0.1.. run the update and get URL not found Dec 27 17:28:17 ooh err maybe thats me Dec 27 17:28:27 I am still at 19 Dec 27 17:29:49 only reason im updating is because my build is suddenly crapping out on me Dec 27 17:29:52 unable to execute dx Dec 27 17:30:23 fix a small bug in my code and BAM build buffer overflows during build Dec 27 17:30:25 How costly is Android's `findViewById`? Dec 27 17:31:06 probably not at all. just a guess Dec 27 17:31:11 It iterates through your view hierarchy until it finds a view with that id Dec 27 17:31:14 its probbly a simple table lookup Dec 27 17:31:30 does it not hash them to make the lookup faster? Dec 27 17:31:39 or is it a simple itteration? Dec 27 17:32:03 Simple iteration Dec 27 17:32:19 answer: dont have 3453342543 views Dec 27 17:32:35 Kay, so when I have, say, 100 lookups after some user interaction, it's better to memoize them. Dec 27 17:33:08 I440r, unfortunately, I've got lots of them. :^ Dec 27 17:34:10 i would say simplify then... do you need that many views? Dec 27 17:34:36 but tbh im not an android expert so dont listen to me lol Dec 27 17:35:31 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewGroup.java#L3246 Dec 27 17:35:44 That's how it works Dec 27 17:37:58 anyone have an idea how i can force the activity thread to update and not let another thread get all the focus? I have a game with a gameloop inside a fragment in a actionbartab. When it runs the tab changing gets really laggy. If I lower fps in my gamethread it doesnt change anything. Dec 27 17:41:10 in a ViewGroup, how can i simulate ScrollView's smoothScrollTo method? Dec 27 17:42:36 Same way ScrollView does it Dec 27 17:43:19 oh i suppose i could copy out scrollview's code directly Dec 27 17:49:53 My question is a little long for IRC, so if you have a moment, please check here: http://www.reddit.com/r/androiddev/comments/1tter5/webview_with_progress_indication/ Dec 27 18:04:16 ok so my desktop is actually mounting the source tree for my project via sshfs from the filesystem on my laptop Dec 27 18:04:34 my laptop can build those sources but the desktop errors out with cannot execute dx Dec 27 18:05:06 the reason im sshfs mounting it is my desktop is 12 cores at 4.7ghz so running the emulator is not painful Dec 27 18:05:24 but something has changed on the desktop making the build fail and i have no idea how to track that down Dec 27 18:10:56 So, I have a pretty heavy weight activity that is doing video conferencing and loads a bunch of libraries and crap. Dec 27 18:11:05 When I launch it the first time, it takes a long time to load all of its dependencies. Dec 27 18:11:27 But subsequent startActivity calls seems to load the in-memory version of the Activity. Dec 27 18:11:56 Is there any way when my app starts to sort of launch the activity in the background, so that it will start quickly the first time I call startActivity? Dec 27 18:22:37 why does the sqliteopenhelper need a context? if I istantiate a sqliteopenhelper from different activities, the context will be different and so I will see different sqlite databases? Dec 27 18:24:04 It needs a context to get your package name so it knows where to put the database Dec 27 18:24:34 It wont be a different database per activity Dec 27 18:49:01 I'm getting a "Fatal spin-on-suspend, dumping threads" from the GC killing my app. Thing is, the thread it marks as being stuck on is running inside a JNI call. I thought that threads which were executing native code were ignored when the GC paused, so it doesn't make sense to me that it's stuck on it. Dec 27 18:50:51 probably locking on a jni env Dec 27 18:52:24 Sorry, can you explain that slightly more? Like a "jenv->DoSomething()" ? Dec 27 18:56:17 <|Agent_> In a horizontal layout, I have a TextView and an icon. I want the icon to be flush-right to the parent Dec 27 18:56:23 <|Agent_> but I'm not sure how to do that Dec 27 18:56:44 <|Agent_> If I have the TextView be fill_parent, it shoves the icon completely off screen Dec 27 18:57:13 <|Agent_> If I have the TextView be wrap_content, the icon is flush to the TextView, not the parent's right edge. Dec 27 18:59:10 Pastebin your xml Dec 27 19:03:04 <|Agent_> Estel, http://pastebin.com/X2UZVN96 Dec 27 19:05:23 What is the difference between the icon being flush with the right side of the text and the right of the parent? Dec 27 19:06:45 But I'd suggest setting a layout_weight="1" on the textview, and a width of 0 Dec 27 19:06:50 <|Agent_> The text is pretty short. The difference is whether there is empty horizontal space between the end of the text and the icon. I want there to be empty horizontal space. Dec 27 19:08:26 pfn: The android docs (http://developer.android.com/training/articles/perf-jni.html) say "Android does not suspend threads executing native code. If garbage collection is in progress, or the debugger has issued a suspend request, Android will pause the thread the next time it makes a JNI call." I'm confused as to how I could get the "fatal spin-on-suspend" when supposedly it shouldn't try to suspend my code Dec 27 19:08:26 while its in native, and if it calls back into Java... shouldn't the java be suspendable so I don't get that error? Dec 27 19:08:51 <|Agent_> Estel, that works, thanks! Not sure why, though. As I understand it, weight is relative weight of different views. If I only have one view with a weight, I wouldn't expect it to matter. Dec 27 19:09:27 |Agent_: views fill the "remaining" width accoridng to their weights. Dec 27 19:09:33 <|Agent_> ah Dec 27 19:09:43 So if the other view has no weight, it doesn't get any share of the remaining width Dec 27 19:11:59 Im trying to find online resources for xml for android Dec 27 19:12:58 ia9371 http://developer.android.com/guide/topics/resources/index.html ? Dec 27 19:14:30 im trying to find documentation on xml for android Dec 27 19:14:41 <|Agent_> Hm. Reading the docs, it doesn't look like Google Glass live cards support TableLayout. Dec 27 19:15:10 I just linked you the documentation, ia9371 Dec 27 19:35:34 I have errors while linking : error: undefined reference to 'ReleaseStringUTFChars' Dec 27 19:35:52 that's with the ndk, correct? Dec 27 19:35:58 yep Dec 27 19:36:07 9b Dec 27 19:36:45 this functions (have more similar issues with similar functions) should come with jni or android ndk... Dec 27 19:37:12 they do Dec 27 19:37:43 how are you running the build? ndk-build from the project directory? Dec 27 19:37:56 yep Dec 27 19:38:10 AndroidStudioProjects\libftdProject\libftd> ..\..\..\android-ndk-r9b\ndk-build.cmd Dec 27 19:38:31 using powershell in win8 Dec 27 19:38:48 pastebin your Android.mk and Application.mk files Dec 27 19:39:22 ia9371, d. android. com Dec 27 19:39:40 http://pastebin.com/C2JbXtfa Dec 27 19:39:48 I do not have Application.mk Dec 27 19:41:18 hm. what about running ndk-build V=1 ? Dec 27 19:42:08 http://pastebin.com/WQTD2PW2 Dec 27 19:42:13 thx for hint Dec 27 19:42:31 with V=1 Dec 27 19:46:43 hm. not sure what's wrong tbh Dec 27 19:46:53 ok Dec 27 19:48:15 and simple code Dec 27 19:48:16 jstring ret = 0; Dec 27 19:48:16 ret = (*env)->NewStringUTF( env, "hello work"); Dec 27 19:48:16 return ret; Dec 27 19:48:26 hmm Dec 27 19:48:32 it doesnt complaing about this function Dec 27 19:49:25 I feel I should get some fun holiday project, but I don't know what it will be... Dec 27 19:49:42 hi! is there a good way to filter a remote views adapter? it populates a listview, and it's really annoying that I can't use constraints as I would with a cursoradapter... so far, I'm restarting the cursorloader with a different query whenever my filter changes, but I don't think that's the most efficient way to do it... Dec 27 19:50:51 I'm also currently trying to build a wrapper for the cursor so that I can filter it, but it would be great if I could just filter things in my widget without changing the underlying data. Dec 27 20:04:13 Hi all, I'm trying to create a CAB for deleting one or more items in a gridview Dec 27 20:04:29 I cannot make the thing to work Dec 27 20:05:00 getCheckedItemPositions() keeps returning 0 items... Dec 27 20:10:52 anyone? Dec 27 20:14:21 android studio giving me package R does not exist errors without any other errors. already checked all XML files Dec 27 20:15:43 What does auto-fix suggest? Dec 27 20:17:52 Estel: how do i check? Dec 27 20:18:09 alt+enter Dec 27 20:19:11 it offers to import various R classes Dec 27 20:19:40 if there's one that begins with your package name, try that one Dec 27 20:20:48 I need help with a CAB for deleting multiple grid view items Dec 27 20:29:22 please anyone willing to help? Dec 27 20:38:03 stupid question... I created a bunch of widgets that aren't being displayed but still update in the background. how do I get rid of them? Dec 27 20:39:18 If I were to develop an android app for an embedded device, could I theoretically update the app through the play store like I could on my android phone for example? Dec 27 20:42:07 I'm pretty new to android app development i have done the "Hello World" style applications. I now am looking to make an app that needs to store data in a central location eg a database. Can anyone recommend the best practices for connecting should I use a socket or should it be just HTTP request? Any tips would be greatly received Dec 27 20:43:18 when are sqlite databases created? if I delete them, do I have to re-create them by hand? Dec 27 20:43:25 matt1982: I would recommend a REST based interface if it needs to be cloud based Dec 27 20:43:45 then you could make the database transaction platform/software agnostic Dec 27 20:44:16 then you could do it over HTTP Dec 27 20:44:23 or HTTPS Dec 27 20:44:38 sirpatrick, that makes sense and then the REST based interface could then be used in other applications be it another site etc Dec 27 20:44:44 Exactly Dec 27 20:45:00 or iOS if i ever decided to learn that Dec 27 20:45:05 so now if you want a desktop app, or IOS app it can communicate easily Dec 27 20:45:15 all routed through one place Dec 27 20:45:20 seems logical :D Dec 27 20:45:25 thanks sirpatrick Dec 27 20:46:24 no problem Dec 27 20:47:55 any recommended reading on how to go about performing the requests within the application sirpatrick? There are so many resources. I don't want to pick a bad habit up from the start Dec 27 20:48:12 Well start with simple http posts Dec 27 20:48:48 remember to never to do network based tasks within the main thead. So you will extend AsyncTask Dec 27 20:48:49 https://www.google.com/search?q=http+post+android+example&oq=http+post+android+example&aqs=chrome..69i57j69i60.6376j0j4&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8 Dec 27 20:48:52 I'm guessing they will need to be AsyncTasks? Dec 27 20:48:55 ahh cool Dec 27 20:50:06 this looks pretty complete: http://mobiledevtuts.com/android/android-http-with-asynctask-example/ Dec 27 20:50:47 yup Dec 27 20:50:59 awesome. Thanks man. Dec 27 20:51:11 I am actually working on something similar so let me know if you have any questions Dec 27 20:51:13 no problem! Dec 27 20:51:20 Cool will do many thanks Dec 27 20:51:26 you can start making HTTP requests in AsyncTasks but realize that it's not a proper long-term solution Dec 27 20:51:35 JakeWharton, how do you mean? Dec 27 20:51:41 AsyncTasks are terrible Dec 27 20:51:51 they should be used for quick, one-off, local operations Dec 27 20:52:10 What is the better solution Jake? Dec 27 20:52:11 Got any pointers I can google? Dec 27 20:52:14 as long as you don't mind them not working Dec 27 20:52:29 yeah i'm sure we both may need this Dec 27 20:53:17 while seemingly contradictory, if you are just getting started with doing HTTP you should use AsyncTask Dec 27 20:53:22 it's quick, easy, and it will work Dec 27 20:53:47 okay well what is the long term, proper solution? Dec 27 20:53:50 Yeah that's cool. I wouldn't mind knowing the next step in the ladder so to mean Dec 27 20:54:05 after that, however, you should look into maybe IntentService or libraries that abstract away the async like Volley or Retrofit Dec 27 20:54:09 AsyncTask is the "Hello World" of http request then Dec 27 20:54:41 yeah. they're just plagued with problems in trying to control them. you can do it, but it's more effort that it's worth Dec 27 20:55:12 not that Android even lets you do this anymore, but they're a huge step in the right direction from, say, doing HTTP on the main thread Dec 27 20:57:28 ahh thanks JakeWharton I will take a look at those services. It's good to know this as it seems to be something the developer guide doesn't really mention too much (From what I can see) yet it seems quite a common feature Dec 27 20:59:18 yeah i'm surprised there isn't a training article that covers using an IntentService or something Dec 27 20:59:35 i don't even know what Google recommends for HTTP nowadays anyway Dec 27 20:59:51 There is tho Dec 27 21:00:55 well there you go. go find that buried in some corner of the doc site Dec 27 21:01:12 https://developer.android.com/training/run-background-service/index.html Dec 27 21:01:27 JakeWharton, that's what i couldn't find out. I do ajax requests etc in my day to day job as a web developer and it seemed logical (to me) that i would need to perform a similar task however there is no way google mentions for the HTTP requests.. Dec 27 21:02:14 cool SimonVT Dec 27 21:02:22 well you'll probably hate IntentServices then. they're these big heavy things for something that shouldn't be so complicated (but is) Dec 27 21:02:24 i'm off to lunch Dec 27 21:02:50 ahh cool many thanks JakeWharton for the assistance Dec 27 21:31:25 what does it mean when a manifest file does not end with a new line? Dec 27 21:36:46 I'm not sure what to tell you. Dec 27 21:38:19 It means exactly that. Dec 27 21:39:19 Header Expected? Dec 27 21:39:37 I looked in my Manifeast file... thre are no New Lines at all Dec 27 21:39:56 Your Manifest is a single line? Dec 27 21:40:39 Maybe there are old lines *ba-dum-dish* Dec 27 21:40:47 well... new lines after every line Dec 27 21:41:03 That's not "no New Lines at all" Dec 27 21:41:04 well, I do not understand what they mean by this Dec 27 21:41:13 Who are they and why do you care? Dec 27 21:41:51 I am getting an error in Android Studio with some TextViews Dec 27 21:42:28 you have textviews in your manifest file? Dec 27 21:43:27 I have TextViews in XML files... but the warning over some of the TextViews is: Header Expected.... Manifest file does not end with a final NewLine Dec 27 21:47:08 that makes no sense, since an xml layout file isn't your manifest file Dec 27 21:48:25 I am not explaining it properly... some of the ID's for the TextViews are underlined in RED in the XML files. Dec 27 21:48:44 When I mouse over them, they say... Header Expected.... Manifest file does not end with a final NewLine Dec 27 21:48:54 right Dec 27 21:49:04 either it's a bit confused Dec 27 21:49:31 when I google it, I see someother people are having same issue.. but not much explanation... It;s probablys omething simple stupid Dec 27 21:50:23 It's happened a couple of Activities in this project. and this is the first project where i included Fragments in the Project SetupScreen Dec 27 21:51:22 but that error is due to the fact that your manifest file (ie, androidmanifest.xml) should end with an empty line Dec 27 21:54:23 but pastebin your manifest and one of the layout xml files Dec 27 22:00:13 Guys, I'm getting a deadobjectexception whenever navigating away (home/recentapps) a view in my app with a youtubeplayer. Heres my code: http://pastebin.com/RVn5SAem and heres the exception: http://pastebin.com/yX9hs4Ea Dec 27 22:00:31 I've tried a lot of things and i can't seem to get it to not crash Dec 27 22:02:36 this is of course using the youtube player api Dec 27 22:36:22 I'm not exactly sure where to talk about this but Dec 27 22:36:35 I'm thinking about compiling Das U-Boot for the Galaxy Discover. Dec 27 22:36:44 when in doubt, go away~ Dec 27 22:36:56 Chainload U-Boot instead of the Android kernel to create a more flexible phone... Dec 27 22:37:21 wouldn't #android-root be more appropriate? Dec 27 22:37:25 I don't know. Dec 27 22:37:32 As this is bootloader discussion. Dec 27 22:37:45 Also, Cygwin is stuck at 99% Dec 27 22:37:50 this place is strictly development :x Dec 27 22:37:55 using emulator (4.3) shell in linux and tab completion works. in windows, it doesn´t. Does it depend on anything of the hosting terminal? Dec 27 22:38:15 how can i enable it? Dec 27 22:40:08 I'm also in #u-boot Dec 27 23:13:48 twitter api. Dec 27 23:13:52 i hate it so much. Dec 27 23:14:35 storkme: +1 Dec 27 23:33:08 <|Agent_> What would you guys recommend for managing local data to be used by several activities? A common DataProvider service to which they all bind? (The data is basically a collection of test cases, cached from a server somewhere.) Dec 27 23:37:02 |Agent_, yes Dec 27 23:37:20 Can I use a GridView as the ListView in a ListFragment? Dec 27 23:37:55 MDijkstra: Sorry... I stepped away... Dec 27 23:38:00 MDijkstra: http://pastebin.com/tVgbNYPH Dec 27 23:38:09 I still have the issue... Dec 27 23:38:21 JakeWharton: So, about the Devoxx talks,... Dec 27 23:38:30 uh Dec 27 23:38:33 remind me Dec 27 23:39:07 I want to watch the talks, which means either buying individual videos (like yours) or a subscription for all of them. Dec 27 23:39:17 I'd have thought that 'adb install market.apk' would make the google play store work on my tablet (hipstreet titan, doesn't come with google play store), yet it "stops working" when I launch it Dec 27 23:39:22 any ideas? Dec 27 23:39:26 diamond #android-root Dec 27 23:39:30 Anyone know what has to change to the typical intent filter declaration for long_press_search in the manifest to get the activity to listen for such on newer phones? Dec 27 23:39:33 Also use the gapps package Dec 27 23:39:34 I wanted to know if you could recommend any other talks, so I can better decide whether to buy just a few videos or all of them. Dec 27 23:39:41 let me look quickly Dec 27 23:46:00 kakazza: from a quick look, chet and romain have a few which all were good, java 8 and beyond, reactive programming patterns, java 8 lambads, lambda peek under the hood Dec 27 23:46:15 there's a bunch of web stuff (knockout, angular, dart) if you're interested in that as well Dec 27 23:47:04 wait what is java 8 even a thing yet Dec 27 23:48:50 JakeWharton: Thanks, I'll see if all of these interest me, then decide if I should buy a subscription. Dec 27 23:49:03 storkme: it's been feature complete since june Dec 27 23:49:16 oh baby. Dec 27 23:49:20 storkme: https://jdk8.java.net/download.html Dec 27 23:49:36 it's my default JVM Dec 27 23:49:39 works great Dec 27 23:50:01 couldn't be any worse than 7 Dec 27 23:51:15 aw, 7's not that bad. it just doesn't look like there was a lot of work done Dec 27 23:51:33 plus invokedynamic paved the way for 8 Dec 27 23:51:39 yeah that's the problem, it was a long time to wait for not very much. Dec 27 23:53:49 true. but if you think about it, the gap between java 6 and java 7 on Android was much smaller than the gap between the JVM releases Dec 27 23:55:46 I'd just like something to abate my c# envy. Dec 27 23:56:07 or groovy envy, or scala envy. Dec 27 23:59:18 JakeWharton: I just saw that your last years talk is free, do older devoxx videos become free over time Dec 27 23:59:19 ? Dec 27 23:59:43 yes Dec 27 23:59:51 and don't watch that Dec 28 00:00:18 that sounds like it might be embarassing you should watch it. Dec 28 00:00:25 Heh, why not? Dec 28 00:00:29 it's just not a good talk Dec 28 00:00:47 Content-wise? Dec 28 00:01:00 yeah Dec 28 00:01:16 b-but, it's you Dec 28 00:03:20 just FYI: "the coming war on general computation, from Cory Doctorow" http://www.youtube.com/watch?v=yYqkU1y0AYc Dec 28 00:06:33 kakazza: i'd rather send you the 4 euro or whatever to watch the new one Dec 28 00:06:36 Oh by the way: anyone looking to listen for LONG_PRESS_SEARCH on the physical buttons, you need to use ACTION_ASSIST from jelly bean and on Dec 28 00:10:12 I thought of something to do for kicks and giggles. Dec 28 00:10:23 I should setup a x86 baremetal cross compiler on this ICS phone. Dec 28 00:10:45 I only have 2.7gb of storage though :/ Dec 28 00:10:54 the compiler will run on the actual ICS device? Dec 28 00:11:00 yes. Dec 28 00:11:16 And spit out baremetal x86 assembled files. Dec 28 00:11:20 wow cool Dec 28 00:11:23 to what effect Dec 28 00:11:25 its tempting to do. Dec 28 00:11:31 hehe Dec 28 00:11:34 Build a x86 os on a ARM device Dec 28 00:11:37 thats running android Dec 28 00:11:41 lmao Dec 28 00:11:43 i love it Dec 28 00:11:45 My nexus 4 could do it better Dec 28 00:11:48 not hard, but fairly pointless Dec 28 00:11:50 but where's the fun in that? ;_ Dec 28 00:11:52 ;) Dec 28 00:12:07 I'd love to create a new OS to run on ARM Dec 28 00:12:10 llvm is built into Android ya know Dec 28 00:12:20 JakeWharton: hah Dec 28 00:12:22 the LLVM in android likely only has support for the arch it's running on Dec 28 00:12:29 since it's used for renderscript and whatnot Dec 28 00:12:43 Renderscript uses it to compile to either ARM, x86, or GPU Dec 28 00:12:45 Does anyone have any good guides to porting KitKat? Dec 28 00:12:52 zinx, true Dec 28 00:27:40 How do I delete my database for my app on a non-rooted device? Dec 28 00:28:25 run-as com.your.package.name Dec 28 00:28:32 rm databases/your.db Dec 28 00:29:00 assuming the app is debuggable Dec 28 00:30:05 Oh. Didn't know of run-as. :) Dec 28 00:31:22 Thank you! Dec 28 00:43:48 What is the easy way to get the actual .apk of an app from the play store? Dec 28 00:43:58 install it Dec 28 00:44:10 How do I pull it off of the device? Dec 28 00:44:28 adb pull /data/apk/com.package.name-1.apk Dec 28 00:44:38 noice Dec 28 00:44:40 thanks Dec 28 00:45:01 s/apk/app/ Dec 28 00:45:07 yeah Dec 28 00:53:40 Cool. That worked Dec 28 00:55:17 <|Agent_> If I have a type parameter T, is there a way to get T.class? Dec 28 00:55:52 yes, but it's not pretty Dec 28 00:56:06 you're better off adding Class cls to the constructor Dec 28 00:56:16 <|Agent_> gotcha, thanks Dec 28 00:58:08 JakeWharton: I love Picasso! A question from the top of my head - does it do any disk caching? Dec 28 00:58:15 Hi SimonVT! Dec 28 00:58:16 no, the underlying HTTP layer does Dec 28 00:59:06 JakeWharton: Oh, that's cool. So, if I'm like fetching gravatars for a ListView (conversation between two people), then it'll be saving them for when I start the app next time as well? Dec 28 00:59:27 yes, assuming Gravatar sends back proper caching headers Dec 28 01:01:02 JakeWharton: Thanks for the quick response :) Dec 28 01:02:10 JakeWharton: I was going to use the Novoda ImageLoader before (I tweeted you on the subject), but it really isn't comparable :)) Dec 28 01:03:30 JakeWharton: Can't beat the Picasso.with(context).load(gravatarUrl).into(imageView) Dec 28 01:04:32 i agree. i tried just about every image loader on the planet and always wondered why they had such awful APIs Dec 28 01:07:07 So... the question of the day is... show gravatars in the list of your "friends", or not. Dec 28 01:09:28 Chet Haase's talk: €2. Jake Wharton's talk: €5, eh Dec 28 01:10:08 kakazza: Huh? :D Dec 28 01:12:58 Well, when you don't have a lot of viewers you have to charge more Dec 28 01:13:29 buzzkill Dec 28 01:13:36 Goodnight fellas, gonna head upstairs seeing that it's 2:13AM over here :) Dec 28 01:14:02 Hello, my compiled kernel had problems with the lcd panel, at boot it doesn't show the boot animation and the panel powers off but the backlight stays on, it lasts like 5 seconds when is not beign touched, other than that the kernel seems to work fine, what can be the problem? touch panel ? power management? Dec 28 01:14:12 Moved downstairs as the lady was complaining about my keys making an awful lot of noise lol Dec 28 01:14:25 elruki: #android-root Dec 28 01:14:34 ok Dec 28 01:39:38 Hey guys,i got a problem emphasizing a sentence in android Dec 28 01:40:26 "You needed exceptional talent, you needed genius at Bletchley and Turing's was that genius." I need this line to be emphasized in italics Dec 28 01:40:33 in scroll View Dec 28 01:42:47 XML strings can have some basical styling Dec 28 01:43:04 http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling Dec 28 01:43:28 If you're retrieving the string in code, make sure you use getText(), not getString(). Dec 28 01:45:01 hey guys I'm creating a fragment where the user and select date and time and for some reason the pickstart date button picks time and the time button gives an IllegalStateException. can anyone help me pinpoint what's going wrong? Layout: http://pastebin.com/dJuv1pbF Java: http://pastebin.com/Hf1BcyAF stacktrace: http://pastebin.com/xzYg70FB Dec 28 01:55:40 you can't use onClick in fragments Dec 28 01:57:28 bind click listeners in code Dec 28 01:58:20 JakeWharton: you mean in the XML? Dec 28 01:58:25 yes Dec 28 02:00:05 JakeWharton: i did it in the java. i deleted the onClicks in the XML but still have the same problem Dec 28 02:00:49 If you removed the onClick attribtues in xml you're not having the same problem Dec 28 02:02:08 http://twitter.com/moh/status/416438130099494912/photo/1 Dec 28 02:02:13 i'm having the same problem of the start and finish date opening the timeFragmentDialog Dec 28 02:09:06 p_l: hah Dec 28 02:38:19 srsly where the fuck is the NDK reference? Dec 28 02:38:39 PLEASE dont tell me its the examples and the small incomplete documentation in the ndk distribution tree Dec 28 02:38:42 fucking google Dec 28 02:42:18 hey guys I'm creating a fragment where the user and select date and time and for some reason the pickstart date button picks time and the time button gives an IllegalStateException. can anyone help me pinpoint what's going wrong? Layout: http://pastebin.com/dJuv1pbF Java: http://pastebin.com/Hf1BcyAF stacktrace: http://pastebin.com/xzYg70FB Dec 28 02:43:05 i need the documentation for the NDK that describes all the API calls you can make from it Dec 28 02:43:21 specifically right now im looking for the documentation for readAsset() Dec 28 02:43:34 but thats not all i need to rtfm Dec 28 02:43:42 seems theres no fucking documentation for this shit Dec 28 02:43:47 I440r: unfortunately, you need to read the include files Dec 28 02:43:58 which is complete and utter bullshit Dec 28 02:44:01 basically Dec 28 02:44:02 :/ Dec 28 02:44:29 I440r: Official position was always that NDK is not recommended Dec 28 02:44:45 again i all bs. Dec 28 02:45:07 they might as well not even HAVE an ndk if they are going to do HALF the job of producing it Dec 28 02:45:39 and im not finding readAsset() in any of the include files either Dec 28 02:47:16 size = readAsset(env, assetManager, tmp, tmp2); <-- yet obviously it exists Dec 28 02:47:22 or else my code would never build Dec 28 02:47:23 wtf Dec 28 02:49:07 oh crap im being stupid now Dec 28 02:49:15 scratch all of the above **** ENDING LOGGING AT Sat Dec 28 02:59:58 2013