**** BEGIN LOGGING AT Mon May 05 03:00:00 2014 May 05 03:00:01 crap May 05 03:01:55 It never perfect in my experience :) May 05 03:03:39 what does contentDescription do on an imageview? May 05 03:06:48 Anthaas: its like altText on websites.. to provide textual representation for images. for the screen-reader May 05 03:07:11 Ahhh cheers, I dont know why but I jumped here rather than Google, I googled straight after I posted haha. May 05 03:07:20 Sorry all. May 05 03:08:19 Whats the shortcut in AS to turn @color/black into #000000 in the XML editor again? The same works for string references. May 05 03:08:23 I've googled about but can't find it. May 05 03:13:23 No support for PreferenceFragment in v4 or any other for API 8. What can I do to show tabs with preference screen in Activities. May 05 03:15:36 When I am using a different font throughout my app, is it best to create a subclass of TextView for example, and set the new typeface within there, or to do so programmatically for each use of TextView throughout my app? May 05 03:17:16 Anthaas, I prefer the first option May 05 03:17:22 Anthaas: extend TextView and make one available to all. May 05 03:17:28 but watch out that you only create one instance of the typeface May 05 03:28:06 hmm May 05 03:28:23 Creating a new UI Component through AS adds a crap ton of example code I dont know what to do with hahaha May 05 03:28:28 i have a fragment that is loading a FrameLayout with a GridView in it (not sure if that's the best layout choices) i need to get the size of the gridview or framelayout to size the cells. i keep getting 0 size. at what point in the lifecycle can i measure the size of the area i need to fill? both are set to match parent, if that matters? May 05 03:30:00 Carbonflux: sorted it.. two shader progams. done. fuck it. May 05 03:30:03 lol May 05 03:32:52 Pissing styleables haha May 05 03:40:19 ah good Napalm, I bet that feels better, I know I get really frustrated and even depressed when I have a bug like that even though I know its silly and helps nothing :) May 05 03:44:45 Argh May 05 03:44:55 Pissing custom component bloody stupid UI display thing with errors and ARRRGH May 05 03:45:23 It would also be good if I knew what underlining words in different colours meant in AS, hovering over them doesnt give any clue... May 05 03:45:46 Oh its just where Ive reference things... May 05 03:48:39 sometimes it means spelling error May 05 03:53:06 When you said to make sure I only create it once, Im assuming you mean have: if (mFont == null) { //get font from assets and set here } and have mFont as a static Typeface? May 05 03:53:16 alex_PP: May 05 03:54:13 hi May 05 03:54:29 I have a question about adapter filtering May 05 03:55:25 is there a way to do it non-destructively? May 05 03:55:48 Cache the original list. May 05 03:56:08 ^ May 05 03:56:16 Something Jake knows that I know :D yay May 05 03:56:17 but I am filtering twice, once by expiry date and then by name May 05 03:57:02 I don't see how that changes anything. May 05 03:57:22 ^ again :D May 05 03:57:28 Where do I hand my CV? haha May 05 03:58:01 You should still cache the original list, and change your filtered list as the filter changes downwards, if they filter back, replace the filter list with the cached list (do not modify the cached list) and filter again May 05 03:58:18 Yeeeep. What he said May 05 03:58:24 Yayyyy hahaha May 05 03:58:26 http://pastebin.ws/8ui9yz May 05 03:58:31 I can even give a really bad example if you like May 05 03:58:40 * Anthaas shows off for actually knowing something in here May 05 03:58:57 I'm doing this with 2 separate calls to getFilter.filter() May 05 03:59:56 Well if you are filtering twice, by two different categories then you would have to, or you a logical AND on the filtering and have them press some sort of filter button May 05 04:00:06 But two calls to filter would be necessary if you are doing it through a listener May 05 04:00:10 like onTextChangedListener May 05 04:00:31 it's from filtering from a spinner May 05 04:00:40 and a tab pager May 05 04:00:48 Thats fine, so you will have a listener on the spinner, and a listener on whatever else? May 05 04:00:59 yes they work individually May 05 04:01:00 Either that, or you will have a button they can press to filter? May 05 04:01:08 Ahh so you are using listeners to filter? May 05 04:01:23 I have the call to filter working properly in both cases May 05 04:01:24 In which case do it as I said before. May 05 04:01:33 it's just that filter is too destructive May 05 04:01:39 In what way? May 05 04:02:09 actually May 05 04:02:11 I think I got it May 05 04:02:28 I'll just make filtering by vendor also do the expiry filtering May 05 04:03:09 and always start the filtering with the same cached values May 05 04:03:47 Do that and you are increasing the number of objects that your filter has to filter through unnecessarily. May 05 04:04:30 You have 100 objects, you add a filter and have 50, your second filter only has to go through 50 objects, where your way they'd still have to go through 100. May 05 04:04:41 Probably not an issue at 100, but at 1000, or 10,000.... May 05 04:05:04 I don't think the user will have 10,000 objects May 05 04:05:10 or 1000 even May 05 04:05:26 Are they filtering through a form? May 05 04:05:31 just do it off the UI thread and they'll never know May 05 04:05:34 no May 05 04:05:53 there's tabs for current/future/expired May 05 04:06:02 and a dropdown for vendors May 05 04:06:49 Yeah, do expired/etc at the same time as vendors then? May 05 04:07:07 yep May 05 04:07:14 I can help with filtering but cannot get a custom view working right... May 05 04:07:18 A simple one at that hahaha May 05 04:07:28 what's the problem? May 05 04:07:31 All I want it to do is to have a pre-defined type face... hahaha May 05 04:07:31 got your xml written? May 05 04:08:04 Anthaas: I now realise that my android dev class taught me hardly anything May 05 04:08:08 android is so huge May 05 04:08:22 I never had an Android Dev class haha May 05 04:08:34 was an honours level topic at uni May 05 04:08:48 will filtering both at the same time really make things slower? if you consider how boolean expressions "short circuit"? May 05 04:08:50 only covered basics like intents, views and UI patterns May 05 04:08:51 Anthaas: do you know where you are wanting to use different fonts? can use styles May 05 04:09:17 I want to use it app wide so would be easier to have a class with it predefined than to have to define it each and every time. May 05 04:09:36 you define it once in your layout xml May 05 04:09:41 jasonj8: Not what I said would make it slower, I meant if he filtered the original list every time. May 05 04:09:52 canvs2321: For each instance of the view, yes?@ May 05 04:10:39 but even in your custom view, you have to pass it some type of value to set the font, why aren't your just creating a style or theme? May 05 04:10:54 Can you send me an example of this? May 05 04:11:11 Im looking around everywhere, 90% of people on SO just Ctrl C and Ctrl V what they saw someone else say. hahaha May 05 04:11:55 In my custom view, I was just going to hard code mTextPaint.setTypeFace(Typeface.createFromAsset....); May 05 04:12:17 or mTypeFace rather (so as not to keep recreating) May 05 04:15:17 but you have to createFromAsset based on a value, so seems you can just create a style for each Face available, and set in xml of layouts to use such style as required May 05 04:15:59 either way you go, shouldn't matter, just seems creating a custom view to do what using the exteneded view can do with styles seems extra May 05 04:17:10 I say custom view, I mean extended view, sorry. May 05 04:17:18 public class MyView extends TextView for example. May 05 04:41:08 Does anyone have an example of a TextView where a specific font can be applied AND it can be displayed in the graphical preview? May 05 04:43:01 it cannot May 05 04:43:34 Or at least display something resembling a textview, not an massive error message reminding me that it cannot be displayed haha May 05 04:43:39 In fact May 05 04:47:11 pfn: http://pastebin.com/k0Kh8mLs May 05 04:47:13 How is that? May 05 04:47:16 Or is that a crap approach? May 05 04:57:04 hi May 05 04:57:14 can someone help me with this May 05 04:57:19 http://stackoverflow.com/questions/23358096/alwaysnever-killed-visible-icon-over-screen-in-android May 05 05:06:40 is there any reason using AlertDialog.Builder with setting a custom view and a custom title(View) will still not cover the entire dialog? May 05 05:07:02 I have a 2.3.* device that is not showing the dialog correctly May 05 05:07:07 and it's very strange May 05 05:27:45 can I use gradle to inject google-play-services_lib into my app? May 05 05:27:50 rather than referencing as a lib? May 05 05:28:46 what would the difference be? May 05 05:28:56 when using gradle you should use the AAR dependency anyway. May 05 05:30:08 eh? May 05 05:30:13 Im new to AS and Gradle May 05 05:31:06 Anthaas, you haven't explained what you think the difference between "injecting" and "Referencing" a lib should be? May 05 05:31:31 and, if you're new to gradle, you should use Gradle dependency management to automatically download and include libraries (in either JAR or AAR format) May 05 05:31:45 the google play services page explains what to do rather clearly I think. May 05 05:31:51 Yeah it does May 05 05:31:56 I was wondering if there was a difference May 05 05:32:17 Ive got the build.grade file changed, and my manifest too now. May 05 05:32:44 that's it then. May 05 05:32:53 which part confused you? :) May 05 05:32:56 ....that was a lot easier than Eclipse.... May 05 05:33:24 Eclipse its a matter of importing the project, getting rid of any errors that occur, then referencing it as a lib within your project... and then fixing whatever went wrong before trying again... May 05 05:33:48 mhm May 05 05:34:06 that's because it can't use libraries in AAR format which have everything packaged in them May 05 05:34:20 Sorted :D May 05 05:34:24 It works hehehe May 05 05:34:29 noticed in the gradle 0.10 examples local aar support May 05 05:34:56 (no local maven repo, etc) May 05 05:35:11 does Gradle support installing into local maven cache yet? May 05 05:35:20 always did :| May 05 05:35:25 nope. May 05 05:35:26 I pressed the "Make Project" for the first time, is this the equivalent of Build in Eclipse? May 05 05:35:44 Mavrik well … has since i can remember ;) May 05 05:36:28 I'd much prefer some sort of hybrid between Eclipse and AS though - I like the project structure of Eclipse much better May 05 05:36:48 if AS has workspaces like eclipse yeah, i'd like that May 05 05:37:10 of course, many people hate eclipse workspaces too May 05 05:37:26 g00s, maybe I just used it too early May 05 05:37:43 since when I tried to use that there was no install command at all and no 3rd party modules to provide it May 05 05:37:59 so you were totally fucked if you didn't wanna check in AARs into your git and the aar wasn't available in a remote repo May 05 05:39:37 Mavrik when you say 'local maven' you mean ~/.m2/repository or something artifactory ? May 05 05:40:15 g00s, equivalent of mvn install May 05 05:40:20 so local .m2 cache May 05 05:40:51 thats been possible since i started using gradle; the gradle guy recommended against it though (thought they should be segregated) May 05 05:41:12 so at the time i put stuff in ~/.gradle/local-artifacts May 05 05:41:28 but now i just put it in .m2/repository May 05 05:41:36 ~/.m2/repository May 05 05:56:20 Korvin: Thanks for walking me through OAuth the other day. I implemented sample methods on my backend and tested out stuff. I understand Client Credentials Flow (which I use for signups and other common stuff) and Resource Owner Credentials Flow (for user specific calls). May 05 05:59:31 this day / night theme i'm trying to do is a pita. before setContentView i'm calling setTheme() … but it seems when i switch between activities the background of the window is the wrong color and there is a flash May 05 06:00:58 g00s: I wish I could write those: http://i.imgur.com/QRhcEDI.jpg May 05 06:01:56 is there bug in onActivityResult for Nested Fragment? May 05 06:01:57 thepoosh usually not even worth responding to those May 05 06:02:06 true May 05 06:02:13 we have too many of those though May 05 06:02:40 how to do you handle onActivityResult in nested fragment? May 05 06:02:57 nested fragments are more or less a bug-ridden mess May 05 06:03:16 I usually handle results on top-level activity and dispatch messages May 05 06:03:20 man, i assumed that from the get-go May 05 06:03:40 which part? :) May 05 06:03:49 android team has enough difficulty getting basics to work right, just steer clear of that May 05 06:04:10 rule #1 android dev: use as few apis as possible May 05 06:04:11 I think it would help if Android team wouldn't be like 10 developers and 20 interns :P May 05 06:04:39 g00s: our customer service guy wrote this on facebook after i posted the image: "Rage control is a must in customer support. That hole in the wall was there when I got there I swear" May 05 06:04:46 rule #2 of android dev: avoid all corner cases, even if they seem not corner cases :) May 05 06:05:20 rule #1 is: don't develop for android? May 05 06:05:39 heh May 05 06:05:52 Mavrik: how do you dispatch messages? May 05 06:06:07 Otto/EventBus/anything :) May 05 06:06:24 carrier pigeon May 05 06:06:46 those are the best! May 05 06:06:52 JakeWharton: what? May 05 06:06:55 kamol: methods May 05 06:07:03 it was a joke May 05 06:07:09 sendCarrierPigeonForResult() May 05 06:07:18 LOL May 05 06:07:24 g00s, "APIs: assume buggy until proven innocent"? :) May 05 06:07:31 Mavrik yes May 05 06:07:49 assume all new apis are beta until few releases later too May 05 06:08:08 sounds like my way of installing MS products May 05 06:08:11 Mavrik: I think there's some more people in the android team... May 05 06:08:17 not until service pack 2 May 05 06:08:20 :Mavrik I do use otto’s bus May 05 06:08:31 p_l, doesn't look like it :) May 05 06:08:35 but still cannot get correct responseCode May 05 06:08:54 Mavrik: they are probably busy herding cats^Wvendors May 05 06:09:30 thank you thepoosh: May 05 06:09:41 no probs May 05 06:11:20 g00s: lmao May 05 06:11:23 gaaah May 05 06:11:33 man I want a profiler that doesn't suck ass May 05 06:11:51 All await JakeWharton's new lib: Pigeon May 05 06:12:06 Somehow optimised intents May 05 06:12:14 JakeWharton: is it true? :) May 05 06:12:37 lol May 05 06:13:03 will there be a hidden feature of pigeon racing? May 05 06:13:39 When using GoogleApiClient, anyone know any reason why my GoogleApiClient.Builder will not let me use .addConnectionCallbacks(this) when "this" implements GooglePlayServicesClient.ConnectionCallbacks May 05 06:14:01 javac knows and will tell you if you try to compile May 05 06:14:30 are you sure your 'this' points to what you think it does? May 05 06:15:16 Hmm, I don't see how it could be anything other than the encompassing Activity May 05 06:15:40 mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this) May 05 06:16:04 Hovered over the error, and "this" is definitely my activity. May 05 06:17:18 why not use MyActivity.this? May 05 06:18:02 Anthaas, and what exactly is the compile error? May 05 06:19:24 hang on, I've just realised I wasnt misreading something. Why has my activity's package doubled. com.myapp.mypackage.mysubpackage.com.myapp.mypackage.mysubpackage.myactivity May 05 06:20:40 ok thats fixed, same error. May 05 06:20:43 was odd though May 05 06:20:47 pasting now May 05 06:21:23 Error:(46, 17) addConnectionCallbacks(com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks) in com.google.android.gms.common.api.GoogleApiClient.Builder cannot be applied to (com.myapp.mypackage.activities.SignInActivity) May 05 06:22:37 Anthaas, not the differences in what you say your class implements and what the compiler expects for your class to implement. May 05 06:22:40 *note May 05 06:22:52 Yeah, just seen that myself. Thanks. May 05 06:23:01 Bloody auto import from AS. May 05 06:23:12 about otto’s bus. I have Activity(A) -> Fragment(B)->Fragment(C - nested one). C calls camera. B has bus, and C has subscrpriber. The problem is, my requestCode is not what I expected when launched the camera, why? May 05 06:23:21 Normally with eclipse I use ctrl shift o and select the one I want... May 05 06:24:37 and in AS you press alt+enter and select the one you want. May 05 06:24:55 Oh cool, it put it in there automatically for me :S May 05 06:34:56 if i'm setting a dark or light theme dynamically in Activity.onCreate() and i don't want flashes between activity switch, what is the solution? it seems that a dark window background is default, so there is a flash for the light theme May 05 06:35:17 if i make it light, there is a flash for the dark theme (when the activity starts) May 05 06:35:49 Is there something you can do before setContentView ? May 05 06:36:02 setTheme is before setcontenview May 05 06:36:33 i'm looking at http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ May 05 06:37:09 but .. he sets the windowBackground for the app / activity in the manifest - i don't know what it will be until the activity starts and reads the preference May 05 06:40:53 Woo! Google Sign in working! May 05 06:41:20 :„ May 05 06:41:21 :D May 05 06:47:45 Wait May 05 06:47:52 I may have just wasted so much of my life May 05 06:48:15 Do I want to use Google+ API and sign in with Google that way, or use the AccountManager to get the Google account off of the device and use that? May 05 06:49:07 Anthaas, wasting life is just that of the programmer May 05 06:49:21 Anthaas if your app doesn't work unless the user has google+ … thats probably fail May 05 06:49:32 i mean, unless its tightly coupled to google+ May 05 06:49:33 Yeah, I failed. May 05 06:49:35 Nope. May 05 06:49:39 I wanted the AccountManager. May 05 06:49:44 Im such a nugget. May 05 06:49:54 oh well, AccountManager is so much fun May 05 06:50:09 More or less fun than whatever I just did? May 05 06:50:20 most definitely May 05 06:51:51 Not sure that answer really fits, but I'll assume it just adds to the confusion Im about to receive. May 05 06:52:10 Do Android people ever make coding on the platform easier or do they just like to add complexity? May 05 06:53:43 the latter May 05 06:54:10 now get back to work! May 05 06:54:38 Hahaha aye sire May 05 06:54:59 but what i find very starnge, from a software archeology standpoint - is there is some bind-boggingly stupid apis all the way back to API 1 - that should have been the sweet time when there were few chefs in the kitchen and clear architectural vision May 05 06:55:29 you think, small elite surgical team May 05 06:55:45 now, after time goes on, stuff is piled on, teams grow, vision is lost ... May 05 06:55:55 i excpect the silly stuff to happen later on May 05 06:56:27 deadlines = shortcuts May 05 06:56:47 yeah, technical debt. etc. but this isn't a web app where things can easily get fixed May 05 06:56:57 you put out a bug, its there … for years maybe May 05 06:56:58 iggy: well, yes and no May 05 06:57:44 i'd pay money to be a fly on the wall when joshua bloch was embedded in the android team May 05 06:58:00 afaik he's not there now, and hasn't been for a while May 05 06:58:43 I reckon there'd be fights at Google between the platform developers and those who have to make Google's apps with it. May 05 06:59:05 hmm, dunno May 05 06:59:15 even for google app dev teams - its not so bad May 05 06:59:43 well, maybe gmaps guys May 05 07:01:18 anyhow goog is a big company and the teams for each app probably aren't that resource May 05 07:01:25 constrained May 05 07:03:08 Wait, whats the difference between signing in with Google+ and Google Account on the device? May 05 07:03:37 can anyone help me? I'm trying to save the picture in a specific directory on the sd card. This is the code http://pastebin.com/QVG81851 and i have no idea what to do. Googling the problem i saw some solutions but they're all complex and i do not understand them May 05 07:04:07 marko-_- i think the permissions for all that stuff was in flux, better just save it to the official sanctioned area May 05 07:04:16 either for type (pictures) or your app May 05 07:04:35 forget about /mnt/sdcard/woohoo/pympics May 05 07:04:49 i'm really not a developer - i just recently started doing something in android so if you could point me in the right direction May 05 07:06:29 g00s: Whats the difference between signing in with GoogleApiClient and AccountManager getting Google Account? May 05 07:06:45 Anthaas not sure any more May 05 07:06:53 i never use GoogleApiClient May 05 07:07:05 Any particular reason? May 05 07:07:17 hm, haven't used any play services actually May 05 07:07:41 Just going to have my user sign in with their Google account rather than creating an account specifically for my app May 05 07:07:54 Hopefully plug into a couple other services. May 05 07:09:01 Sod it. Bed time. May 05 07:09:02 Night all May 05 07:11:35 night time?! May 05 07:11:41 it's 10:11 AM May 05 07:11:48 what's wrong with this guy May 05 07:12:22 ikr May 05 07:12:30 oh wait, it's 2:12am here May 05 07:12:36 212am May 05 07:48:33 hi. there is a CERT.RSA file in META-INF inside the .apk. shouldn't this be the file that was used to sign the .apk file? May 05 07:50:53 krad, that's the certificate information and top-level signature file May 05 07:53:51 Mavrik, top-level signature file? what do you mean? May 05 07:54:14 also, i tried to open it in notepad++, it seems unreadable May 05 07:54:17 whys that May 05 07:54:33 ok May 05 07:54:54 can you explain what exactly do you want to know? :) May 05 07:55:13 CERT.RSA contains certificate information and hash for cert.sf May 05 07:55:44 it's encoded in a binary format May 05 07:57:13 Mavrik, i want to sign the apk using the same certificate it was signed with May 05 07:57:22 using jarsigner May 05 07:57:22 uhm. May 05 07:57:27 yeah you'll need the private key May 05 07:57:31 it is NOT contained in the apk May 05 07:57:35 :D May 05 07:57:39 because that would defeat the whole purpose of it :) May 05 07:57:42 lol May 05 07:57:49 i have my own keystore May 05 07:57:58 can't i import this CERT.RSA in it? May 05 07:58:09 and what would that accomplish? May 05 07:58:16 apks are signed with a private key May 05 07:58:29 which you created when you signed it the first time and you KEPT it there May 05 07:58:33 it was NEVER added to the apk May 05 07:58:43 and without that private key you cannot resign it May 05 07:58:59 ok, so i can sign it with my own certificate May 05 07:59:04 yes. May 05 07:59:19 but when i do this and try to connect to google accounts, it doesn't succeed May 05 07:59:23 of course. May 05 07:59:24 through the app May 05 07:59:40 because Google API checks that you're connecting from app with proper certificate to prevent tampering. May 05 07:59:46 Facebook too May 05 08:00:04 ok so there's nothing much i can do? May 05 08:01:15 package com.bandindustries.roadie.Tuner; May 05 08:01:16 import java.util.HashMap; May 05 08:01:16 import java.util.List; May 05 08:01:16 import java.util.Map; May 05 08:01:16 import android.content.Context; May 05 08:01:16 import android.util.Log; May 05 08:01:18 import android.view.LayoutInflater; May 05 08:01:20 import android.view.View; May 05 08:01:22 import android.view.View.OnClickListener; May 05 08:01:24 import android.view.ViewGroup; May 05 08:01:28 import android.widget.BaseAdapter; May 05 08:01:32 import com.bandindustries.roadie.R; May 05 08:01:34 import com.bandindustries.roadie.BLE.BluetoothLe_Service; May 05 08:01:36 import com.bandindustries.roadie.Classes.BLE_Methods; May 05 08:01:38 import com.bandindustries.roadie.Classes.DrawLine; May 05 08:01:40 import com.bandindustries.roadie.Classes.Helper_Methods; May 05 08:01:44 import com.bandindustries.roadie.Classes.MusicString; May 05 08:01:46 import com.bandindustries.roadie.Classes.TypefacedTextView; May 05 08:01:48 import com.bandindustries.roadie.Database.DatabaseHelper; May 05 08:01:50 Sicp, WTF May 05 08:01:50 public class ListOfStrings_Adapter extends BaseAdapter { May 05 08:01:52 private DatabaseHelper dbHelper; May 05 08:01:54 private List musicStrings = null; May 05 08:01:57 Mavrik? May 05 08:01:58 private Context context; May 05 08:02:02 private LayoutInflater inflater; May 05 08:02:04 private Map myViews = new HashMap(); May 05 08:02:06 private TypefacedTextView stringNameTV; May 05 08:02:08 private TypefacedTextView stringActionTV; May 05 08:02:10 private DrawLine drawMiddleLine; May 05 08:02:13 private int miniHeight; May 05 08:02:15 private int[] positionBuffer; May 05 08:02:16 krad, no, because what you're trying to do is exactly what the signature system is trying to prevent. May 05 08:02:17 private double[] frequencyBuffer; May 05 08:02:19 public ListOfStrings_Adapter(Context context, int instrument_id, May 05 08:02:21 int miniHeightOfSinewave) { May 05 08:02:22 krad, you need original signing key. May 05 08:02:23 super(); May 05 08:02:25 this.context = context; May 05 08:02:29 this.miniHeight = miniHeightOfSinewave; May 05 08:02:33 dbHelper = new DatabaseHelper(context); May 05 08:02:35 musicStrings = dbHelper.getAllMusicStrings(instrument_id); May 05 08:02:37 } May 05 08:02:39 @Override May 05 08:02:43 public int getCount() { May 05 08:02:45 return musicStrings.size(); May 05 08:02:47 } May 05 08:02:49 @Override May 05 08:02:51 public Object getItem(int arg0) { May 05 08:02:53 return null; May 05 08:02:56 } May 05 08:02:59 @Override May 05 08:03:03 public long getItemId(int arg0) { May 05 08:03:05 return arg0; May 05 08:03:07 } May 05 08:03:10 @Override May 05 08:03:14 public View getView(int position, View convertView, ViewGroup parent) { May 05 08:03:16 View view = myViews.get(position); May 05 08:03:18 if (view == null) { May 05 08:03:20 inflater = (LayoutInflater) context May 05 08:03:22 .getSystemService(Context.LAYOUT_INFLATER_SERVICE); May 05 08:03:24 view = inflater.inflate(R.layout.string_item, null); May 05 08:03:28 stringNameTV = (TypefacedTextView) view.findViewById(R.id.stringNameTV); May 05 08:03:30 drawMiddleLine = (DrawLine) view.findViewById(R.id.middleLine); May 05 08:03:34 stringActionTV = (TypefacedTextView) view May 05 08:03:36 .findViewById(R.id.stringActionTV); May 05 08:03:38 stringNameTV.setText(musicStrings.get(position).getName()); May 05 08:03:40 stringActionTV.setText(R.string.calibrate_stringActionTitle); May 05 08:03:44 drawMiddleLine.setThickness(Helper_Methods May 05 08:03:46 .determineStringThickness(musicStrings.get(position).getFrequency())); May 05 08:03:48 drawMiddleLine.setMiniHeight(miniHeight); May 05 08:03:50 myViews.put(position, view); May 05 08:03:52 stringActionTV.setOnClickListener(new OnClickListener() { May 05 08:03:54 May 05 08:03:58 @Override May 05 08:04:00 public void onClick(View arg0) { May 05 08:04:04 Tuner_Activity.mBluetoothLeService.writeCharacteristic(BLE_Methods.transmitResetPosition()); May 05 08:04:06 drawMiddleLine.setThickness(4); May 05 08:04:08 drawMiddleLine.setMiniHeight(5); May 05 08:04:10 notifyDataSetChanged(); May 05 08:04:14 May 05 08:04:16 /* May 05 08:04:18 * EDIT THE VIEW AT POSITION X May 05 08:04:20 */ May 05 08:04:22 } May 05 08:04:24 }); May 05 08:04:28 } May 05 08:04:30 return view; May 05 08:04:34 } May 05 08:04:36 } May 05 08:04:38 trying to figure out how to resolve the comment at line 97 in my BaseAdapter here http://pastie.org/9141688 May 05 08:04:43 OH my god, May 05 08:04:45 sorry May 05 08:04:47 http://pastie.org/9141688 May 05 08:04:49 never thought I'd be the person who would do that some day May 05 08:04:51 you see I want to edit a certain view (one of the many views that the adapter will create) after those views have been created. Meaning inside a listener of a button belonging to that view May 05 08:04:53 haha May 05 08:04:54 so when that button is clicked view[position] would do something to itself, but there is no views array..so Im not sure where to plug for this May 05 08:04:59 right now adding that stuff to a listener causes view[usually the one I clicked, and after another press, the last view] gets edited May 05 08:05:03 so it's wrong positions, since no position was specified of course May 05 08:05:17 Sicp, 12 floggings. May 05 08:05:26 what, it's a valid question, see the code May 05 08:05:32 I bet you :) May 05 08:05:38 its not easy to do it May 05 08:05:45 i thought it was funny, the best paste in a while ! May 05 08:05:54 yea man that was horrific, I was surprised May 05 08:06:06 cause in my clip I thought I had the pastie link, not the code :P May 05 08:06:11 the code was 1 clip before that May 05 08:06:25 and BAM May 05 08:06:33 with all the imports and everything haha May 05 08:07:49 Sicp, basically the way you change listview items is to update underlying adapter data and call notifyDatasetChanged May 05 08:08:22 that's what I've done there, but how will you get a button inside one of those views to change a sibling element inside that very view, when the button is clicked? May 05 08:08:43 meaning the adapter creates views from layout that has button and textview, you want the button to change that textview when its clicked May 05 08:09:32 that for every view and every, each button should change the textview that's next to it (the one belonging to the same view that the pressed button belongs to) May 05 08:09:46 -and every* May 05 08:09:47 why aren't you attaching click listeners in getView() ? May 05 08:10:00 and use findViewById of inflated row? May 05 08:10:02 I am, if you see the code this would be much easier May 05 08:10:25 don't call notifyDatasetChanged in that case May 05 08:10:27 but how will you differentiate that view you've found from all the others? you need to feed position variable to something May 05 08:10:30 because it overwrites your view. May 05 08:10:37 notifyDatasetChanged calls getView on all views again. May 05 08:10:59 I thought that to see the change I would have to call it again May 05 08:11:04 let me check if I can see it without that call May 05 08:11:18 Im sure it will still do what I want, but to all the views as well May 05 08:11:41 nope, you cannot see the change unless you call notify May 05 08:12:15 then you have an issue somewhere else. May 05 08:12:37 notifyDatasetChanged throws away all views and calls getView again for each May 05 08:12:50 if you update text inside a single listview view that call is not needed May 05 08:14:12 right, I just tried it and it does change the text view, but not for the item that I clicked May 05 08:14:25 since there has always been an issue with position variable in getView() coming out as a random value May 05 08:15:02 this http://stackoverflow.com/questions/16453379/android-list-adapter-returns-wrong-position-in-getview May 05 08:15:02 and this http://stackoverflow.com/questions/9712494/getview-called-with-wrong-position-when-scrolling-fast May 05 08:15:39 the listener ought to be outside May 05 08:16:05 Sicp, dude you only set view contents the first time you create it May 05 08:16:12 yea and? May 05 08:16:13 not each time the listview demands you top May 05 08:16:21 same with the click listener May 05 08:16:29 no wonder the position and the click doesn't match May 05 08:16:41 when the listview tells you to "give me view for position 102" May 05 08:16:52 and you just return whatever you had left for some other position May 05 08:16:58 without fixing the click listener and data May 05 08:17:09 it's not the adapter that is "random" May 05 08:17:19 I am only putting this stuff in getView() because I don't know where else to put it May 05 08:17:31 and I do know that it shouldn't be going in getView() May 05 08:17:36 it should May 05 08:17:42 it's just you don't know what exactly getView does./ May 05 08:17:54 and you just randomly return views back without updating data for proper position May 05 08:18:03 I see May 05 08:18:21 everything that's position related has to go outside the view==null call May 05 08:18:33 since the point of getView is that you return a view updated for passed position May 05 08:18:38 I just tried that when I said it should be outside, it still responds to a wrong position May 05 08:18:40 also May 05 08:19:05 get rid of the whole myviews map May 05 08:19:09 and use convertView as you should May 05 08:19:15 I was using that before May 05 08:19:19 I strongly suggest you revisit the listview documentation ;_ May 05 08:19:20 ;) May 05 08:19:32 no, it is something inherently wrong that I've faced since 2 months May 05 08:19:48 I just recently updated to this solution from one of the SO links, but I see it still has the position issue May 05 08:20:11 there are only 2 solutions out there, the convertView that makes a viewHolder and there's this myViews map May 05 08:20:33 both have issues with where 'position' reports correct values, whether inside or outside the null check May 05 08:21:05 if you track the value of position via log, you see that it starts normally at zero and then resets back to 0 on the last element May 05 08:21:27 as this guy said http://stackoverflow.com/questions/9712494/getview-called-with-wrong-position-when-scrolling-fast May 05 08:22:20 gonna go back to the convertView May 05 08:22:22 meh! May 05 08:22:28 such muddle May 05 08:22:51 how do I make a listview selectable, and how do I get the currently selected item? May 05 08:23:16 ^^ about to run into the same problem May 05 08:29:34 I switched back to using convertView, exactly the same issue May 05 08:29:48 you click on one of them, the view at 3x the original gets edited May 05 08:29:54 click again, the first view gets edited May 05 08:30:54 look at it and melt! May 05 08:30:55 http://pastie.org/9141779 May 05 08:32:30 it only makes sense, without saying "view[position]" it has no idea which to edit! May 05 08:38:59 you're grossly misunderstanding how that works May 05 08:39:09 make it work without any view caching and using convertview May 05 08:39:19 scrolling will stutter but get functionality right first. May 05 08:39:36 make sure your view references point where they should point. May 05 08:41:08 Mavrik, but i already have their certificate cert.RSA May 05 08:41:16 why i can't use it to sign the .apk once again May 05 08:41:39 krad if its not your app, please do not ask May 05 08:41:44 I can of course get it to list my items in the same fashion as it used to with the other solution, and I just did it now May 05 08:41:52 krad, because you don't understand how that works: http://en.wikipedia.org/wiki/Public-key_cryptography May 05 08:42:06 it has faults where it resets the views upon scrolling, but that's because they are not cached, naturally. but position issue is still the same randomness May 05 08:42:37 Mavrik, i can sign the apk with my cert, and debug it with eclipse, though i just cant get it to connect to google api May 05 08:42:59 let me just think about this May 05 08:43:12 I'm using base adapter by the way May 05 08:43:30 what happens when you jarsign the .apk? it appends a key to each file in the apk? May 05 08:44:00 well, what else am I going to use May 05 08:44:00 lol May 05 08:44:56 "hen you sign a JAR file, each file in the archive is given a digest entry in the archive's manifest." May 05 08:46:26 elo guys and gals May 05 08:46:55 quick question .. how do i know if a fragment is begin disgarded like backing away not going to be displayed again? May 05 08:47:07 cause ondetach gets called when the phone is rotated ? May 05 08:47:58 lemonxah i think this is from Mavrik http://staticfree.info/~steve/complete_android_fragment_lifecycle.png May 05 08:48:29 yes i was looking at that before coming here May 05 08:48:35 heh May 05 08:48:38 problem is .. when you rotate the screen May 05 08:48:45 the activity gets destroyed May 05 08:48:52 which detaches the fragment May 05 08:49:11 so the ondetach which is the last call in the fragment gets called anyway May 05 08:52:22 this is really good May 05 08:52:24 http://stackoverflow.com/questions/21162778/asynchronously-change-a-particular-item-in-a-listview May 05 08:52:32 guy knows what he's talking about May 05 09:00:26 yea there is just no way May 05 09:01:33 you can't do it either :D May 05 09:01:35 I know May 05 09:02:22 usually you hook to itemClicked outside on the list view, not inside the adapter May 05 09:05:33 setting android:windowDisablePreview to true solved my theme woes May 05 09:10:55 i was so close to giving up; but i'm a stubborn bastard May 05 09:11:44 it worked with the old convertView solution May 05 09:12:49 and the viewHolder May 05 09:13:29 K a May 05 09:13:33 I mean, I am awesome. May 05 09:14:06 everything must be written inside the view null checking May 05 09:14:26 Hey, the app update service knows if an app was installed using the Play app or not, is it possible to do the same check from inside tha app? May 05 09:14:30 the*\ May 05 09:21:23 hi awesome guys May 05 09:21:44 forever looking for links on how to create beautiful UI android apps///pointers anybody? May 05 09:23:49 topriddy, https://developer.android.com/design/index.html May 05 09:23:59 topriddy, http://androidniceties.tumblr.com/ May 05 09:26:02 topriddy, and this: https://docs.google.com/file/d/0Bz3qX4EBhUvwZWlHekI3Y0wxSUk/view?sle=true May 05 09:26:48 Mavrik: thanks mate. :) May 05 09:27:03 that should cover you May 05 09:27:04 :) May 05 09:27:15 Mavrik, that means that app sends cert.sf's key to google api? May 05 09:27:46 krad, it sends cert fingerprint May 05 09:27:51 Mavrik: hope they also talk about how to combine the numerous layouts available to create highly complex but easy to use interfaces May 05 09:28:03 Mavrik, which is inside cert.rsa? May 05 09:28:53 keytool -printcert -file CERT.RSA May 05 09:29:01 topriddy, that's asking for magic bullet :) May 05 09:29:03 it lists the various algorithms fingerprints May 05 09:29:09 md5,sha1,etc May 05 09:31:00 Hi all, I need to create some json assets, now: which file extension should I use? May 05 09:35:14 Mavrik: sorry, but how so? A nice tutorial that shows few UIs examples, and explains code that helps create them would be very cool. Think i did stuff like that during swing days May 05 09:35:40 well that's the last presentation deck May 05 09:35:59 but you'll have to look around for guides / apps to see how to structure a UI for your usecase May 05 09:38:20 does gdb work on android? for debugging .so files May 05 09:38:36 krad: you can put gdbserver on a rooted device May 05 09:38:48 and forward its network socket over ADB May 05 09:38:58 or. May 05 09:39:04 just enable debugging for NDK program May 05 09:39:07 and it'll do just that. May 05 09:40:06 android way of managing screens is strictly Stacks and you have to take time to close screens yourself right? May 05 09:40:10 screens = activities May 05 10:04:25 [15:31] (nuke-) Is it advisable/possible to create a sqlitedb handle in main activity and pass it around with intents? Or better to make a new handler in every activity that needs it? May 05 10:05:45 new instane May 05 10:05:47 +c May 05 10:06:22 nukeu666 use a singleton May 05 10:07:31 Lemme take a look, thanks May 05 10:27:17 My helper class returns a singleton with getinstance....the getwritable call should be done async right? May 05 10:42:13 /b #pbot2-test May 05 10:44:13 hi. where can i obtain the source of com.android.billing May 05 10:44:24 com.android.vending.billing May 05 10:45:49 Hi, can anyone assist me in finding more information about a specific stock kernel: 3.0.31-2454463? Like where is it sold etc? I'm trying to debug some crash from this specific kernel and i want to know where this device is sold and what specific market sectore it represents... any help would be great! thanks May 05 10:47:16 somebody with some knowledge about the AudioTrack and AudioRecord classes in Android? May 05 10:47:28 if so: please help if you can --> http://goo.gl/BPLd1l May 05 10:47:46 * Leeds whistles a nonchalant tune May 05 10:57:23 Why the hell does Swype need location information twice per minute XD May 05 10:57:33 bwahaha May 05 10:57:36 http://hardware.slashdot.org/story/14/05/04/0732217/some-users-find-swype-keyboard-app-makes-4000-location-requests-per-day May 05 10:57:57 they need to fix the app permission model PRONTO May 05 10:59:54 hi, I have two mediaplayers with a textureview connected and both are faded into each other. My problem is a flickering when an already used mediaplayer plays a new video. It's only a short flickering, but very annoying. Any hints? May 05 11:00:10 ^ Android 4.4.2, Nexus 7 1st gen May 05 11:00:11 one mediaplayer is a fucking headace May 05 11:00:21 two .. man thats like monster migraine May 05 11:00:33 or a stroke May 05 11:00:34 so what's the alternative? May 05 11:00:59 painkillers and blood thinners probably May 05 11:21:49 is there anything better than libgdx... it's a freaking mess to get anything done. May 05 11:25:08 nobody can help me with the following: http://goo.gl/BPLd1l ? May 05 11:26:42 blipped, unity? :) May 05 12:21:29 dragorn http://www.chadder.im/ May 05 12:21:33 SpeedEvil there ? May 05 12:22:01 ? May 05 12:23:09 SpeedEvil almost had a fire with an AW 18650 2900 & Pila IBC May 05 12:23:36 i'm pretty sure, if i didn't unplug the thing, and put all that crap outside the place would have burned down May 05 12:23:37 what? May 05 12:23:41 oh May 05 12:23:49 Congratulations. May 05 12:24:03 i think i'm going to stick to eneloops for now on May 05 12:24:04 heh May 05 12:28:51 I seem to get a nullpointer exception in my onActivityResult, however as far as I'm aware that shouldn't be possible. http://pastebin.com/DZqxfNy1 May 05 12:29:52 could result be null in this case? I assume it would throw a ClassCastException instead? May 05 12:33:30 Syzygy why using getSerializinable May 05 12:33:38 heh, sp May 05 12:34:22 g00s, so I can receive the arraylist as an extra May 05 12:37:04 wouldn't you use http://developer.android.com/reference/android/content/Intent.html#getParcelableArrayListExtra%28java.lang.String%29 May 05 12:37:36 hell, i'd use public Parcelable[] getParcelableArrayExtra (String name) if you didn't need to grow it any more May 05 12:39:50 I find it weird that it has worked for months and since saturday it's broken. May 05 12:44:58 hi, all. I followed this guide http://www.kandroid.org/ndk/docs/STANDALONE-TOOLCHAIN.html to install a ndk standalone toolchain, but when I run configure before actual build, it didn't success. help, please May 05 12:46:19 g00s, do you think that the getSerializeable might be the cause? or do you think I just pass faulty data? May 05 12:47:11 no idea May 05 12:48:25 Hi All May 05 12:49:06 I have query regarding compiling kitkat image for nexus5 May 05 12:49:18 I am trying to add new resources in Browser application values-hi/strings.xml.. but this is not getting compiled in Browser application May 05 12:49:52 it report "cannot run C compiled programs" May 05 12:56:13 i am a bit off topic question: why does DDMS use 8700 port, in the honor of blackberry8700? May 05 12:56:26 hah May 05 12:59:13 a under topic one: can the uiautomator do the drag movement? May 05 13:00:20 g00s, I can tell you now why I didn't implement it as a percelable... it's a pain to implement and I didn't need the performance. May 05 13:00:42 yeah it is a pain May 05 13:00:57 but on android, we don't just use it for performance May 05 13:01:09 Serializable causes a lot of GC activity afaik May 05 13:01:26 which is a performance issue May 05 13:02:16 are the someone doing thing of make the android apk compiled to native at installation? May 05 13:02:57 i hear you guys talking about performance. May 05 13:03:19 I have query regarding compiling kitkat image for nexus5 May 05 13:03:19 I am trying to add new resources in Browser application values-hi/strings.xml.. but this is not getting compiled in Browser application May 05 13:09:21 devices that don't have a hardware back button, they still trigger onBackPressed when the button is pressed right? May 05 13:15:49 Syzygy, yes. May 05 13:19:50 So I have an activity A that starts an activity B for result, any idea how a user could get to onActivityResult in A without triggering onBackPressed() in B? (There's a back button in the activity, but it has an onClick that triggers onBackPressed()) May 05 13:22:01 anyone know where adbkey.pub is on an android device? May 05 13:22:35 assuming an android device has one since it has adb and can connec tto other devices, right? May 05 13:24:28 mikedg: yes, i have tried that. May 05 13:24:39 Syzygy: do you mean like closing the activity without using onBackPressed()? finish() is the answer to that, but it kinda sounds like you want something else May 05 13:25:16 frankdoyle, the question is how the user would do that without access to my code. May 05 13:29:35 is there a way to set minimum heap size for devices you support in Google Play? May 05 13:33:03 sadly no. May 05 13:33:33 It feels wrong to add largeHeap - I'd rather cut the crappy low mem (heap) devices May 05 13:39:38 Looking for NDK resources May 05 13:39:56 is that a question? May 05 13:40:06 I d say it s a statement May 05 13:40:32 Is there some way to check the number of android devices affected by restricting / changing the AndroidManifest? (I mean besides uploading to Google Play and seeing what changed) May 05 13:41:05 Mavrik: I do not see any NDK resources, can you help me find some? May 05 13:41:09 snowpong, nop May 05 13:41:27 TyrfingMjolnir, you'll have to ask something more substantial May 05 13:41:38 NDK documentation is part of the zip. May 05 13:41:39 Like NodeJS has an API overview May 05 13:42:12 http://nodejs.org/docs/latest/api/index.html May 05 13:42:19 so? May 05 13:42:41 I would like a similar resource overview for Android NDK May 05 13:42:50 ndk is just a combination of bionic libc, Jni and some libraries May 05 13:43:07 and gcc/clang configured for cross/compilation May 05 13:43:18 Jni? May 05 13:43:29 I thought the clue about NDK was to avoid JAVA May 05 13:43:31 TyrfingMjolnir, open documentation.html May 05 13:43:39 no it is not. May 05 13:43:56 it is not May 05 13:44:12 it is simply a way to reuse existing native code May 05 13:44:30 Perhaps android is not for me May 05 13:44:34 or write pieces of performance critical May 05 13:44:45 it's not then, kthxbye May 05 13:44:55 http://paste.ubuntu.com/7398715/ - what am i doing wrong here? when do the gclient runhooks its failing after that i needed to make package May 05 13:44:58 Yes, I m about to port pieces of my code to android May 05 13:45:10 But I guess I m better off porting to Ubuntu Touch May 05 13:45:21 do I need to pay VAT when I sell apps on google play? And is it from the total price of my app or my profit after google's comission? May 05 13:45:23 TyrfingMjolnir: I think it's possible these days to write a complate android app without touching java (just using c/c++ and opengl) if this is what you're after May 05 13:45:36 snowpong: Yes May 05 13:45:44 unless it's a game, no May 05 13:45:53 njcomsec, AFAIK Google automatically adds VAT to your price in VAT countries May 05 13:45:54 TyrfingMjolnir: so there is the Qt for Android app for example - this is mostly written using the NDK May 05 13:45:58 I would not use OpenGL for my stuff, it’s libraries May 05 13:46:04 that's just asking for an app that looks like garbage May 05 13:46:06 TyrfingMjolnir: so there is the Qt for Android library is that I meant May 05 13:46:16 snowpong, no, Android API is practically not available to C/NDK May 05 13:46:28 I see Mav. thanks May 05 13:46:48 Mavrik: I know that, but he doesn't want to use the Android API :) he just wants his existing codebase to run on android with minimal effort May 05 13:46:49 so what do i need to do in the tax settings in my dev console? May 05 13:47:01 snowpong, and how would that work without access to GUI toolkit? :) May 05 13:47:08 snowpong, that's not a solution May 05 13:47:19 you just gave him a noob trap May 05 13:47:25 (unless his code is 100% OpenGL ES) May 05 13:47:26 pfn: sure May 05 13:47:34 There is no OpenGL May 05 13:47:42 There is data connectivity May 05 13:47:44 Mavrik: there are both audio and graphics libraries in the NDK May 05 13:47:48 There is ciphering May 05 13:47:57 There is no GUI in my libs May 05 13:47:58 but there aren't May 05 13:48:01 http://paste.ubuntu.com/7398715/ - why the `gclient runhooks` failing ? May 05 13:48:12 unless you want your app to look like trash May 05 13:48:17 pfn: ? May 05 13:48:23 What do you mean by looks? May 05 13:48:32 It should be possible to compile enlightenment May 05 13:48:38 No May 05 13:48:39 if proper c/cpp in place May 05 13:48:55 And BTW the designers would look after the looks, not me. May 05 13:49:02 if you think android is just a Linux distribution then gtfo May 05 13:49:24 TyrfingMjolnir: https://www.madewithmarmalade.com/ does what you wanna do, Qt for Android does what you wanna do http://qt-project.org/doc/qt-5/android-support.html May 05 13:49:24 I believe android is just a piece of proprietary shet just like iOS May 05 13:49:42 you believe wrong, go do Ubuntu touch May 05 13:49:51 TyrfingMjolnir: what is the existing codebase you've got? May 05 13:49:55 c/cpp May 05 13:50:01 c for connectivity May 05 13:50:05 cpp for ciphering May 05 13:50:05 TyrfingMjolnir, you can use make-standalone-toolchain.sh script from NDK for it to extract a GCC toolchain for Android to a folder May 05 13:50:18 TyrfingMjolnir, with that GCC you can compile native libraries for Android then May 05 13:50:33 just make sure you use proper cross-compilation parameters May 05 13:50:35 both projects have make files May 05 13:50:36 TyrfingMjolnir: what libraries, platforms is it already running on? May 05 13:50:46 linux/macosx May 05 13:50:49 those libs can then be loaded and used on Android May 05 13:50:51 jailbroken ios May 05 13:51:12 not that bionic libc isn't 100% fully featured May 05 13:51:24 TyrfingMjolnir: you've got a linker list of the unix libs you are currently linking with? May 05 13:51:50 http://paste.ubuntu.com/7398715/ - still its not Android-dev related ??? or am i just ignored ??? May 05 13:52:01 lxml2 lz lxslt May 05 13:52:38 lxz May 05 13:52:53 lncurses May 05 13:53:09 yeah, ncurses will be a problem :) May 05 13:53:36 TyrfingMjolnir: here are the libs in NDK May 05 13:53:43 TyrfingMjolnir: here are the libs in NDK https://developer.android.com/tools/sdk/ndk/index.html#Contents May 05 13:54:21 ncurses is an issue only because android isn't generally terminal based. Get clever with library linkages and embed a vt100 java terminal and you'll be fine. (see also: android terminal) May 05 13:54:40 but there is sshd for android? May 05 13:54:42 TyrfingMjolnir: zlib is there already, xml2 you can probably build yourself easily, xslt as well - curces might be a problem May 05 13:54:42 of course by "be fine" i mean "life will suck for your users, because it's a goddamn text terminal" May 05 13:54:48 hehe May 05 13:54:54 pretty much May 05 13:54:58 TyrfingMjolnir, Android doesn't even have a proper init system to start sshd May 05 13:55:07 at least not fully featured or standardized May 05 13:55:33 * Mavrik mumbles something about Android not being Linux. May 05 13:55:33 ncurses is just for debug output to console May 05 13:55:40 can anyone point me toward docs about adding controls in notifications? May 05 13:55:50 can you run a sshd? yeah. is it a good idea, really really not, not on a stock android system. It's not designed to do that and there's a lot of implications about network connectivity, etc. May 05 13:56:22 Not unlike minicom May 05 13:56:52 mikechelen, http://developer.android.com/training/notify-user/expanded.html#big-view May 05 13:56:57 mikechelen, see addAction calls. May 05 13:57:10 the "right way" to do all this, if you want to be an android app and not just a shim, is to compile your backend code as libraries, link it as JNI, and make a proper android front end May 05 13:57:23 dragorn: Are you telling me that Android basically only has the client side of the linux system? No init? May 05 13:57:38 Does that mean only one runlevel? May 05 13:57:40 TyrfingMjolnir, Android has practically nothing from Linux except kernel. May 05 13:57:44 it doesn't even use same libc. May 05 13:57:48 TyrfingMjolnir: it has its own init system, but yes, userland is *wildly* differnet May 05 13:57:48 there are no "runlevels" May 05 13:57:50 TyrfingMjolnir: I'm telling you it's not a server and it's not stock linux. You want stock linux, go get a n900 or something May 05 13:57:51 *different May 05 13:57:52 because it boots to Java :) May 05 13:58:14 the init system on Android is just a fast shortcut to Zygote and that's it. May 05 13:58:16 OK May 05 13:58:16 Thanks May 05 13:58:32 quick question May 05 13:58:36 puts the project on hold. May 05 13:58:41 adb over bluetooth? May 05 13:58:48 TyrfingMjolnir: The thing to remember is, it's meant to be a battery powered intermittently connected mobile device May 05 13:58:49 there's a bit more to it, but it's a more readable version of what was in /etc/inittab May 05 13:58:52 M4N1AC, hmm, not really May 05 13:58:55 M4N1AC, Wifi yes :) May 05 13:59:02 Mavrik, damnit May 05 13:59:13 M4N1AC, maybe if you manage to setup a BT network May 05 13:59:26 Mavrik, i just can't connect when i'm tethering wifi from the phone May 05 13:59:28 TyrfingMjolnir: A lot of design decisions make a lot of sense in that context. Trying to make it a server that's always on means you're fighting a lot of assumptions and architecture. You can do it. It won't be fun, and it won't really be android friendly. May 05 14:00:24 Perhaps Ubuntu for android is more like what I m looking for May 05 14:00:28 TyrfingMjolnir: if you're willing to spin your own rom on a nexus device (which is fairly outside the scope of this channel) you can drop a full linux userspace chroot into it. See also, pwnpad. You'll have to kill off a bunch of the android network management stuff. May 05 14:00:56 dragorn: Sounds more like something up my alley May 05 14:01:30 TyrfingMjolnir: it's also entirely possible to do godawful hacks; I spun an entire 150k line c++ app into .so then made the JNI linkage make a new java thread, parse a command line into argc/argv manually, and leap into the original main() in the shared lib May 05 14:02:14 TyrfingMjolnir: along with some hacks to pass FDs on the command line and make bidirectional comms pipes into the native code to get packets from the usb subsystem on android into the native side. May 05 14:02:14 Hacks are always fun to do May 05 14:02:27 But not anything I would like to give to developers May 05 14:02:32 as a stable library May 05 14:02:58 Is WebRTC implemented on Android? May 05 14:03:24 I think it's available in latest chrome for android May 05 14:03:58 But chrome is 32 bits? How would data channels run on 32 bits? May 05 14:04:03 TyrfingMjolnir, http://simonguest.com/2013/08/06/building-a-webrtc-client-for-android/ May 05 14:04:16 Mavrik: thanks! May 05 14:06:23 M4N1AC: those are just standard functions, I m using the optional data channels May 05 14:06:42 oh, nvm then May 05 14:07:05 WOW YOU MUST REALLY BE A MANIAC COZ YO NICKNAME ALL IN CAPS May 05 14:07:14 WOW SHIT May 05 14:07:20 IM CRAZEEEE May 05 14:07:36 nahhh bitch . May 05 14:09:05 Which is the best device for Surfing the web, Telegram messenger and regular phone calls when it comes to battery May 05 14:09:17 is hover like gone now? we don't provide images for hover state? May 05 14:09:24 I don't see any apps that do that anymore May 05 14:12:35 Mjolnir costs like $5000 anyways May 05 14:14:56 I am resizing and uploading image into server, but orientation is changing May 05 14:15:01 an iPhone 5s May 05 14:15:24 what can be the issue? May 05 14:15:38 Sicp: what app is mjolnir ... May 05 14:15:48 kind of app May 05 14:15:52 kamol: that sounds like a personal problem. May 05 14:16:11 fukcing sexual deviants all over irc May 05 14:16:18 jesus man ... May 05 14:16:30 don't blame me, I'm not the one with the changing orientation. May 05 14:16:37 lov: is it something related to Exif ? May 05 14:16:43 kamol: (that was a joke) May 05 14:17:01 I strongly doubt that it's related to Exif. May 05 14:17:37 It has nothing to do with your ex even if she was a bitch May 05 14:18:14 ok, enough mikedging, pthreat. May 05 14:18:18 yeah **** BEGIN LOGGING AT Mon May 05 14:20:12 2014 May 05 14:21:32 nah talking about an item in Dota2 May 05 14:21:34 Mjolnir May 05 14:22:00 Oh alright May 05 14:22:06 mjolnir is tha hammer of thor btw May 05 14:22:09 the* May 05 14:22:30 Tyrfing is the sword that cuts through mounts like if it was cotton May 05 14:22:31 nice to know May 05 14:22:37 all items there relate to mythology May 05 14:22:47 there's Mythril's hammer too May 05 14:22:52 lov: ok May 05 14:22:53 rod of atos May 05 14:22:55 thank you May 05 14:23:10 http://en.wikipedia.org/wiki/Mj%C3%B6lnir May 05 14:23:12 you're welcome May 05 14:23:32 http://en.wikipedia.org/wiki/Tyrfing May 05 14:24:21 Nice TyrfingMjolnir May 05 14:24:34 But this is more modern: http://www.vipukirves.fi/english/index.htm May 05 14:24:36 here's both, https://en.wikipedia.org/wiki/Tyrfing_Mjolnir May 05 14:24:41 oh, invalid May 05 14:24:43 Hi. My device is not showing up in the list of "adb devices". Not even as "?????" or "offline". I created the /etc/udev/rules.d file, and a symlink /dev/android_adb1 has been created and is owned by me. But it is no matter. Even if I sudo adb start-server, it still doesn't show up in the list. May 05 14:24:44 lel May 05 14:25:02 Hello my name is pthreat and I like to troll. I'm so good at it that some people sometimes take me too serious BE WARNED May 05 14:25:04 lol May 05 14:25:05 you've enabled "Enable Device Debugging" on the device? May 05 14:25:27 who asked you, pthreat May 05 14:25:35 announcing yourself? May 05 14:25:42 Galaxor: I assume you are on Linux ? ? May 05 14:25:47 Sicp: yes its my presentation card May 05 14:25:52 its lame May 05 14:25:54 Looney: Yep. May 05 14:26:06 there is a thing called sudo May 05 14:26:11 I remember a '50' in the name of the rules file on Linux May 05 14:26:15 not just rules.d May 05 14:26:15 its your friend in such scenario May 05 14:26:22 Sicp: realname : Segmentation fault: core dumped <- thats lame May 05 14:26:27 restart adb with sudo May 05 14:26:33 or just kill adb May 05 14:26:37 don't think it'll help May 05 14:26:41 and start with sudo to see the magic May 05 14:26:43 Sicp: Yep. It even pops up with the notification saying that debugging is enabled. May 05 14:26:59 Looney: Like I said, even if the adb server is started as root, it still doesn't show up. May 05 14:27:14 Sicp: "Structure and Interpretation of Computer Programs" also LAME May 05 14:27:15 then wrong stuff in file, or wrong name of file May 05 14:27:20 I really do remember rules-50.d May 05 14:27:25 Sicp: what are you in high school? sheesh May 05 14:27:25 sorry I missed that part May 05 14:27:28 or something that has 50 in its name, do search it May 05 14:27:54 Sicp: Mine is /etc/udev/rules.d/99-android.rules. But it doesn't matter. That's just to make sure you can access your device without being root. May 05 14:27:58 Galaxor: lsusb May 05 14:28:01 does the device appear? May 05 14:28:09 if no, that's your problem. May 05 14:28:13 lov: Yes it does. May 05 14:28:29 lov: Yeah, udev even made the symlink for me, at /dev/android_adb1 May 05 14:28:31 I am trying to get my video player to handle fullscreen as well as youtube does it, but I'm having the same problem as this guy http://stackoverflow.com/questions/22848222/toggling-fullscreen-orientation-like-youtube , does anyone have experience with similar problems? May 05 14:28:34 yeah, changing your udev rules just affects whether you'd need to run "adb devices" as sudo for that device. May 05 14:28:40 uh... May 05 14:28:42 lov: and the device is owned by me. May 05 14:28:47 huh, well, I guess that's nice of udev? May 05 14:28:51 udev needs to be "sourced" or something May 05 14:29:02 like when editing bash file and then sourcing it.. May 05 14:29:08 restart the daemon! May 05 14:29:13 release the kraken! May 05 14:29:19 RECOMPILE THE KERNEL May 05 14:29:27 * Sicp hugs mac May 05 14:29:52 All this udev stuff is a red herring. The only thing udev does for us is make sure that I don't need to run adb as root. But even if I run adb as root, it still doesn't show up on the list. May 05 14:30:16 Galaxor, what does dmesg say? is your USB cable fine? does your phone ask for access permission at all? May 05 14:30:17 what is the type of phone by the way May 05 14:30:27 yeah, the phone might ask if you want to allow it to connect as well. May 05 14:30:38 yea, trust RSA fingerprint May 05 14:30:40 that should show up May 05 14:31:14 Hm. I used to be authorized. I'll revoke perms and see if it asks me to renew them. May 05 14:31:24 probably your cable died :) May 05 14:31:39 that thing worked, by the way, Mavrik May 05 14:32:38 Ooh, okay. I revoked perms and then I unplugged the device and plugged it back in. Now it's showing up in adb devices as "???? unauthorized". May 05 14:32:47 excellent May 05 14:32:57 now all you need is to fix that second problem May 05 14:33:04 But I'm not getting a popup for authorization on the device. May 05 14:33:44 Maybe try a "Revoke USB debugging authorizations" from developer options? May 05 14:34:07 JuiceSSH: That's what I just did. Now I'm getting "???? unauthorized" in adb devices, which I wasn't getting before. May 05 14:34:20 yea, that's where the prompt comes in May 05 14:34:22 Ah - sorry May 05 14:34:26 try plug-unplug May 05 14:34:27 Yes - just read the above properly May 05 14:34:31 to "make" it prompt May 05 14:34:40 I mean unplug-plug May 05 14:35:12 Still no auth popup. I'm getting the notification on the device that adb is enabled, but no auth popup. May 05 14:35:37 oops May 05 14:36:37 chec kthis http://stackoverflow.com/questions/18011685/cant-connect-nexus-4-to-adb-unauthorized May 05 14:36:38 Aha! May 05 14:36:53 try switching to Camera MTMP mode May 05 14:37:00 or whatever acronym it has May 05 14:37:02 I changed "Root access" from "apps and adb" to "apps only" and then unplugged/plugged and I got the popup. May 05 14:37:14 cool May 05 14:37:19 I think this has to do with the recent 'su' change I did. May 05 14:37:27 yea, never go full sudo May 05 14:37:59 I had the "SuperSU" from cyanogenmod, but I flashed the "SuperUser" app on there instead, which overwrites the 'su' binary on the device. May 05 14:38:32 you hacked yourself into a corner May 05 14:38:42 Sicp: I guess so. May 05 14:39:00 But it looks like that checkbox is ignored by "SuperUser", because I can now shell in and su. May 05 14:39:44 AND I have basic readline-like support even when I'm su'ed now, which I did not with SuperSu. May 05 14:40:03 It was "super" annoying to get any admin tasks done when I couldn't push any arrow keys. May 05 14:40:35 is JuiceSSH open source? May 05 14:42:22 Sicp: No, closed source, purely because we have an in-app purchase that pays for our hosting etc May 05 14:42:39 ok May 05 14:43:28 hi guys are there any implementation examples of Square's OkHttp client for Android. Any links to tutorial/example would be really helpful May 05 14:45:20 Oh woww, I even have tab completion now! It's like a dream! May 05 14:47:03 the code will write itself now! May 05 14:47:43 Sicp: At least, small portions of it will. May 05 14:52:49 lol (y) May 05 15:09:25 it is regarding otto’s bus May 05 15:10:08 I have only one bus with producer in MainActivity. however, in nested fragment this part of code is runing twice http://pastie.org/9142852 May 05 15:13:06 Hello guys, I extended and activity from ActionBarActivity, but somehow I can't override onStart() method. Does an ActionBarActivity have an onStart? May 05 15:14:55 All activities have an onStart method May 05 15:15:11 Normally I can add an override method in Eclipse with: Source->oveeride/implement method and than select the method. But now it's not there anymore. May 05 15:15:30 SimonVT, that's what I thought too. May 05 15:16:05 It's been a while since I've used Java .... doesn't java has a scope resolution operator like :: in PHP May 05 15:16:17 I want to make a static call May 05 15:16:57 I think a . is enough May 05 15:17:07 why does the apk exported from AndroidStudio has larger than the one from eclipse? 13 MB for AS, and 4MB for eclipse ? any hints? May 05 15:17:07 object.static_method() May 05 15:17:10 no no May 05 15:17:11 Well eclipse doesn't likes it May 05 15:17:18 class.static_method May 05 15:17:36 className.staticMethod May 05 15:17:46 yep May 05 15:17:59 Number5: you realize that implies that if I change the class name some day I have to change everything inside that class or other classes May 05 15:18:16 sucks balls May 05 15:20:24 google apis are so verbose omg May 05 15:20:33 hey, does anyone know were this error comes from? https://gist.github.com/danijoo/3092eb630f734214581d May 05 15:20:59 got it multiple times in my dev comsole and no idea where it comes from May 05 15:21:20 seems to be api version independent May 05 15:21:22 danijoo: http://stackoverflow.com/questions/22672846/java-lang-securityexception-attempting-to-read-gservices-without-permission May 05 15:21:50 that was fast. May 05 15:21:52 thanks Mango_Man May 05 15:22:03 so at least its not my fault ^^' May 05 15:24:14 hi guys, it is regading otto bus May 05 15:24:18 http://pastie.org/9142886 May 05 15:25:19 produceActivityResultEvent() gets called two times or whats the prob? May 05 15:26:40 danijoo: it should be only once May 05 15:26:58 why twice? May 05 15:27:33 Are you sure it's called twice? May 05 15:27:53 yes May 05 15:28:03 The obvious issue here would be that you're first posting an event, then registering a producer in onResume which would post another May 05 15:28:20 Al, you call the method yourself May 05 15:28:26 s/Al/Ah/ May 05 15:28:28 That would do it May 05 15:29:31 SimonVT: where I need to change? What do you mean? May 05 15:29:48 When a producer is registered, its event is posted May 05 15:30:06 So you post the event in onActivityResult May 05 15:30:21 Then you register the Activity as a producer in onResume, which would cause the event to be posted again May 05 15:31:02 oh May 05 15:32:48 SimonVT: let me try May 05 15:32:56 I think I read wrongly the doc May 05 15:38:06 SimonVT: it doesn’t work without register(this) May 05 15:39:30 in the otto doc it says “Producers, like subscribers, must also be registered:” May 05 15:39:39 Yes.. May 05 15:39:57 And when you register a producer, the event is posted to all subscribers May 05 15:40:26 SimonVT: ic, I have to remove post May 05 15:40:32 let me try May 05 15:43:17 SimonVT: still two times :( May 05 15:45:06 My assets folder contains a "/routes" subfolder. /routes contains multiple subfolders, but I don't know the code, how can I loop over the subfolder of /routes? May 05 15:45:50 *don't know the name of the subfolders May 05 15:46:32 My VPS doesn't have enough RAM to run an emulator :( May 05 15:48:50 argh, don't run an emulator in a virtual machine! May 05 15:51:25 what Leeds said May 05 15:51:39 why even think of such a thing May 05 15:52:23 Corey84, why not? For continous integration May 05 15:56:45 autrilla; on an under powered VPS no May 05 15:57:06 VPS wasnt my issue the under powered part was May 05 15:57:22 It looks like 512MB of RAM isn't enough for it. I'll just make jenkins compile, not test May 05 15:57:42 At least I got git working May 05 16:01:16 I want my app to freeze with a circle progress bar when it issues a network call. Is there a standard way to do this? I just want it to look as professional as possible. May 05 16:02:12 Hi Guys, what is the recommended memory usage of an app? My app used 5,043 KB in Memory usage, is this too much? May 05 16:02:34 Depends on what you're doing May 05 16:02:44 androidnewb; depends as autrilla said May 05 16:02:51 what is it and app for May 05 16:03:02 autrilla: I’m loading bitmap images. May 05 16:03:15 alot of bitmap images, around twenty. May 05 16:03:23 Then it's normal May 05 16:03:32 What's the size of all those images combined? May 05 16:03:46 thats pretty fucking small for 20 bitmaps May 05 16:03:48 It should be ~4000 kB May 05 16:04:03 mikedg, heh, they could be 20x20 for what we know May 05 16:04:07 autrilla: I mean around 10 bitmaps. May 05 16:04:42 but this be alright, it just crashes in my emulator, thats why I ask. May 05 16:04:49 should be* May 05 16:05:04 Then i guess http://imgur.com/jacoj May 05 16:05:12 I think you misread your memory usage May 05 16:05:34 autrilla: lolz May 05 16:06:44 I'm getting really tired of my connexion dropping every 5 minutes May 05 16:25:42 hay guys, i'm looking for a easily way to use the calender system on android devices May 05 16:25:55 can i display appointments from google calendar? May 05 16:26:40 ive seen some android projects with custom calendar views but that is not realy what i want.. May 05 16:30:52 What is the difference between using GoogleApiClient and Signing in with Google+ or using the Google Account through AccountManager May 05 16:32:42 MainActivity.AppName ... I'm supposed to define that as a static attribute or in some part in the manifest file May 05 16:33:57 Can anyone help with this: Error:(19, 0) Gradle: A problem occurred evaluating project ':ShoppingList'.> Could not find method compile() for arguments [com.android.support:appcompat-v7:18.0.+] on project ':ShoppingList'. ? May 05 16:36:37 show the whole file May 05 16:36:52 For android i have to use target_arch=mipsel too? or just this fine: echo "{ 'GYP_DEFINES': 'OS=android', }" > chromium.gyp_env May 05 16:37:13 JakeWharton, what whole file? May 05 16:37:19 build.gradle May 05 16:37:38 JakeWharton, http://pastebin.com/iKhb06Eb May 05 16:37:57 JakeWharton, have you started work on the pigeon library? May 05 16:37:58 you need to apply either the 'android' or 'android-library' plugin May 05 16:38:10 thepoosh: started, finished, released May 05 16:38:26 YEAH! May 05 16:38:33 JakeWharton, On the top-level build.gradle? May 05 16:38:41 CarrierPigoen.fly() May 05 16:38:56 autrilla: no. on the one inside the folder for the app May 05 16:38:57 Pig? May 05 16:38:59 the one you pasted May 05 16:39:09 thPigs where? May 05 16:39:18 sendCarrierPigeonForResult() was the best... hahaha May 05 16:39:18 I am using otto's event bus system to do network rest calls and update UI. What do yall think is the best way to handle the threading? May 05 16:39:18 WHERE ARE THE PIGS May 05 16:39:42 Is that a joke based on the RFC joke ..... May 05 16:39:44 Does anyone know the difference between using GoogleApiClient and Signing in with Google+ or using the Google Account through AccountManager? May 05 16:39:58 because if it is it's not funny anymore May 05 16:40:30 JakeWharton, the one I pasted is the top level one May 05 16:45:12 well then that's not the one you want to be specifying dependencies in May 05 16:46:40 JakeWharton, is there a video somewhere for this? https://speakerdeck.com/jakewharton/android-testing May 05 16:46:55 no May 05 16:47:40 does anyone know a good library for this type of list? http://postimg.org/image/d8qb4a5bn/ May 05 16:52:02 Is here any knowledgeable person? JakeWharton May 05 16:52:54 i'm sure there's at least one May 05 16:53:10 Can anyone please suggest: Why $ ninja -C out/Debug AppRTCDemo throwing unknown target 'AppRTCDemo' May 05 17:04:40 I am just now beginning to code to for Android, and I am not sure which version(s) to download in the SDK manager. What versions should I get to achieve the broadest audience? May 05 17:05:34 x0rs_w: You'll only need the newest SDK May 05 17:05:46 Incorrect. May 05 17:05:51 Oh wait May 05 17:05:54 Correct May 05 17:05:59 You are on about the API level May 05 17:06:08 haha Ive just woke up - leave me alone May 05 17:06:27 Are you arguing with yourself? May 05 17:06:35 Yeah May 05 17:06:42 http://paste.ubuntu.com/7399834/ - why is it giving me ERROR: ninja: error: unknown target 'AppRTCDemo' May 05 17:06:47 Must've been a nice dream then May 05 17:06:54 Okay, so for API level I only need the newest? In this case Android 4.4.2 (API19)? May 05 17:06:59 Was alright. hahaha May 05 17:07:02 x0rs_w: https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net May 05 17:07:18 No, for API level you should look at that, and target the lowest that satisfies your needs. May 05 17:07:31 Oh I see May 05 17:07:32 x0rs_w: not everyone has 4.4.2... so you might want to get a slightly older version to cover most users... like 4.4 or 4.3 also May 05 17:07:53 Can I test for multiple versions? May 05 17:07:58 yes May 05 17:08:08 you can chose the version in the emulator May 05 17:08:12 For SDK you only need the newest, for API level I think the current recommended is 14 (lowest) and 19 as target. May 05 17:08:42 Thorbear, thanks so much! And Anthaas, that page is perfect. I appreciate it May 05 17:10:23 does anyone know a good library for this type of list? http://postimg.org/image/d8qb4a5bn May 05 17:10:46 danijoo: thats called carousel May 05 17:11:00 so you can google that in that way .... android carousel May 05 17:11:15 ah :) May 05 17:11:19 thanks! May 05 17:11:33 and found. just didnt know the name. May 05 17:11:54 danijoo: I supposed ;) May 05 17:12:10 took me longer to draw the sketch :D May 05 17:12:15 hahaha May 05 17:12:21 its hard to explain without an image May 05 17:12:39 "Do any of you of a library that can scroll thingy left to right" May 05 17:12:45 lol May 05 17:12:55 hi everyone,I'm new to android .I have downloaded a sample code from 'Retrieving the Current Location'page in android.developers.com,so when i run this on a emulator i'm getting error May 05 17:12:58 exaclty XD May 05 17:13:32 can any one help me out please. May 05 17:14:30 ponugoti5_: someone will actually be able to help you out if you paste the code ... you think people here are able to see your code through osmosis? May 05 17:15:05 Chances are he hasnt configured the emulator to have a location or whatever May 05 17:16:01 Anthaas: sounds like a decent guess May 05 17:16:08 I'm using nexus 5 with target name google APIs x86 May 05 17:16:36 from this link i have downloaded the sample code May 05 17:16:37 https://developer.android.com/training/location/retrieve-current.html May 05 17:16:59 Anthaas: I could curse so much right now May 05 17:17:41 pthreat: We've seen no error message, no code, no feedback from our suggestion...nothing we can do but ignore for now lol May 05 17:18:00 haha May 05 17:18:07 what's the channel for android building? May 05 17:18:14 #android May 05 17:18:28 shoul i put the code throug osmosis May 05 17:18:35 ...... May 05 17:18:49 yes, put the code through osmosis... May 05 17:18:54 kk May 05 17:19:22 ponugoti5_: youre from bangalore right ? May 05 17:19:35 hahaha May 05 17:19:41 pthreat: no May 05 17:19:48 sorry, coudnt help it :) May 05 17:19:56 ponugoti5_: close enough May 05 17:20:08 i'm from hyderabad May 05 17:20:37 ponugoti5_: please google the meaning for osmosis :) May 05 17:21:10 ponugoti5_: paste your error in pastebin.com please so people here can help you May 05 17:21:22 I set a static variable to a variable that gets passed in as a argument. I do a null check to make sure that value exists. Then When I try to use that static variable, I do a check to see if it is null, and it shows up as null. Doesn't make any sense to me. http://pastebin.com/1c4GMNGP May 05 17:21:22 kk May 05 17:24:01 maiActivity java file http://pastebin.com/aiKPTfyZ May 05 17:26:06 ponugoti5_: what error are you getting ?? May 05 17:27:19 ananth123: when i run this application on emulator its saying unfortunately can't open this file May 05 17:27:32 <.< May 05 17:27:33 IOException: This code has been copied and pasted without understanding how to use it, or run an emulator May 05 17:27:46 Anthaas: I doubt he knows what an Exception is? May 05 17:28:31 Im stuck on running the code through osmosis. I feel mean, but its just so funny hahaha May 05 17:28:32 ananth123: well i'm getting main exception May 05 17:28:34 ponugoti5_: please read the android tutorial from chapter 1... and dont skip to gps / location May 05 17:28:45 before you finish the earlier chapters May 05 17:28:51 Anthaas: hahaha May 05 17:29:06 Main exception? May 05 17:29:09 Anthaas: Dude I just wanna be a millonaire developing android apps, through osmosis, fuck bitches n drive hot cars May 05 17:29:16 yaknow May 05 17:29:21 lol May 05 17:30:48 pthreat: dont try to make fun on me..i still learning well i know to paste the code in pastebin May 05 17:31:12 ponugoti5_: how old are you ? May 05 17:31:14 Nah not making fun of ya, chill. May 05 17:31:21 pthreat: 20 May 05 17:31:39 I didn't ask but thanks for letting me know May 05 17:31:57 JakeWharton: you around? May 05 17:32:24 Yes. On mobile. May 05 17:32:50 oh, we can chat later then May 05 17:33:12 ive got a stacktrace and example code for you, you can peek if you want... http://pastebin.com/2HPaNgdA May 05 17:34:10 exception happens when i call bus.register(this) in onCreate(). I've tried ThreadEnforcer.MAIN, ThreadEnforcer.ANY and MainThreadBus from a SO answer. All to no avail. May 05 17:34:12 Otto forces you to do stuff on the main thread May 05 17:34:39 ananth123: i'm still a newbie can you suggest me from where to start May 05 17:34:58 SimonVT: i could get main looper and post on main thread, but i thought ThreadEnforcer and MainThreadBus are supposed to take care of that for you May 05 17:35:30 ponugoti5_: https://developer.android.com/training/basics/firstapp/index.html May 05 17:35:32 it works from a normal service, but not from an intent service... though i guess i am still on the main thread in the normal service May 05 17:35:57 it enforces threads. it doesn't move across them May 05 17:36:22 Your stacktrace says you call register from onHandleIntent, not onCreate May 05 17:36:32 I set a static variable to a variable that gets passed in as a argument. I do a null check to make sure that value exists. Then When I try to use that static variable, I do a check to see if it is null, and it shows up as null. Doesn't make any sense to me. http://pastebin.com/1c4GMNGP May 05 17:36:34 I think there's a difference between the code that threw that exception and the one you pasted May 05 17:36:42 SimonVT: old stack trace i guess, but i'm tried in both May 05 17:37:01 its the same stacktrace regardless of where i register May 05 17:37:07 onCreate certainly shouldn't be called on anything but the main thread May 05 17:38:12 If your stacktrace continues to show onHandleIntent, then the apk isn't being reinstalled for some reason.. Or it's just not re-building it May 05 17:38:36 Anyway, you're probably getting a crash from your posts now May 05 17:38:37 it was an old stacktrace May 05 17:38:42 Which also has to happen on the main thread May 05 17:38:42 it still happens in oncreate May 05 17:39:58 its fine if i need to manually post on the main thread, but that is what i believed ThreadEnforcer.MAIN and this SO answer do... http://stackoverflow.com/questions/15431768/how-to-send-event-from-service-to-activity-with-otto-event-bus May 05 17:40:27 look at second answer May 05 17:41:02 You're not injecting a MainThreadBus tho May 05 17:41:16 I have May 05 17:41:26 Not in the code you've shown May 05 17:41:54 regardless of whether I inject Bus or MainThreadBus, regardless of whether it is in onCreate() or onHandleIntent() it still crashes May 05 17:43:00 Anyone in here have experience using retrofit? May 05 17:43:03 i do May 05 17:43:09 Lies May 05 17:43:11 Fuck me that was quick. May 05 17:43:20 Do you sit there and wait or have some sort of plug in? hahaha May 05 17:43:22 I'm getting a NetworkOnMainThreadException May 05 17:43:27 birbeck: You should probably create a new pastebin, with code and stacktrace that matches :) May 05 17:43:45 and I've got it set up as an async method May 05 17:43:52 shekibobo: show code May 05 17:43:56 SimonVT: bah! its the same either way, but ill get one tonight May 05 17:45:30 SimonVT: in your opinion though, which is the correct way? ThreadEnforcer.MAIN or MainThreadBus, from onCreate() or from onHandleIntent()? May 05 17:45:36 How can I pause my code, while keeping the methods that have already started executing the finish executing? May 05 17:45:49 I would think just injecting Bus in onCreate() should be fine May 05 17:46:06 ThreadEnforcer.MAIN just enforces that everything has to happen on the main thread May 05 17:46:10 I don't want my code to continue. I want it to wait for like 5 seconds before continuing. May 05 17:46:25 The MainThreadBus just posts calls to post to the main thread if it's not called from there May 05 17:47:07 Two different things May 05 17:47:29 right, MainThreadBus is what I want May 05 17:48:04 JakeWharton: https://github.com/shekibobo/photoGort May 05 17:48:04 or just get the looper and post it on the main thread myself from the service May 05 17:48:06 From the code you showed, registering still had to happen on the main thread May 05 17:48:42 shekibobo: where should i be looking? May 05 17:49:00 definition: https://github.com/shekibobo/photoGort/blob/master/app/src/main/java/com/meetmaestro/photogorts/sdk/GortPhotoService.java May 05 17:49:05 well if i register in onHandleIntent(), then post from checkin/checkout (which is still in its own thread), then that should work with the mainthreadbus May 05 17:49:12 Where should I start when making an app? I want to do this one right, with VCS and good libraries. I've set up a project on IDEA and made Photoshop mockups for every activity I've thought of May 05 17:49:14 call - https://github.com/shekibobo/photoGort/blob/master/app/src/main/java/com/meetmaestro/photogorts/app/PhotoGalleryFragment.java May 05 17:49:37 It doesn't look like registering should work from onHandleIntent May 05 17:49:41 On apps where there is a grid view of photos with transparent views over the top (at the bottom say...), what is the software design implemented here? Like how are the images loaded, and handled in the app etc? May 05 17:49:42 still pretty new to this, so I'm just trying to experiment with the library May 05 17:50:23 Anthaas, an Adapter, for a GridView in this case May 05 17:50:30 No no no I realise that. May 05 17:50:33 shekibobo: can you paste the full stacktrace? May 05 17:50:51 Im assuming it would be better to pull the URLs from a Local Database, and perhaps use Picasso to load image from URL May 05 17:51:07 than to pull from a remote database through a feed or whatever May 05 17:51:29 JakeWharton: https://gist.github.com/shekibobo/7e00091fcc57f34975ee May 05 17:51:45 But at which point would the data be pulled from the remote and stored locally? Should I use a SyncAdapter? May 05 17:52:28 ah May 05 17:52:40 JakeWharton: do I need to dispatch an AsyncTask even though I'm using the async method? May 05 17:52:48 no. that's not the problem May 05 17:54:18 hmm. it thinks the request is synchronous for some reason May 05 17:54:55 Maybe I should just pick an Activity and start there? I'll definitely use Dagger May 05 17:55:29 Ive just started using gradle. May 05 17:55:35 For adding dependencies May 05 17:55:37 SO MUCH EASIER May 05 17:56:15 Anthaas: ^^+1 good read May 05 17:56:17 http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html May 05 17:56:22 whoops May 05 17:57:18 yes, gradle is better than using ant May 05 17:57:22 and better than using eclipse May 05 17:57:26 eclipse for building sucks May 05 17:57:36 And better than mvn imo May 05 17:58:04 yeah, I think it's better than mvn, too May 05 17:58:06 (none yet mention that is slower! ) May 05 17:58:12 it isn't slower May 05 17:58:12 Slowly finding this out. I quite like AS so far. May 05 17:58:14 gradle --daemon May 05 17:58:19 Still a lot to learn. May 05 17:58:27 Even if it was slower. It doesn't take much to compile anything on my PC May 05 17:58:32 of course, first run is always slow May 05 17:58:40 It has to get deps May 05 17:58:45 Maven is also slow on the first run May 05 17:58:51 maven is always slow May 05 17:59:21 had to try it again then - been a while since last time May 05 17:59:28 Maven can be quite fast, actually May 05 18:00:00 I haven't seen any fast builds with maven May 05 18:00:12 my project always takes 45-90seconds to build with maven May 05 18:00:18 we have a repo on the order of 500-1000 modules and it blazes through them May 05 18:01:36 JakeWharton: Apparently the error was getting thrown along with another - wasn't calling super in onResume() May 05 18:01:40 now it loads at least... May 05 18:03:19 I learned a lot from Donn Felker's video, if anyone wants to watch it too: http://vimeo.com/92773940 May 05 18:05:40 Does anyone know the difference between using GoogleApiClient to sign in with Google+ and using the Google Account in AccountManager? May 05 18:06:00 Im basically trying to avoid creating a whole new log in account for users and let them just use their gmail account May 05 18:07:39 Tools like Dagger are only meant to be used for unit testing, right? May 05 18:07:43 no May 05 18:08:15 it just so happens that you can unit test easier when using dependency injection (as a pattern or a library) May 05 18:09:22 remember, you will not get shot in front of a firing squad if you use a pattern in another environment where it also makes sense ;) May 05 18:09:44 The problem is I usually can't tell where things make sense May 05 18:10:03 I'm still having a hard time to find a place where I'd use dependency injection May 05 18:10:20 Apart from unit testing, of course May 05 18:11:28 Do people use Google Cloud SQL and Google Cloud Storage for storing app data and persisting information across multiple devices? May 05 18:12:16 Anthaas, yes. May 05 18:12:45 So rather than creating my own relational DB somewhere and using that, I can just use these APIs? May 05 18:12:47 being stabbed in the back by your fellow developers is usually a good hint May 05 18:13:43 Mavrik, I'm the single person on the "team" May 05 18:14:09 Unless by "fellow developers" you mean people here :P May 05 18:20:20 what's a good way of keeping private data (i.e. API key) out of source control in Android? May 05 18:20:48 Keep it in a file you don't check in May 05 18:21:15 Convert it to a QR code, and only scan it when needed. That should avoid accidentally checking it in. May 05 18:21:23 like an Object that just holds those strings? May 05 18:22:00 You realize that those strings can just be extracted from your APK, right? May 05 18:22:13 fair point May 05 18:23:05 and unsettling May 05 18:23:10 ... yeah, so May 05 18:23:15 lov: That doesn't mean you might as well check it in May 05 18:23:18 you should assume that anything clientside is compromised and potentially malicious May 05 18:23:26 Encrypt it with MD5 or some other one-way hash and throw away the original. (Unless you will ever need the original again, that is.) May 05 18:23:35 SimonVT: right, but realistically there's less danger of checking a secret into source control than in shipping it May 05 18:23:41 the exception being if the source gets opened up May 05 18:24:21 so if I had an API key that my app needs to interact with a service in order to function.... what's the best practice there? May 05 18:24:31 I figured it was open source since he didn't want to check it in May 05 18:24:33 use a public key, not your private key. May 05 18:25:15 If the service doesn't expose a publicly-acceptable key for you to distribute, consider hosting your own service that acts as a proxy and contains your private key. May 05 18:25:33 s/service/webservice/ May 05 18:26:10 it really kind of depends on what your actual use case is. May 05 18:26:29 If you're interacting with a very large service that handles millions of users, the key they vend is probably going to be something acceptable for you to embed in your mobile app. May 05 18:26:35 definitely check the docs though. May 05 18:26:51 the documentation on how to interact with that API probably tells you what is and is not reasonable behavior. May 05 18:27:20 I am using otto to publish events from async network calls. What do yall think is the best way to handle the threading? May 05 18:27:24 also, light yourself on fire because the only moral to the story of networking security is that we are all boned forever and always. May 05 18:27:53 ^^ got it May 05 18:28:03 You're such a downer May 05 18:28:33 <3 May 05 18:29:02 At least in web, I have control over the server and can store that data somewhere it is reasonably safe... May 05 18:29:10 I quit this programming crap May 05 18:32:27 Aaah! I broke my IDEA UI by clicking restore default layout May 05 18:32:28 haha, you have control over the server? May 05 18:32:39 Anybody got a sec for a total coding noob? Trying to figure out how to refer to a SurfaceView from another part of my code in the same class. If I'm working within: "public void surfaceCreated(SurfaceHolder holder)" then its easy.. I have this SurfaceHolder I can refer to... but from other sections of the code I can't figure out how to populate a SurfaceHolder so I can play with it? May 05 18:32:39 This is probably so basic. May 05 18:32:45 yes, until the next zero day happens, oh, several hours after the last one. May 05 18:33:08 FireBreath: you don't populate one. You use the one that you've been given. May 05 18:33:47 I don't recall offhand if SurfaceHolder is something that it's safe to hold on to (check the docs!) but if you need values, cache them, etc. May 05 18:34:31 Ok... well I haven't really been given one. I made one within my onCreate... then I have this other fucntion that runs when user taps the screen. That MotionEvent has no idea of the SurfaceView.. how would I get an onTouchEvent to call/change/modify a SurfaceView?.. I want to ultimately do a canvas.DrawCircle May 05 18:34:39 again... absolute total noob. :) May 05 18:34:43 actually, hold on. May 05 18:34:56 ... yeah. May 05 18:35:02 You should have a SurfaceView (or a subclass of one) May 05 18:35:10 SurfaceView has a getHolder method. May 05 18:36:48 Maybe my problem exists lower than I'm thinking... so yea, I have a SurfaceView, which i named "view" in my onCreate.. and it does indeed have a getHolder. What I'm confused about is how to call/refer to that "view" from other sections of my code that isn't within the protected void onCreate() where I made it. Seems like a very simple referencing issue May 05 18:37:00 You, uh, generally don't. May 05 18:37:06 Really, you want to subclass SurfaceView. May 05 18:37:12 Take a look at the API Demos. May 05 18:38:00 k lemme go sift thru more docs :) May 05 18:38:24 Basically, you CAN provide a SurfaceHolder to your draw thread or whoever else needs it, but generally you want that information to be neatly abstracted away. May 05 18:38:33 You don't want to hand out SurfaceHolder references to whoever wants it. May 05 18:38:54 definitely take a look at the API demos, there's a few nice demos about drawing with SurfaceView. May 05 18:39:10 guise May 05 18:39:12 guise May 05 18:39:14 lov May 05 18:39:17 lov, listen ... May 05 18:39:24 lov: I loaf you May 05 18:39:46 Woah I wonder how crashlytics can be free. They have very good support May 05 18:40:18 pthreat: th...anks? May 05 18:40:21 lov: Now that I have your attention May 05 18:40:23 lov: return new ExecShell().executeCommand(SHELL_CMD.check_su_binary)!=null; May 05 18:40:29 HCF. May 05 18:40:33 Do you think that's a godo idea to check for root ? May 05 18:40:43 s/godo/good/ even May 05 18:40:49 Uh, it's probably A way. May 05 18:41:05 is it a portable way that will work everywhere? May 05 18:41:10 hahaha May 05 18:41:11 lov: that's a question! May 05 18:41:22 your laughter confuses me May 05 18:41:28 are you trying to see if root is available because you want to USE it, or because you want to BLOCK it? May 05 18:41:30 WILL IT WORK EVERYWEAAAA May 05 18:41:35 I haven't a clue. May 05 18:41:38 because I n33d 1t May 05 18:41:40 well May 05 18:41:41 for one thing May 05 18:41:47 if you're actually trying to exec an su command May 05 18:41:58 the user is almost certainly going to see a dialog saying "hey, this guy wants to exec su" May 05 18:42:09 and they're gonna be like "the fuck? deny and uninstall, this is malware" May 05 18:42:17 enjoy your 1 stars. May 05 18:42:25 lov: Yes yes but you forgot May 05 18:42:30 that I WILL ASK FOR IT May 05 18:42:36 " this app requires root you prick" May 05 18:42:41 ok May 05 18:42:49 2 stars May 05 18:42:54 but if yo udont have the roots and installs its anyweeez May 05 18:42:54 so just exec su? May 05 18:42:56 "app called me names" May 05 18:43:00 haha May 05 18:43:17 :O May 05 18:43:31 app told me to su, must probably be that I talk too much CMON NOW May 05 18:43:41 lov: Now, really, I will ask for the permissions May 05 18:44:02 on install May 05 18:44:04 pthreat: I honestly don't know. There's probably some super duper swell guide on how to do this on xda-dev, or you can ask the most popular su app authors. May 05 18:44:36 My device is not rooted so0o0o0o0 I guess I'll check ... May 05 18:44:50 good luck! May 05 18:44:58 lov: I thought you were my lov. I've been deceived yet again May 05 18:45:10 :'( icryeverytim May 05 18:46:57 Where should I start when making an app? I want to do this one right, with VCS and good libraries. I've set up a project on IDEA, added crashlytics for crashes and made Photoshop mockups for every activity I've thought of. Now, what would you do? May 05 18:47:36 autrilla: start coding? May 05 18:47:48 frankdoyle, obviously, but where? May 05 18:47:52 xD May 05 18:47:56 in your editor May 05 18:47:59 :D May 05 18:48:00 hahahahahahahahaha May 05 18:48:03 D: May 05 18:48:08 * pthreat points gun to his head May 05 18:48:10 Once every few months I decide I'm going to take up coding again... pull up one of the few Adnroid apps I started... get unbelievably frustrated trying to figure out something basic.. smash a keyboard.. and it goes away for another few months. May 05 18:48:28 autrilla: you can always hire someone from india May 05 18:48:42 I've been told Anthaas is one hell of an indian coder May 05 18:48:48 FireBreath: android is kinda frustrating to work with sometimes, you could try something like python where the programming environment is a bit nicer May 05 18:48:53 he does stuff through osmosis May 05 18:49:02 I know how to code for Android, but I don't know how I _should_ start May 05 18:49:06 I know how I can May 05 18:49:10 autrilla: so, a few things. May 05 18:49:21 1) if you haven't done so yet, go to d.android.com May 05 18:49:31 2) By IDEA, I assume you mean Android Studio. If so, great! May 05 18:49:42 lov, I've done that a couple thousand times. I mean IDEA, not Android Studio May 05 18:49:48 3) Photoshop mockups are a nice idea for rough mocks. Remember, Android is not pixel perfect. May 05 18:49:53 I once also did layout design through facilitated diffusion. May 05 18:49:54 autrilla: http://developer.android.com/sdk/index.html?hl=sk May 05 18:49:58 but yeah. May 05 18:50:03 Just code, you'll figure it out. May 05 18:50:03 autrilla: you start there May 05 18:50:15 pthreat, I already have an Android project. May 05 18:50:19 Im like the Chuck Norris of programming, minus the homophobia and what not. May 05 18:50:22 sooo May 05 18:50:24 lov, I've done apps before! May 05 18:50:28 autrilla: excellent May 05 18:50:33 I just don't know where I SHOULD start May 05 18:50:37 autrilla: it really depends on the app. May 05 18:50:47 All layouts? Focus on one fragment/activity? May 05 18:50:49 I'd recommend starting with the lower level libraries, making them solid, writing tests, etc. May 05 18:50:55 autrilla: everything starts at hello world, theres a tutorial on it May 05 18:50:57 Once you have a useful core, start writing your UI to use it. May 05 18:51:04 pthreat, do you even read? May 05 18:51:07 Alternately, instead of bottom up, you can do top down where everything is stubbed out. May 05 18:51:14 pthreat, autrilla> lov, I've done apps before! May 05 18:51:25 OK, well, I'm not sure what you're looking for me to say. May 05 18:51:30 Start with the first screen the user will see? May 05 18:51:39 Start with the blood sacrifice? May 05 18:51:39 autrilla: dude are you high on acid ? May 05 18:51:46 pthreat, no. May 05 18:51:47 lov: BRING IN THE GOAT May 05 18:51:56 Can I use findViewById to find my SurfaceView?.... only API demo type things I found: http://www.programcreek.com/java-api-examples/index.php?api=android.view.SurfaceView May 05 18:52:07 FireBreath: if your SurfaceView has an id, then yes. May 05 18:52:15 seems to insinuate (Code Example 12) that I can do that... I don't think it has an id tho May 05 18:52:18 can I give it one? :) May 05 18:52:32 FireBreath: better yet, use butterknife May 05 18:52:38 If you're writing an xml layout, yes, easily. May 05 18:52:41 I use ButterKnife! May 05 18:52:47 Elegant. May 05 18:52:48 If you're inflating the views from source, it's a little harder. May 05 18:53:09 Think I'm flexible at this point.. I just want to make a surfaceview that covers the screen that I can draw circles on. May 05 18:53:26 FireBreath: when i said "Look at the API demos" May 05 18:53:30 autrilla: the problem here is that ther'es not really a "best" place to start. you can start anywhere you want, and unless it somehow hinders future development, it won't be the "wrong" choice May 05 18:53:36 I meant "Look at the API demos that come with the Android SDK and which you can import as projects into your IDE" May 05 18:53:42 not "Look at rando tutorials on the internet" May 05 18:53:46 i generally start with the activity that your app opens to May 05 18:53:52 frankdoyle, that is the best answer so far. May 05 18:53:58 Thank you, really May 05 18:54:10 Is that not kind of an obvious place to start? May 05 18:54:17 dude May 05 18:54:21 autrilla: some people start with their http service, if you need that May 05 18:54:21 the people you find here is amazing May 05 18:54:28 I thought ##php was bad May 05 18:54:31 When building a house, do you do the plumbing first or put the foundation in first? May 05 18:54:32 I usually started there. Didn't know if that was the correct place to start though. May 05 18:54:35 lov: there's samples included?.... *goes looking for those* May 05 18:54:45 pthreat, you don't even know what I asked, so shut up May 05 18:54:46 Anthaas: you start with the windows obviously May 05 18:54:52 FireBreath: Open up the SDK Manager. There are API demos for every API level. May 05 18:54:52 autrilla: riiiiiiiiiiiiiight May 05 18:54:55 Anthaas: depends, does the plumbing need to be in the foundation? May 05 18:54:59 So I can see outside to know if I should put the roof up yet? May 05 18:55:04 pipes gotta go somewhere May 05 18:55:06 frankdoyle: You'd still say that was the foundation. May 05 18:55:14 I think that BY DEFAULT they're not installed, so you have to pull them down yourself. May 05 18:55:21 pthreat, lov got close, frankdoyle got it. You didn't even get near. May 05 18:55:43 lov: The "Samples for SDK" for each API level? May 05 18:55:53 well sure, but then the "foundation" is by definition the start. still doesn't explain whether you start with the concrete or the pipes May 05 18:55:53 Well, for the API level you're working at, but yes :) May 05 18:56:13 (generally just get the highest API level possible; you almost certainly never need lower API levels) May 05 18:56:23 (except for emulator images) May 05 18:56:49 what mockup tool do you guys use? May 05 18:56:58 Mango_Man, photoshop May 05 18:56:59 seems like fluid UI is most popular May 05 18:57:22 photoshop of course May 05 18:57:24 Nobody has yet been able to answer me, does anyone have any ideas...? May 05 18:57:27 * pthreat chortlet May 05 18:57:45 Anthaas: About what m8? May 05 18:57:52 anyway, autrilla, that sort of thing comes from experience. do 3-4 projects from start to finish, and you start to figure out what makes sense for you. you'll find yourself saying "man, i wish I'd had this ready" or "I wish I'd have done this later, the way I built it doesn't make sense given these requirements" May 05 18:57:59 What is the difference between using GoogleApiClient and signing in with Google+ and using the Google Account on the device through Account Manager? May 05 18:58:04 JakeWharton: another question on Retrofit if you have a sec May 05 18:58:12 go for it May 05 18:59:11 Anthaas: the real question is what are you using the api for? Obtaining the account? May 05 18:59:14 JakeWharton: I had it working just fine with the basic Gson converter. Tried to apply some date formatting (before it was coming up null). Now it's calling the failure callback. May 05 18:59:31 pthreat: Trying to avoid making the user sign up with email address, password, username etc to my own server. May 05 18:59:35 public void failure(RetrofitError error) { May 05 18:59:35 Log.i("PHOTO PROBLEM", error.getResponse().getReason()); May 05 18:59:35 } May 05 18:59:52 and it prints out PHOTO PROBLEM: OK May 05 19:00:04 what's the getCause() ? May 05 19:00:33 Anthaas: so you want to get the associated gmail device account? May 05 19:00:53 I'm using AccountManager for that May 05 19:01:06 What info can I get from that account though? May 05 19:01:13 first name, surname etc? May 05 19:01:36 yeah that data I believe you can get let me check since I'm only using it for obtaining the email :/ May 05 19:01:42 JakeWharton: Cool, hadn't found getCause() yet, thanks: 05-05 19:01:13.145 2253-2253/com.meetmaestro.photogorts.app I/PHOTO PROBLEM﹕ retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: 2014-04-30T19:50:24.550Z May 05 19:02:22 shekibobo: you should probably be putting that in a string in your model, then doing the parsing after May 05 19:02:58 like an overloaded setter? May 05 19:03:48 more like parse it when you go to retrieve the value, rather than try to put it in your model as a parsed object May 05 19:03:59 I just cant figure out why my graphview wont show within the layout in my horizontalscrollview. What am i doing wrong here? https://gist.github.com/sibe7691/a16606b27a8b1c471d70 May 05 19:04:51 Anthaas: http://developer.android.com/reference/android/accounts/Account.html nope ... May 05 19:05:37 lov: Looking at this Lunar Lander thing... shit looks complicated :/ May 05 19:05:54 setDate(String dateString), Date getDate() { Date.parse(date); } ? May 05 19:06:02 FireBreath: hahaha, welcome to graphics programming. May 05 19:06:27 FireBreath: that said, look at the API demos, not the lunar lander app. That will be a lot more straightforward. May 05 19:06:41 It also really depends on what you're going to be using this to do. May 05 19:06:47 didn't see any of the sample stuff that was specific to graphics or surfaceviews... May 05 19:07:31 Android Studio (and IDEA) create an interface (OnFragmentInteractionListener) when you create a Fragment, and put it inside the fragment's class. Wouldn't it be better to have it in its own file, so that other Fragments and Activities can implement it? May 05 19:07:51 FireBreath: take a look at https://play.google.com/store/apps/details?id=com.hmh.api. Someone took the Android API demos and put it on play. May 05 19:07:54 That's what I'm pointing you at. May 05 19:08:06 I have a small issue May 05 19:08:27 i'm currently getting the camera instance in onCreateView May 05 19:08:30 shekibobo: something like that, yeah. you shouldn't need setters with gson, though May 05 19:08:34 how do i release it in onPause May 05 19:08:37 it should just put stuff where it goes May 05 19:09:20 Or maybe I should use Otto with it's event bus instead of the interface May 05 19:09:28 FireBreath: which references the code here: s May 05 19:09:30 aiusdha May 05 19:09:33 https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/graphics/ May 05 19:09:42 frankdoyle: how does gson set values on an object if not through setters? May 05 19:09:44 Hmm, I may just make them sign in with my own server then May 05 19:10:03 I didnt really want to do that... May 05 19:10:24 shekibobo: through the magic of reflection. it's neat May 05 19:10:51 You can use reflected to say that 5 = 6. May 05 19:10:57 reflection*** May 05 19:11:05 So 5+5=12 May 05 19:11:15 FireBreath: sorry, it's been a pretty long time since I used this stuff or looked at the demos. May 05 19:11:18 shekibobo: gson will take your json and say "I've got a string called 'foo' and it contains the text 'hello world". it then takes your object and says "hey, this object has a String called 'foo' so put 'hello world' in that" May 05 19:13:42 don't see any surfaceview stuff in there... but looks to be some view editing stuff I can use.. will start with https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.java and see where I get May 05 19:13:57 thanks lov May 05 19:14:06 shekibobo: what this means to you is that you can have a class that has no methods in it at all, just a bunch of public fields, and Gson will be perfectly happy with it May 05 19:14:56 you can then have a getDateStringAsParsedDate() method that gets the date string that gson puts in as a Date object May 05 19:15:52 For communication between Fragments and between Fragments and Activities, would you recommend this: http://developer.android.com/training/basics/fragments/communicating.html or a library like Otto from Square.io? May 05 19:15:57 that last sentence was bad. you can then have a getDateStringAsParsedDate() method that gets the date string in your object and returns a aparsed date May 05 19:16:11 gotcha May 05 19:16:28 Napalm: You there? May 05 19:17:11 anyway to get a different drawable if the device is in landscape May 05 19:17:23 now, anyone know of a good HAL parser-thingy? May 05 19:18:36 M4N1AC: you can have a landscape drawable bucket May 05 19:19:03 same as you might have a landscape layout bucket May 05 19:19:54 frankdoyle, got it :) Thank You May 05 19:22:16 im looking at the source code for compoundbutton, but no where do i see it listening for click events... how does the compoundbutton receive click events if it's never listening on them? May 05 19:22:56 Does it extend something that does? May 05 19:23:11 View perhaps? May 05 19:23:32 hello May 05 19:25:03 I have a problem. I recently started developing for Android using Embarcadero RAD Studio XE5 which installed the Android SDK with the API17 May 05 19:25:25 when starting the SDK Manager it advised me to upgrade to API19 May 05 19:25:45 I did that and changed the API version of my AVD and tried to boot it May 05 19:26:06 But it does nothing while the old API17 image boots up in under 5 minutes May 05 19:26:37 Checking the Android Debug Manager shows a lot of red error messages which I can't write down all here May 05 19:26:45 Can anybody help me with that? May 05 19:28:23 if you have an activity that contains multiple fragments, in what order are their lifecycle functions called with respect to each other? May 05 19:29:00 Is that dedicated to me? May 05 19:29:08 mattblang, it should not matter in the least May 05 19:29:13 ok May 05 19:29:20 I didn't understand anyways May 05 19:29:28 mattblang, if you have those kind of dependencies, you should fix your code such that it doesn't have those awkward dependencies May 05 19:29:46 felsenhower, you can paste your errors somewhere like pastebin.com and post a link here May 05 19:30:24 jasonj8 the emulator seems to be in a booting loop May 05 19:30:37 how do I see when it restarts? May 05 19:30:57 pfn well, im wondering because I've started using Otto for async tasks, and im curious if I can use for my fragments rather than implementing callbacks. for example, if I go to landscape and want to intiate a master detail on the first item, it would be awesome if I could just publish an event that the detail fragment consumes. but im not sure if it will be registered to the event bus May 05 19:31:16 felsenhower, I've never really used the AVD emulator. I use genymotion (highly recommend it). May 05 19:31:42 mattblang, same difference... May 05 19:32:00 having a callback or not, you still have this same whether or not it's registered issue May 05 19:32:20 pfn so how would you recommend accomplishing something like I mentioned? May 05 19:32:45 pfn a master detail whose detail fragment auto initializes to the first item May 05 19:32:45 mattblang, too many ways to count... May 05 19:32:53 and no idea what you're talking about May 05 19:33:24 Is Butterknife smart enough to handle view injection inside an Adapter's getView()? May 05 19:33:55 What does it have to be smart about? May 05 19:34:05 jasonj8 I don't know if genymotion works well as a Platform SDK inside RAD Studio, so I'd rather just try to get running what I have atm May 05 19:34:23 anyone have a good starting point for someone who wants to learn how to use gson without their head exploding? May 05 19:34:33 Arrrrgh May 05 19:34:47 I'm trying to develop a really good app from scratch, better than the other crap I put together. May 05 19:34:54 I have no idea where to start and what to do hahaha May 05 19:34:58 JakeWharton, where the View is? May 05 19:36:10 i'm a bit confused May 05 19:36:20 i've been reading up on fragments May 05 19:36:32 but i don't understand how i switch bewteen them May 05 19:36:37 So i've been looking at the way Services work. I was wondering if there's a way to tell a bound service upon unbinding to simply not destroy itself May 05 19:36:46 i'd like to employ both methods of communicating with a service May 05 19:37:10 I want to draw on my apps screen, but I want to paint with my finger on a specific ViewGroup. Is that possible? May 05 19:37:20 essentially I want to start my service, and perform a bind to my service to determine if it May 05 19:37:24 From what I've seen it's just constantly drawing to canvas May 05 19:37:24 's still alive May 05 19:40:14 This is my Android Debug Monitor log: May 05 19:40:17 autrilla: butterknife esentially delegates the work to a findViewById op.. so... May 05 19:40:22 http://pastebin.com/pLvHLRMM May 05 19:40:35 could anybody take a look at it? May 05 19:40:47 alexfu, ah, ok, then as long as the parent view is inflated there shouldn't be any problems May 05 19:40:55 Also, why should getActivity be checked for null? May 05 19:41:26 autrilla: yes. May 05 19:42:44 ButterKnife is smart enough to handle adapters for people who are smart enough to read the website May 05 19:45:54 Right May 05 19:46:01 I've read enough to know I cant be bothered. May 05 19:46:08 Cloud SQL and the like May 05 19:46:15 Sod it, my users can just man up and register with my server. May 05 19:46:20 Stuff Google Back End crap haha May 05 19:46:22 ME!!!! May 05 19:47:50 Always with the charging too May 05 19:48:13 i have a view with widht=60 and height is 40. This is for a dummy view in vertical. now i need to orient it horizontally how do i convert the dpi size to look nice in horizontal layout ? May 05 19:48:36 are you trolling? May 05 19:49:00 Mavrik: u r adressing me ??? May 05 19:49:16 Mavrik: Sounds like he's after a fight... May 05 19:49:27 oops ... disregard ) May 05 19:49:29 YOU TALKING TO ME? I DON'T SEE ANYONE ELSE AROUND HERE, YOU MUST BE TALKING TO ME! May 05 19:49:32 FIGHT! FIGHT! FIGHT! FIGHT! FIGHT! FIGHT! FIGHT! FIGHT! FIGHT! FIGHT! May 05 19:49:43 * Mavrik slaps pthreat with an iOS device. May 05 19:49:57 Mavrik: OH NO YOU DONT IPHONE SLUTZ0R! May 05 19:50:29 fucken' Steve BLOW JOBS whoarrrr May 05 19:51:05 so back to bussiness May 05 19:51:05 Anthaas: question m8 May 05 19:51:47 adb devices is showing my device, all cool. BUT When I'm trying to run through eclipse the device doesn't shows up. Any idea? May 05 19:52:23 Hmm, not a clue - haven't seen that one. Is the DDMS showing it? Try restarting Eclipse.... May 05 19:52:49 closing May 05 19:53:22 Anthaas: Eclipse shows: No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD. May 05 19:53:30 pthreat: key word "compatible" May 05 19:53:38 you may have a target API level higher than your device. May 05 19:53:44 (or minimum level) May 05 19:53:48 And through CMD: List of devices attached 9003L252b0001 device May 05 19:53:51 hah May 05 19:53:58 pthreat: it happened to me once i had to restart eclipse ((( May 05 19:54:03 lov: good point ... May 05 19:54:10 but yeah, the version of ddms in eclipse may or may not be sane. May 05 19:54:16 lov: I'll check manifest May 05 19:54:22 you can always start an emu instance and see if it can find that. May 05 19:54:42 android:minSdkVersion="9" android:targetSdkVersion="19" May 05 19:54:58 lov: haven't changed the target version, this was working on friday May 05 19:55:01 weird ? May 05 19:55:01 benzap: Yes, check the flags you can pass when binding. Basically, you'll want to call startService. May 05 19:55:05 * lov shrugs May 05 19:55:11 have you tried turning it off and on again? May 05 19:55:14 is it plugged in? May 05 19:55:15 hahaha May 05 19:55:26 hold on a minute May 05 19:55:27 pthreat: is this a vmware android ? May 05 19:55:37 lov: I start the service when I first start up my activity, what kind of flags are you referring to when binding? May 05 19:56:16 benzap: I was thinking http://developer.android.com/reference/android/content/Context.html#BIND_AUTO_CREATE May 05 19:56:21 but yeah, start the service then bind t it. May 05 19:56:50 benzap .. forget services .. use otto ! May 05 19:57:19 it kind of depends on what you're trying to do with the service. In most cases, letting the service die and be recreated is OK. May 05 19:57:35 If the service being killed would be something that the user would actually immediately notice, set it into the foreground. May 05 19:57:41 and yeah, you may not actually need a service. May 05 19:58:32 lov: my service is already working fine, it's a server poller May 05 19:58:41 but i'm having trouble working out how to determine if it has died May 05 19:59:02 if it dies unexpectedly, I can't set state within the service to tell everything that he's not alive May 05 19:59:15 due to forced stops, etc May 05 19:59:19 how do i convert the vertical width/height of a view with fixed size horizontally ? May 05 19:59:39 must be a faq ( May 05 19:59:58 benzap: what's the service that it's polling? Is there a reason that this couldn't be done asynchronously via broadcast intents, or via periodically starting it with the alarmmanager? May 05 20:00:11 if the answer is "no", your only real solution is to set it into the foreground. May 05 20:00:20 it is set into the foreground May 05 20:00:33 oh, in that case you're set. May 05 20:00:42 That's basically the best you can do; if your service is killed, your phone is probably fucked. May 05 20:00:50 csgtvdyubfngfdvthrybtuknymhgnftbd May 05 20:00:51 svdtsctact May 05 20:00:53 ssssv May 05 20:00:55 understood. May 05 20:00:56 holy shit May 05 20:00:57 sorry May 05 20:01:01 hmm yeah, May 05 20:01:04 cat on keyboard May 05 20:05:21 I like the new firefox May 05 20:05:21 looks good May 05 20:05:21 runs fast May 05 20:14:46 hey lov May 05 20:14:48 where ya been? May 05 20:19:13 <__LINE__> more proper May 05 20:20:18 JakeWharton, do I need anything other than classpath 'com.jakewharton.hugo:hugo-plugin:1.1.0' and apply plugin: 'hugo' to use hugo? Because I get Error:Gradle: A problem occurred configuring project ':ShoppingList'.> Could not resolve all dependencies for configuration ':ShoppingList:classpath': > Could not find com.jakewharton.hugo:hugo-plugin:1.1.0. Required by: ShoppingList:Shopping May 05 20:20:18 List:unspecified May 05 20:20:49 mavenCentral() in your buildscript { repositories { } } May 05 20:22:43 JakeWharton, alright, it doesn't say so in github (just for if you want to add it so that people like me don't anoy you) May 05 20:22:44 Napalm: got shit to do. May 05 20:25:49 JakeWharton, now this: Error:Gradle: Execution failed for task ':ShoppingList:compileDebugJava'. May 05 20:25:49 > Could not find property 'bootClasspath' on com.android.build.gradle.AppExtension_Decorated@3157c60. May 05 20:26:16 update your android plugin to 0.10.x May 05 20:27:27 JakeWharton, I'm on 0.10.0 May 05 20:28:19 <__LINE__> https://www.youtube.com/watch?v=O-hnSlicxV4 <- this YES May 05 20:29:17 is it post random videos time? May 05 20:29:33 <__LINE__> frankdoyle: no no, it's post NICE videos time May 05 20:30:00 JakeWharton, http://gyazo.com/264cd42e1bd59dfadd4c490df260b3ee it says 10.0, I guess that's what you meant May 05 20:31:59 0.10 of the android plugin in your build.gradle May 05 20:33:59 SimonVT, ah, ok, thought he meant the IDEA plugin May 05 20:34:34 Hey guys, question. I have a c function that returns a std::string and everything I have tried with JNI I cant get the value of the string, I cant seem to find an example that uses a std::string as the return type from a c++ class t seems most of them use char[]* and convert to a std::string before releasing and I havent quite figured out what I am supossed to do :-( May 05 20:37:10 dblosevn, you call c_str() on it to get char*, then call jniEnv->NewStringUTF to convert it to java string May 05 20:37:15 jstring that is. May 05 20:37:22 you return that in JNI. May 05 20:37:29 heres an exceprt of what I am doing http://pastebin.com/Q6LrvtSn May 05 20:37:44 my last attempt anyways May 05 20:38:32 sorry my missed the jni function JNIEXPORT jstring JNICALL May 05 20:39:07 yes, that should work. May 05 20:39:17 your newStringUTF funtion lacks some parameters tho :P May 05 20:40:11 hmm, checking, Ive played with that method call the most May 05 20:40:36 hi all, i can not run the emulator May 05 20:40:45 dblosevn, "play"? :) http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html May 05 20:40:58 so i have os x on maverick May 05 20:41:18 and will create an avd from commandline. what does i have to choose that the emulator starts ? May 05 20:41:45 hmm, that doc says jstring NewStringUTF(JNIEnv *env, const char *bytes); May 05 20:42:01 mhm. May 05 20:42:08 but eclipse says, jstring NewStringUTF(const char* bytes) May 05 20:42:19 what does i have to choose for "target" and "cpu/abi" ? May 05 20:42:34 and throws a lint error when I pass in env May 05 20:42:53 wrong java version maybe? May 05 20:43:06 dblosevn, that's C code, nothing ot do with Java. May 05 20:43:23 your Eclipse is probably confused and is trying to give you a C++ prototype of the function. May 05 20:43:28 i have jave version May 05 20:43:28 java version "1.7.0_40-ea" May 05 20:43:28 Java(TM) SE Runtime Environment (build 1.7.0_40-ea-b29) May 05 20:44:13 ya it breaks my project if I open anyhthing but the jni wrapper in eclipse have to restart eclipse and close the project May 05 20:44:30 let me try making that change outside of eclipse May 05 20:47:45 Mavrik: http://pastebin.com/0j1YpRRJ May 05 20:48:02 built from command line May 05 20:48:07 you're using the C++ version in C code. May 05 20:48:22 hmm, is what you have C++? May 05 20:48:43 the interface for C++ is slightly different and doesn't have the jnienv IIRC May 05 20:48:51 (didn't use C++ much with JNI) May 05 20:49:05 ya its c++ May 05 20:50:03 what can i do. i got the following error "emulator: ERROR: This AVD's configuration is missing a kernel file!!" May 05 20:50:04 If my app's theme is Theme.AppCompat.Light.DarkActionBar, why does android.R.layout.simple_dropdown_item_1line show dark text on the actionbar? Shouldn't it show white text? May 05 20:50:07 I asked the other dev to write it in c and ended up with c++, I dont understand the math required to do that part of the project so I outsourced the calculation library May 05 20:50:18 my android sdk is the newest version May 05 20:50:55 dblosevn, the C++ version doesn't use jnienv as parameter then, check exacly what the interface looks like in doc May 05 20:53:22 ya, I removed the env parameter and it compiled again, still get an empty string though May 05 20:53:50 is there anyway to get either the debugger to stop in the jni layer or log the output from the c method somewhere? May 05 20:55:05 Weird, even invoking setTextColor(0xffffff); on the text doesn't work, it is still dark May 05 20:55:50 I know the c++ method returns a value, when I run it with my test application it works I am not sure if its working within this project though as it has to read a csv file in order to parse model info May 05 20:57:34 Everytime I try to do anything I get a new fuck up May 05 20:57:36 this great May 05 20:57:36 New package not yet registered with the system. Waiting 3 seconds before next attempt. May 05 20:57:40 Here is how it looks: http://i.gyazo.com/93df27bc928155acd35f83229cda778e.png May 05 20:57:43 WHAT THE FUCK May 05 20:59:41 Have you tried cleaning and building again? OF COURSE? May 05 21:02:42 b33f May 05 21:02:47 bye May 05 21:03:02 i solved my activity transition color flash with windowDisablePreview; i haven't noticed any adverse effects so far May 05 21:03:15 it makes it look like your app takes longer to launch May 05 21:03:34 seemed impossible to dynamically set one of 2 themes in onCreate() and not have the opposite color flash otherwise May 05 21:03:38 i couldn't find any other solution May 05 21:03:53 maybe the N7 is fast enough i can't notice any delay May 05 21:04:20 depends on how heavy your app is at starting up May 05 21:04:42 pfn this is only for when the process isn't cached, correct ? May 05 21:05:02 I've found this https://code.google.com/p/android/issues/detail?id=25624 but it's for SimpleCursorAdapters, not BaseAdapters May 05 21:05:49 * autrilla is reaaaaaaally dumb May 05 21:05:52 Ignore me. May 05 21:05:59 (for now) May 05 21:06:51 Ah, maybe not so dumb. Passing the actionbar themed context instead of application context doesn't change anything May 05 21:08:24 ok emulator seem to run... May 05 21:09:55 I'm using this to create the layout inflater on my adapter: LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); May 05 21:10:01 pfn almost had a lithium fire last night with NCR 18650 May 05 21:10:16 autrilla, did you consider that maybe the layout just doesn't use theme colors :) May 05 21:10:26 it's like a single element xml layout, roll your own :) May 05 21:10:28 hey g00s May 05 21:10:33 Mavrik, wh wh why wouldn't it? :( May 05 21:10:38 hey Napalm May 05 21:11:05 g00s: did you sort out the theming? what was that you just mentioned about a transistion problem? May 05 21:11:22 It seems to work with normal adapters, but as you say, I'll just make my own layout, it'll be faster May 05 21:11:36 What's the most realistic/least intrusive way of reading SMS on an Android phone via USB debugging? May 05 21:11:57 So far I've only found that one can read the mmssms.db SQLite file, but it requires root May 05 21:11:58 Napalm yeah i think i sorted it out. i just noticed the first comment here also asked about it http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ May 05 21:12:02 (Joaqium) May 05 21:13:12 Cyril didn't give an answer, maybe if he swings by i will try to ask him :) but the windowDisablePreview seemed to fix it May 05 21:13:25 I also checked logcat, but there doesn't seem to be any info in there about the SMS contents. May 05 21:13:26 i set that in the manifest so it was the 'default' theme for the activity May 05 21:13:38 then onCreate () sets light or dark, seems to work May 05 21:14:25 FrozenFire: you can install an apk that has the sms read permission and then use the am commant to fire a broadcast intent to start a receiver in your app to start a service that would dump the database and then once complete you can install the app from the command line aswell May 05 21:15:27 Well this is weird. Even if I use my own layout with white text, it is still dark May 05 21:15:32 Napalm, That seems much more intrusive. :) May 05 21:15:34 g00s: can you explain the problem.. May 05 21:16:09 FrozenFire: you didn't say "instrusive" to what May 05 21:16:17 i assumed you ment to the end-user screen May 05 21:16:33 but if you mean without changing "bits" on the device, then the only way is root May 05 21:17:05 FrozenFire: i can tell you the most unintrusive way.. but you need to be hooked up in fastboot mode rather than adb May 05 21:17:08 The mile-high overview of what I'm doing is that I will have phones in numerous geographical locations, on several different carriers, and I need to be able to monitor received SMS on them remotely. May 05 21:17:40 The intrusive aspect of requiring root is that the root apps I know of expire the access after a short time May 05 21:17:55 Or rather, if the phone is rebooted or something, you can lose root, which requires physical intervention. May 05 21:18:15 FrozenFire: is it ok to modify the rom? May 05 21:18:16 Installing an apk is intrusive in that it requires me to write a custom apk. :) May 05 21:18:35 FrozenFire: you can add a system service in native code May 05 21:18:36 I honestly know next to nothing about Android. Just looking for a simple solution that I can hack together over USB debugging, if possible. May 05 21:18:57 but i dont get what you mean over usb debugging, if this is suppose to be remote May 05 21:19:22 you would have to plugin the device on usb and have drivers installed May 05 21:19:24 I'm reverse tunneling the ADB server from the system it's connected to, up to a central server May 05 21:19:29 And then aggregating those May 05 21:20:08 The idea will be that employees of my client company will be able to go out, buy Android phones, turn on USB debugging, and plug them in. May 05 21:20:14 adb just doesn't have the access to do this directly, only indirectly May 05 21:20:19 Then the system they're plugged into will just run an autossh service to reverse tunnel it May 05 21:20:23 Mavrik, by the way, isn't it weird that the spinner dropdown is dark, but the text isn't light? May 05 21:21:31 FrozenFire: so, you can do something similar, have them plug in the device, and it will setup modifications in the rom as a one-off.. then the device can report remotely May 05 21:23:58 g00s: is this about the transistion to your custom theme.. and the preview is different because you change the theme dynamically? May 05 21:24:16 Napalm that first comment by Joaquim does a good job May 05 21:24:18 Napalm yeah May 05 21:24:34 theres another way, and you can keep the transitions May 05 21:24:55 i see animations between activities ... May 05 21:25:00 Napalm go on, all ears :) May 05 21:25:09 Hrmm, actually, I may have been silly. SuperSU can actually just grant all root requests May 05 21:25:13 Which would give me the access I need May 05 21:25:15 :) May 05 21:25:21 g00s: your using android's themeing system right? May 05 21:25:28 Napalm yes May 05 21:25:42 Holo light or dark May 05 21:25:47 only the 2? May 05 21:25:51 yes May 05 21:25:55 then its simple May 05 21:26:11 copy your activity entries in your manifest May 05 21:26:16 give them different theme's May 05 21:26:24 but disable the components May 05 21:26:38 now you can enable and disable them dynamically using the PackageManager May 05 21:28:35 Napalm so you would use PackageManager.setComponentEnabledSetting ? May 05 21:29:35 would the manifest then have duplicate entries for each component ? May 05 21:29:48 still trying to visualize May 05 21:30:12 well only for the one(s) you launch May 05 21:30:54 although you could switch them all out and thats your entire theme system May 05 21:31:06 its just a shame you cant have multiple application entries May 05 21:31:26 i don't know why we can change certain things in ActivityInfo or ApplicationInfo at run time May 05 21:31:28 that would be helpful May 05 21:32:07 g00s: heres a quick something i put together that does something similar https://github.com/slightfoot/android-launcher-badges May 05 21:32:31 g00s: you can install the apk directly if you want to try https://github.com/slightfoot/android-launcher-badges/releases/tag/v1.0 May 05 21:33:15 g00s: you can use activity-alias May 05 21:33:20 in your manifest May 05 21:33:26 Napalm awesome, thanks. looking at it May 05 21:33:44 quick question, in the manifest … how come .MainActivity does not have May 05 21:33:56 in mine? May 05 21:33:57 but the aliases do May 05 21:34:08 https://github.com/slightfoot/android-launcher-badges/blob/master/AndroidManifest.xml May 05 21:34:14 because the alias's are the only thing you see in the launcher May 05 21:34:36 infact i dont need any intent-filter on the MainActivity May 05 21:34:37 thats a bug May 05 21:34:42 hm, k May 05 21:34:43 it shouldnt be exportable May 05 21:34:47 only the aliases May 05 21:35:03 then i switch the alias's on/off and the all point ot MainActivity May 05 21:35:53 ok, but quick Q. we can set theme at application or activity. so if we use this technique, even only setting it on the activity, you are saying only the first (launcher) activity needs the alias ? May 05 21:36:15 i don't want to make aliases for 5 activities :) May 05 21:36:29 well you dont need to May 05 21:36:34 ok May 05 21:36:34 i did that for mine May 05 21:36:38 you only double May 05 21:36:44 ones for dark and ones for light May 05 21:36:55 oh, thats all my activities though May 05 21:36:56 you know the other thing you could try May 05 21:37:11 have you tried the day and night mode May 05 21:37:15 i tried crazy things like ApplicationContext.setTheme() hah May 05 21:37:25 you might be better off forcing that in your config May 05 21:37:30 then its only your resources May 05 21:37:32 the day / night mode seems to only work when docked or in a car thingy May 05 21:37:37 its fucking retarded May 05 21:37:54 maybe i misunderstood, i'll have to read it again. May 05 21:38:00 but can you force in in a config change May 05 21:39:17 weird when i google 'android night mode' i don't find much May 05 21:39:23 except http://developer.android.com/reference/android/app/UiModeManager.html May 05 21:39:51 ooo setNightMode May 05 21:39:57 google docs, enter 'night' pulls up nothing May 05 21:40:25 its one of the underutilised sdk features May 05 21:40:36 the javadoc for setNightMode doesn't really say anything at all which would help me use it May 05 21:40:44 maybe why nobody uses it May 05 21:40:58 http://developer.android.com/guide/topics/resources/providing-resources.html#NightQualifier May 05 21:41:24 i'm going to give this a go May 05 21:41:43 is there some 'introduction to night mode' page ? May 05 21:42:02 so basically it comes down to forcing setNightMode, but still now sure without dock support May 05 21:42:26 i'm going to try it, one moment May 05 21:48:55 I'm getting an error about mock locations when the preview pane is trying to show in intellij CE May 05 21:49:16 anyone else get this problem? Can't see the designer or preview of any layouts.. May 05 21:55:04 when I try to open the designer, I get this: May 05 21:55:09 https://www.irccloud.com/pastebin/bpcyxryu May 05 21:58:45 Napalm what would be super cool, is if android had something like 'setConfigurationQualifier(String xxx)' and from that point on, the resource system would look for resources with -xxx May 05 21:59:10 kinda like what setNightMode would do with -night, but more general May 05 22:00:33 g00s: the problem is those qualifiers are compiled i believe May 05 22:00:59 Napalm how is the experiment going :D May 05 22:01:19 Napalm well sure, you may have to decleare what kind of qualifiers you add in some xml file May 05 22:01:20 i enabled car mode May 05 22:01:23 and it went dark May 05 22:01:24 lol May 05 22:01:27 Does the android emulator work inside a Virtualbox guest? May 05 22:01:30 lol May 05 22:01:33 ooo May 05 22:01:38 i get a system notification May 05 22:01:41 never seen that one before May 05 22:02:02 where the f$# is the documentation for this crap May 05 22:02:15 read the src May 05 22:02:38 what is samsung changed the source ;) May 05 22:02:47 steal it May 05 22:02:48 lolll May 05 22:06:26 if ("samsung".equalsIgnoreCase(Build.MANUFACTURER)) { throw new PhoneTooCrappyException(); } May 05 22:06:39 :) May 05 22:08:15 hmm, that could be a some android sport at Google IO.. source code hunting May 05 22:09:05 Napalm romainguy told me a while back something along these lines "Car or Desk mode must also be active in order for that mode to be effective." May 05 22:09:06 "contestants must find and describe how the system handles preview transistions between Activity's, the clock starts now.." May 05 22:09:07 lol May 05 22:09:10 i can't find jack on SO either May 05 22:10:10 haha ! http://i.imgur.com/TOV622U.jpg May 05 22:10:20 g00s: its correct.. to enable the mode it has to be in Car/Desk May 05 22:10:33 look at him over there, just admiring his work May 05 22:10:59 Napalm i don't think this will be useful then May 05 22:11:12 just seeing if theres another way around it May 05 22:19:47 this dock mode stuff is interesting May 05 22:21:24 Heyy May 05 22:21:35 I have a question if someone can help May 05 22:22:41 g00s: it looks like you can swap out the "Home" app when you enter car or desk mode May 05 22:23:00 I am using a cursorloader and cursoradapter to retrieve some data and a timestamp from a Content Provider. In the onLoadFinished() method, I swap out my adapters cursor with the cursor that has the resuts. May 05 22:23:16 However, I want to convert that timestamp to a human readable date May 05 22:23:28 Is this possible? I'm not sure how I can convert the timestamp in the onLoadFinished() method May 05 22:34:52 historypeats: you should be doing in your bindView method in your Adapter by calling a method in http://developer.android.com/reference/android/text/format/DateUtils.html May 05 22:36:02 Ah okay May 05 22:36:14 Napalm: I'm using SimpleCursorAdapter. I guess I should implement my own? May 05 22:36:48 historypeats: you can still use that simply implement the ViewBinder May 05 22:37:03 Napalm: awesome, thanks! I'll take a look at that May 05 22:37:31 historypeats: call yourAdapter.setViewBinder(); to set it on your adapter.. you can do it in your Adapter's constructor May 05 22:38:32 historypeats: return false your fomr setViewValue method and you will get the default binding behaviour for that view/column May 05 22:40:16 Does the android emulator work inside a Virtualbox guest? May 05 22:40:23 Thanks Napalm! May 05 22:40:34 GEEGEEGEE: no, but Genymotion does May 05 22:41:24 GEEGEEGEE, are you trying to run android in virtualbox, or the android emulator in the VM of another machine? May 05 22:41:43 ubuntu inside virtualbox with android studio May 05 22:42:03 im really tight on time so don thave time to try it out May 05 22:42:05 :/ May 05 22:42:34 it'll probably be too slow to be usable May 05 22:44:12 HaMMeReD: yo May 05 22:44:40 scroll up to see my messages at 2:48 pm May 05 22:46:59 g00s: get it working with the component stuff? May 05 22:52:33 "...users may not be able to validate this jar after the signer certificate's expiration date (2041-09-20) or after any future revocation date." May 05 22:52:40 man, i'm going to be one middle-aged dude May 05 22:52:47 in 2041 May 05 22:52:56 maybe there'll be hovercrafts May 05 22:54:42 found a bug in the new NotificationManagerService.. can i be bothered to search to see if its already been reported.. no.. should i report it.. probably not without searching.. sigh May 05 23:01:53 g00s: dude May 05 23:02:16 Napalm yo May 05 23:02:24 ActivityManager#restartPackage May 05 23:02:30 isnt that what you wanted the other day? May 05 23:02:52 oh, yeah - i was using activity.recreate May 05 23:03:03 ignore that.. they changed its behavior May 05 23:03:10 :) May 05 23:03:11 whats that? May 05 23:03:48 "This method was deprecated in API level 8. This is now just a wrapper for killBackgroundProcesses(String)" May 05 23:03:52 just just said May 05 23:04:02 yeah, i think what i have now will work ok May 05 23:04:07 oh sht, didnt know they added Activity#recreate May 05 23:04:10 thats handy as hell May 05 23:04:17 :D May 05 23:04:33 * Napalm notes to self, must remember May 05 23:04:36 hey jug6ernaut May 05 23:04:46 yo May 05 23:05:01 g00s: i'm just looking into a way to change the Configuration on-the-fly May 05 23:05:46 Napalm the technique i used is pretty similar to what they did in the old HoneycombGallery sample app May 05 23:05:56 it should be ok May 05 23:07:19 g00s: what'd you do ? May 05 23:07:48 Napalm can i hate the link to your repo again, just closed the window by mistake and history was nuked May 05 23:07:55 the one with the aliases May 05 23:08:20 https://github.com/slightfoot/android-launcher-badges May 05 23:08:34 thanks, i'm going to book mark that if i decide to switch technique May 05 23:08:54 bankai_au nothing much going on, just added light / dark theme to my app May 05 23:09:08 how are you switching ? May 05 23:09:15 just setTheme May 05 23:09:35 i used windowDisablePreview in the manifest to suppress the flickering, hope it isn't a problem May 05 23:11:04 what i really wanted was a way to say "only red pixels can fire" May 05 23:11:29 i think jeff sharkey did a little poc of that a while ago, but it was a hack May 05 23:12:04 aren't most things on android ? May 05 23:12:14 bankai_au we were playing around with uimanager.setnightmode but couldnt get that to work May 05 23:12:22 (needs car mode or desk) May 05 23:12:22 coz of the car thing ? May 05 23:12:26 ye May 05 23:12:32 what do those modes mean for your app ? May 05 23:12:46 coz you can manually set car mode, can't ya ? May 05 23:14:10 ooo May 05 23:14:19 idea has just struck May 05 23:14:43 Intellij idea ? May 05 23:15:43 why am i unable to install a self-signed .apk on a real device? the debug version of the app was already uninstalled May 05 23:21:03 Mango_Man: i have seen that happen before, but i can't for the life of me figure out how i fixed it. android keeps some weird cache around somewhere May 05 23:21:22 have you given your device a kick to see if that fixes it ? May 05 23:21:24 so it's been twice that ive entered in android and not android-dev <.< May 05 23:22:46 bankai_au: haha, i'll try looking around with adb shell May 05 23:25:04 What about the adb shell? May 05 23:36:54 SimonVT: just injecting Bus in onCreate() and then doing handler.post() on the main thread works fine May 05 23:39:41 bankai_au: ah, i think the problem is that i didn't specify my key info in gradle.build May 05 23:39:47 >_< May 05 23:48:56 JakeWharton interesting, see square app now allows offline. i was at a trailhead the other day and USFS was selling hats / etc; i asked why they didn't have a square reader and no surprise - no connection (although, i found that weird). no excuses any more :D May 05 23:49:33 yep. next time they can't hide May 05 23:50:05 an owl hat is in my future May 06 00:18:09 g00s: yo May 06 00:18:58 g00s: i found a way neat trick May 06 00:19:07 g00s: where are youuuuuu May 06 00:20:00 g00s: updating the current configuration in your attached resources (changing the night/notnight) then calling recreate() actually fucking works May 06 00:20:02 :D May 06 00:21:53 g00s: got my theme based off another style that is selectable via night/notnight to select holo or holo-light May 06 00:21:56 this is cool May 06 00:24:08 fuck yea.. and it persists when you launch another activity May 06 00:26:49 Napalm can you throw a gist somewhere ? May 06 00:27:06 so you are using uimanager ?> May 06 00:27:09 nope May 06 00:27:20 i managed to set night/not-night without it May 06 00:27:23 only for your app May 06 00:27:54 hi :) May 06 00:27:57 g00s: gimme a moment, im still looking at a few ideas May 06 00:30:42 some days ago, I was able to create my very first app for android. It basically only uses WebView in order to display the content of a website. May 06 00:30:53 I could also integrate a "forward & back" function May 06 00:31:04 now, there is one thing which bothers me May 06 00:31:24 I want to check, if there is connectivity to the internet given May 06 00:31:48 and I also want to monitor the conectivity, so that I can react as fast as the connection is gonr May 06 00:31:52 *gone May 06 00:32:31 anyone who would like to help me with that? May 06 00:33:00 Richard82: http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html May 06 00:33:42 hello May 06 00:34:13 anyone on? May 06 00:34:44 thank you Napalm ! May 06 00:34:49 Richard82: i would suggest you register a BroadcastReceiver for action android.net.conn.CONNECTIVITY_CHANGE in onStart and onStop of your Activity in your onReceive method of your BroadcastReceiver you can adjust post a runnable with Activity#runOnUiThread to update the UI May 06 00:36:17 anyone have experience with coding? May 06 00:36:39 Napalm, I would like to show you the tutorial which I used to create what I currently have May 06 00:37:09 Napalm, https://developer.chrome.com/multidevice/webview/gettingstarted May 06 00:37:28 If I understood you right, this would be the wrong way which I did it? May 06 00:37:49 you would pass all requests through a monitoring function? May 06 00:37:54 or did I get it wrong? May 06 00:39:25 Richard82: i see nothing about connectivity in that article May 06 00:39:32 yep, that is my problem :) May 06 00:39:38 Richard82: plus, i think your missing some functionality May 06 00:39:54 i mean to say.. your webView needs you to call other methods when the Activity state changes May 06 00:40:46 Richard82: one moment, think i can show you what i mean May 06 00:41:03 Napalm, maybe it would be good to play "with open cards" and explain what I am up to May 06 00:41:31 sure May 06 00:41:40 Napalm, I am web designer and web developer with a focus on linux/unix systems. Unfortunately, I never learnt Java. May 06 00:41:43 the thing is: May 06 00:41:50 my clients start asking for apps these days a lot May 06 00:42:00 as far as I can see, they all only need webapps May 06 00:42:08 hire an android dev :) May 06 00:42:18 bankai_au, holy crap, I tried that May 06 00:42:34 bankai_au, the results I got back are the reason why I am learning to do it myself May 06 00:42:38 so, I will proceed: May 06 00:43:10 WebApps are basically nothing but a responsive website where I can use all the nice techniques which I am good in (Perl, PHP, JS + it's frameworks, etc...) May 06 00:43:14 Richard82: you hired the wrong people May 06 00:43:29 I was looking for the best (on odesk) May 06 00:44:14 so I basically only want to create "a template" which I can reuse for multiple clients May 06 00:44:46 Richard82: there are plenty of reasons why thats a bad idea and why most mobile apps are native and not "web wrappers". But thats not a discussion for here. So you want help building a "web wrapper" then thats what you get. Just don't be sad when the client comes along and asks for App Features that you can provide because of this May 06 00:44:50 I wonder, if there is no open source template for just such an APP around outside there in the word wide web May 06 00:45:15 phonegap aka cordova May 06 00:45:25 oh phonegap *shudders* May 06 00:45:27 "you can provide" <- did you mean "can't" ? May 06 00:45:54 * Napalm cringes at the mention of "phonegap" May 06 00:45:58 Napalm, what could such a feature be? May 06 00:46:01 app in a Web view May 06 00:46:09 lemme give you an example of a current project May 06 00:46:09 Richard82: yes May 06 00:46:11 that's your solution right there May 06 00:46:11 a restaurant May 06 00:46:11 my bad May 06 00:46:22 Cordova, get it, use it May 06 00:46:25 bye May 06 00:46:30 nooo May 06 00:46:31 noooo May 06 00:46:38 the restaurant wants to offer the guests a "order via app" feature + a "win a price" game May 06 00:46:51 pfn: what was that thing Chrome just released for exactly this May 06 00:46:53 if it's a web app, they can daily change their offer May 06 00:47:04 Napalm, Cordova? May 06 00:47:04 since they have "food of the day" actions May 06 00:47:24 if it's a webapp, they could simply change that online without the need to daily update the APP May 06 00:47:27 oh wait.. its based on Cordova May 06 00:47:28 lol May 06 00:47:50 found it https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/docs/Installation.md May 06 00:48:10 Richard82: sounds like you should start with a simple "web wrapper" May 06 00:48:36 and then if you want access to all the advanced features of the platform move over to Cordova.. its not as straight forward as what you are currently doing May 06 00:49:18 Napalm, ok, at first, I will not carefully read the page which you pointed me to. May 06 00:49:25 After that, I will find out what Cordova is May 06 00:49:33 :) May 06 00:49:34 http://cordova.apache.org/ May 06 00:49:49 sorry, I feel like 15 years ago when I was an HTML newbie :) May 06 00:49:50 thx May 06 00:51:58 Napalm, the software seems to be based on cordova anyway? I just looked through the repository in order to find the Readme.md May 06 00:51:58 https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/README.md May 06 00:52:35 yes May 06 00:52:57 yesssssss, i got my signed .apk to install May 06 00:53:04 but what exactly is this at all? it says much, but also nothing at the end May 06 00:53:07 but you get the breadth of Core JS APIs that chrome apps use May 06 00:53:13 dude May 06 00:53:17 as i said May 06 00:53:24 continue what you are currently doing May 06 00:53:34 then try this at a later date if you really think you need it May 06 00:53:35 Richard82: i remember talking to you a few weeks back about this May 06 00:53:49 maybe it was last week May 06 00:54:05 Mango_Man, yep, I proceeded in the meantime!! May 06 00:54:21 Mango_Man, the app is working, but I want to monitor the network activity May 06 00:56:40 Napalm, well, I cannot see the solution yet, but thank you very much for pointing me to these documentations, I will go through them and find the way May 06 00:57:02 the solution to what? May 06 00:57:57 the solution of getting a shied which says "you are not online - please connect to the internet" May 06 00:58:10 maybe I am thinking stupidly, but I expected it to be something like this: May 06 00:58:32 if(connectivity = online) { app goes here } else { print "please connect"; } May 06 00:58:35 ^ pseudo code May 06 00:58:45 arg, i said what you need to do exactly May 06 00:58:58 all this other crap was well .. other crap May 06 00:59:25 Richard82: i would suggest you register a BroadcastReceiver for action android.net.conn.CONNECTIVITY_CHANGE in onStart and onStop of your Activity in your onReceive method of your BroadcastReceiver you can adjust post a runnable with Activity#runOnUiThread to update the UI May 06 00:59:26 >> http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html May 06 00:59:27 this one? May 06 00:59:27 that one May 06 00:59:34 thank you May 06 00:59:41 did you miss that earlier? May 06 00:59:43 lol May 06 00:59:49 no, I simply did not understand it May 06 00:59:56 1) register a BroadcastReceiver May 06 01:00:02 2) BroadcastReceiver May 06 01:00:09 dont list the damn things May 06 01:00:12 sry May 06 01:00:18 stick them in the SDK May 06 01:00:18 :P May 06 01:00:54 one moment, i'll give you an example May 06 01:02:05 thank you May 06 01:03:12 Richard82: are you going to use an ActionBar in your app? May 06 01:03:22 or have all the UI driven from web May 06 01:03:29 i would suggest you do. May 06 01:03:42 do, have an ActionBar that is May 06 01:03:44 I have the grey bar at the top May 06 01:03:52 I am near sure this is the action bar May 06 01:03:55 yes, thats the one May 06 01:03:59 I liked it May 06 01:04:07 so I can use it later on for displaying a menu or so May 06 01:06:10 anyone ever get System.console() == null in a gradle script? if so, how'd you fix it? it seems to show this even when running gradlew in a terminal May 06 01:06:58 ah, i guess it doesn't work when gradle is in daemon mode May 06 01:06:59 lame May 06 01:07:26 Richard82: sent you a PM so we don't spam up the channel May 06 01:08:13 thank you very much !! May 06 01:10:43 if i use picasso in a listadapter, does it do anything special to not try to dl images if the list is being scrolled? May 06 01:11:57 shigeru: no May 06 01:12:21 It will cancel downloads as they go off screen May 06 01:14:50 when using picasso in that way, is it worth trying to prevent image dl's while flinging? May 06 01:14:58 'or does the cancellation of off screen dls make it neglible May 06 01:15:23 Likely not worth it May 06 01:15:48 We will add a listener in the future to skip downloads when flinging May 06 01:17:23 nice May 06 01:17:40 it should start buffering up and down from current position after the fling if it's not busy doing other things, you would still like to get all the images eventually loaded May 06 01:23:49 bankai_au rx 0.18.2 :D May 06 01:24:22 damn it >_< May 06 01:28:29 does android studio maintain a separate gradle cache than ~/gradle/caches ? i notice if i build from cli everything gets downloaded, but when i go to AS it downloads everything again May 06 01:37:53 does anyone here frequent nyc's android dev meetup? May 06 01:45:37 g00s: are you sleeping? May 06 01:45:54 JakeWharton: are you there? May 06 01:46:19 Always May 06 01:46:23 And never May 06 01:46:40 I have asked question in stackoverflow http://stackoverflow.com/questions/23477013/otto-bus-producing-an-event-twice May 06 01:47:05 I don’t know why otto bus producing an event twice May 06 01:48:13 Two subscriptions request it May 06 01:48:42 I have only one subscriptions May 06 01:49:01 Is the camera in landscape? May 06 01:51:04 I am not sure, I am using detault one May 06 01:51:36 Your app is probably rotating May 06 01:52:29 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); May 06 01:53:37 ok, JakeWharton: let me read about camera and rotation May 06 01:53:42 is it frowned upon to post a SO question here? May 06 01:54:26 tweeeaks: why not? May 06 01:54:54 heh, not sure..welp: http://stackoverflow.com/q/23459109/2329391 May 06 01:55:31 can't figure out whats going on with my SwipeRefreshLayout May 06 01:58:22 anyone here going to the Sydney Android meetup tonight? http://www.meetup.com/Android-Australia-User-Group-Sydney/ May 06 02:00:05 sydney...that's halfway around the world May 06 02:00:20 sydney .... that's a 12 hour drive May 06 02:00:37 you guys just aren't dedicated enough to your craft!! May 06 02:00:41 it's so neat that programmers are the same anywhere in the world May 06 02:02:14 lazy ? May 06 02:02:20 :tweeeaks do you mean, onCreate it doesn’t call getGames() ? May 06 02:03:15 :tweeeaks you didn’t try put getGames() into onResume() ? May 06 02:06:00 kamol: it does call getGames - but when launch the app (via my IDE onto the emulator) MyRestClient.get doesn't fire... but the swipe down works fine, and also if on the emulator i back out of the app (close it) and re-open it works properly on that onCreate - just not the initial one when launching via my IDE May 06 02:06:35 its very odd May 06 02:08:11 tweeeaks: how about in real device? May 06 02:08:45 kamol: i guess thats the next logical thing to try (haven't yet) May 06 02:09:49 :tweeeaks in my case it is opposite. it works in emulator but doesn’t work in real device (which is more important for me) May 06 02:10:09 so, I am a bit suspicious about emulators May 06 02:12:33 just wrote my first line of php...now i see why people hate php so much May 06 02:13:11 OO PHP? it's particularly nasty May 06 02:17:15 weak typing? no integer division? >:( May 06 02:42:15 anyone using ORM? May 06 02:45:07 Are there any common reason why an ExpandableListView with a custom adapter doesn't scroll unless you swipe on the very left part of the list? May 06 02:56:12 this is hilarious: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition May 06 02:58:33 Mango_Man: you would be surprised at how many have failed that fizz buzz test!!! May 06 02:59:27 so i have a GS3 with CM11 on it, and its black listed, so i have a non black listen GS3 that i was to use the imei from, but when i try to access phoneutil using the *#7284# nothing happens! May 06 02:59:29 what to do? **** ENDING LOGGING AT Tue May 06 02:59:58 2014