**** BEGIN LOGGING AT Sun Jun 23 02:59:58 2013 Jun 23 03:04:12 what's a good way to save files to gif? Jun 23 03:04:24 I found a class online - but its _way_ too slow Jun 23 03:14:02 what do you mean by "files"? Jun 23 03:29:14 Hey everyone Jun 23 03:29:53 anyone good with timer widgets? I have a couple things I could use advice on Jun 23 03:36:36 Hello Everybody, i have a little question about location. I show the example on http://developer.android.com/training/location/retrieve-current.html but i need implement this on a Fragment. Jun 23 03:37:44 http://privatepaste.com/8a2588656e clicking this button should change the fragment displayed in the activity, right? Jun 23 03:37:58 on Fragment dont do FragmentActivity implements LocationListener because is this way is for a Activity Jun 23 03:39:15 clever: let me show my fragment Jun 23 03:41:08 clever: http://privatepaste.com/2e262e2fbe Jun 23 03:43:00 roramirez: cant seen any issue in that code Jun 23 03:43:50 this code is ok, what I want is to take the location in that part Jun 23 03:44:25 roramirez: i would just add LocationListener foo = new LocationListener(){}; at the top of the fragment Jun 23 03:44:32 and pass foo over to the location service Jun 23 03:44:32 i saw the example http://developer.android.com/training/location/retrieve-current.html but this is for a activity Jun 23 03:44:58 and i figured out my own fragment issue, real silly mistake Jun 23 03:45:07 the 2nd fragment was using the same layout as the 1st fragment Jun 23 03:45:14 so they where visualy identical! (facepalm) Jun 23 03:50:00 ok Jun 23 03:51:58 for this on fragment mLocationClient = new LocationClient(this, this, this); what is equivalente at ? Jun 23 03:52:44 http://developer.android.com/reference/com/google/android/gms/location/LocationClient.html#LocationClient(android.content.Context, com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks, com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener) Jun 23 03:53:09 it wants a context (use getActivity() ), then it wants a ConnectionCallbacks object, and a OnConnectionFailedListener Jun 23 03:53:34 either make the fragment implement the 2 interfaces, or create new ones like you did for LocationListener Jun 23 03:54:13 ok, i understand Jun 23 03:54:17 thanks clever Jun 23 03:56:07 anybody found a memory problem with the LocationClient Jun 23 03:56:13 memory leak* Jun 23 03:59:50 Maziz: this https://code.google.com/p/android/issues/detail?id=56302 ? Jun 23 04:02:00 yeah. Im unable to test on other non samsung device yet Jun 23 04:24:45 Having a problem like this http://stackoverflow.com/questions/2665796/android-handle-oauth-callback-using-intent-filter; intent filter works fine with custom scheme but not with http . I'm using facebook oauth (not with the sdk) and it limits the oauth callback to be either http or https only so I can't use a custom scheme. Any workarounds (other than using a webview) Jun 23 04:56:01 how do you reinitialize a static array? Jun 23 04:57:52 reinitialize? Jun 23 05:01:41 array.clear() Jun 23 05:04:52 i'm having issues with isloggable(). I do adb shell setprop log.tag DEBUG, but I get none of my logs Jun 23 05:05:17 do I have to set log.tag to the tag I pass into Log.d? Jun 23 05:48:21 Is it possible to claim first /before/ my app gets pushed through Google's servers? :P Jun 23 05:54:04 claim? Jun 23 05:54:45 First OpenGL ES 3 application on the Android market :D Jun 23 05:56:40 what app Jun 23 05:57:49 Dolphin, Gamecube and Wii emulator Jun 23 05:59:49 woah. nice Jun 23 06:00:10 is it going to be on the ouya? Jun 23 06:00:25 Ouya doesn't support enough to be supported Jun 23 06:00:30 Tegra 4 can barely be supported Jun 23 06:01:29 Adreno video drivers are buggy as balls, so the OpenGL ES 3 video backend slow as crap :( Jun 23 06:02:42 seems like it will just be for a handful of devices then Jun 23 06:04:21 Singular device at this point in time actually Jun 23 06:05:07 Until Samsung releases the Galaxy Note 3 with the Exynos 5420 anyway Jun 23 06:39:36 so Jun 23 06:39:38 I'm at home Jun 23 06:39:49 ran the same code through proguard and it worked Jun 23 06:39:52 but at work it failed Jun 23 06:39:57 strange. *shrugs* Jun 23 06:40:08 I didn't update to the latest version of Android Studio. Maybe that is it Jun 23 07:12:02 would this be a proper place to ask a question about advanced recovering of files on the android? Jun 23 07:14:04 my question if anyone would mind seeing if I have any hope. I used pastebin since the question would be too long to post here http://pastebin.com/8UDzpniC Jun 23 07:22:53 chsados: grab the .db, get a sqllite viewer and take a look Jun 23 07:23:57 also, there are apps that backup your text messages to your gmail acccount, fairly handy for the future Jun 23 07:25:22 http://az4n6.blogspot.co.uk/2013/02/finding-and-reverse-engineering-deleted_1865.html Jun 23 08:37:08 Hi, guys is there a site with android themes/styles ? Jun 23 08:51:22 not that I know of... Jun 23 09:12:46 Unknown0BC: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Jun 23 09:12:52 make your own holo theme, etc Jun 23 09:13:11 Hi all, is there a way to query the contacts and group by frequent and order by name_sorting value? Jun 23 09:13:28 I want to get name, and number Jun 23 09:13:46 i have a png that I would like to use for an activity background. What would be the best way to implement the background and have it scale properly between devices? Do I provide a drawable resource pre-scaled for each dpi or is there another trick that I am unaware of? Jun 23 09:29:15 anything? Jun 23 09:29:50 someone here who did usb programming, mainly bulk communication device->host ? Jun 23 09:38:48 thepoosh: course Jun 23 09:38:55 if you can query it Jun 23 09:39:00 and get data Jun 23 09:39:08 and that data you want exists Jun 23 09:39:10 well, I'm getting a bit mixed up with all the data Jun 23 09:39:12 then you can order it Jun 23 09:39:18 it's to abstract for me Jun 23 09:39:19 not sure what you question is Jun 23 09:39:20 I guess Jun 23 09:39:21 :S Jun 23 09:40:16 I'm trying to find the fastest way to query the phone to list contacts that have a phone number, group them by name and order by the frequency of contact Jun 23 09:40:27 does this make sence? Jun 23 09:40:41 unfortunate that there is a nice field with an api dep. Jun 23 09:40:45 hasphone Jun 23 09:40:56 think it's 3.0 up Jun 23 09:41:13 yeah, I need to support all the way down to 2.3 Jun 23 09:41:39 then you would need to query data1 or something like that in common data PHONE Jun 23 09:41:43 I think Jun 23 09:41:46 cant remember Jun 23 09:41:56 just got up and not enough coffee consumed yet Jun 23 09:42:09 hmmmm Jun 23 09:44:56 StingRay_: I used this code: http://stackoverflow.com/a/8986641/1056359 Jun 23 09:45:11 but it didn't return all the contacts on my phone with a phone number Jun 23 09:45:16 so I'm a bit confused Jun 23 09:45:43 thinking on querying rawContacts and then querying each one for phone number and aggregating Jun 23 09:45:51 but it seems very un-efficient Jun 23 09:45:54 ya Jun 23 09:46:02 hang on looking Jun 23 09:47:58 that looks fine Jun 23 09:48:11 it didn't retrieve my wife's number Jun 23 09:48:17 and god knows it's there Jun 23 09:48:18 :) Jun 23 09:48:26 that should give you all entries with the key being the tel Jun 23 09:48:31 so multi people entires Jun 23 09:48:38 if they have more than one number Jun 23 09:48:47 so why didn't my wife come back from the query? Jun 23 09:49:06 no idea Jun 23 09:49:12 different account storage ? Jun 23 09:49:17 as in sync source ? Jun 23 09:49:23 could be she's on my Google account Jun 23 09:49:30 dont forget your contacts displayed can be many accounts Jun 23 09:49:33 and not on the device itself Jun 23 09:49:45 idk why this would happen Jun 23 09:49:56 facebook synced ? Jun 23 09:50:02 skype entry ? Jun 23 09:50:02 yes Jun 23 09:50:05 no Jun 23 09:50:18 facebook can cause some amazing things to happen Jun 23 09:50:29 their sync adapter causes me daily problems Jun 23 09:50:31 she has a Facebook account but it was synched after she was in the phone Jun 23 09:50:38 flipping facebook Jun 23 09:50:50 hmm, make sure the phone number is not in the fb part Jun 23 09:50:56 and in the google one instead Jun 23 09:51:01 no no Jun 23 09:51:08 she doesn't own a smartphone Jun 23 09:51:18 have you seen this question of mine: http://stackoverflow.com/q/17141955/1056359 Jun 23 09:51:19 ? Jun 23 09:51:27 regarding facebook Jun 23 09:51:47 i now refuse to use anything fb Jun 23 09:51:55 nothing I can do Jun 23 09:52:06 I have a product manager that makes those decisions Jun 23 09:52:08 :S Jun 23 09:52:31 hmmmm Jun 23 10:23:59 hey guys, does location discovery and geotagging requires the location sources be enabled or i can just detect wifi and use that? Jun 23 10:25:24 per default any android device does not have a shell, right? Jun 23 10:26:02 omid8bimo, if you disable location sources in settings then wifi location provider won't work either Jun 23 10:27:35 Mavrik: all right, so either GPS or network-based location service must be enabled so that discovery is possible? Jun 23 10:27:52 Mavrik: and where does wifi comes in? only for geo tagging information? Jun 23 10:28:01 Darkchaos: you can get shell access by default, if that's what you're asking Jun 23 10:28:42 ADT said I should start a shell, so I wondered if there is adefault shell-application Jun 23 10:29:18 'adb shell' ? Jun 23 10:29:37 yes adb uninstall ... (I uninstalled using App-Manager) Jun 23 10:30:36 omid8bimo, "network location service" IS wifi + towers Jun 23 10:36:26 hi guys! is it possible to dynamically link with v8 on devices that come with v8? or do I absolutely have to compile and include the static lib of v8? Jun 23 10:38:42 p3sho: think your in the wrong channel. you on about compiling android ? Jun 23 10:38:48 or building an app ? Jun 23 10:40:00 StingRay_: building an app that has javascript runtime Jun 23 10:40:21 oh Jun 23 10:40:26 StingRay_: I need some more control than what webview offers, so I'd like to use v8 directly Jun 23 10:40:45 you doing a web app ? Jun 23 10:40:58 or a local html site as I like to call it :) Jun 23 10:41:08 not really :) Jun 23 10:41:36 it's a hybrid app that relies heavily on js Jun 23 10:41:50 right now i'm using the webview to interpret the javascript code Jun 23 10:42:14 dunno, try phonegap or something Jun 23 10:42:18 but interfacing with the native code is limited when doing that Jun 23 10:42:27 they are more webby Jun 23 10:42:37 and may have ideas Jun 23 10:42:45 addJavascriptInterface only allows for basic types of arguments Jun 23 10:42:54 of the functions Jun 23 10:43:02 okay, thought I'd ask :) Jun 23 10:43:16 this is more "full" normal app dev I think Jun 23 10:49:45 Playing around with Android-dev using eclipse: When creating a project with a default fullscreen activity on the background you get a string "DUMMY CONTENT" I see that in the strings.xml file you can change this. But where is it specified that the fullscreen activity must use this string for the background ? Jun 23 10:51:52 what are the 2 things responsible "visually" for what you see in the default activity ? Jun 23 10:52:41 1. the activity code && 2. ????? Jun 23 10:52:42 fund it. Jun 23 10:52:47 found* Jun 23 10:52:49 ty Jun 23 10:52:55 :) Jun 23 10:56:36 is there a posibility of unlocking a canvas without pushing it's contents to the screen? Jun 23 10:58:38 How to make an attribute like "android:textAppearance="?android:attr/textAppearanceListItemSmall"" work on 2.3? Jun 23 10:59:38 Is SVG supported from 4.0 onwards? Jun 23 11:01:15 In some vector format for a drawable. Jun 23 11:02:48 im trying to separate the location discovery class from my main activity. i wanna have a method called getLocation in the location discovery class and instantiate this class in my main ui activity. with this description, can getLocation method return void or it shoudl return something? Jun 23 11:09:29 anyone found a decent replacement for google reader yet? Jun 23 11:09:37 I'm starting to panick Jun 23 11:09:52 panic* Jun 23 11:11:53 Just do something useful with your time instead. Jun 23 11:15:52 when method gets called and back button pressed and user comes back to the activity? Jun 23 11:15:55 Quacked, there's bunch of stuff out there really Jun 23 11:16:01 Quacked, and that's not the right channel to ask ;( Jun 23 11:16:08 android is the "main" class for android virtual machine ? Jun 23 11:16:27 like when user went to system settings, and then presses the back button to return back to the activity before it? Jun 23 11:16:28 bluesm, uh, what? Jun 23 11:16:39 *which method Jun 23 11:16:58 omid8bimo, just the onstart, onresume combo Jun 23 11:17:06 Mavrik: I mean, they design API that everything comes from "android" class? Jun 23 11:17:12 And everything other is the inner class ? Jun 23 11:17:19 bluesm, no, that would be silly :) Jun 23 11:17:47 Mavrik: So what are the highest classes ? Jun 23 11:17:51 Mavrik: thanks Jun 23 11:18:09 omid8bimo, what's your usecase? Jun 23 11:19:07 Mavrik: i have an alertdialoug which takes the user to gps settings, to enable it, obviously when user enabled it, he/she will press the back button to return back to my app Jun 23 11:19:39 so i need to retry the location discovery method to check for gps again Jun 23 11:20:10 ah, I see Jun 23 11:20:22 omid8bimo, the only guaranteed thing you get is the onResume Jun 23 11:20:42 everyhing else is dependant on situation. Also remember, your user may wander off from settings :) Jun 23 11:22:03 Mavrik: true, i will stop the gps listening on onStop() if user did wander off :) Jun 23 11:22:49 omid8bimo, you should always disable all sensor listeners in onStop Jun 23 11:23:25 Mavrik: yup; following the guidelines :) Jun 23 11:26:58 Mavrik: I know, we just had a good conversation here regarding it some time ago :) Jun 23 11:49:46 is there a best practice for how to structure an application with multiple types of login (g+, facebook, email etc)? Jun 23 12:26:09 18 errors per minute with latest AS, no auto build, ugh, this has gone bad really quick Jun 23 12:26:31 * StingRay_ thinks of eclipse *sigh Jun 23 12:35:58 I've been having an issue with incorporating ActionBarSherlock into my project... I added it as a library, I changed the Activity and FragmentActivity to the corresponding ones, did the necessary imports, tested it and it works fine in android 3+ ... In android <3.0 it crashed because I hadn't set the sherlock theme... so I changed the /values/styles.xml to Jun 23 12:35:59