**** BEGIN LOGGING AT Sun Feb 08 02:59:58 2015 Feb 08 03:05:03 ok so I just got slapped. I know I need these changes. no invalidate, save findviewfromID's, no getRootView's, get common code into methods Feb 08 03:17:13 what should I be using instead of getRootView inside setOnClickMethod redefines? Feb 08 03:20:36 Hello, I am looking for help regarding GLSurfaceView, I am having an issue where I try to move it using an animation, and then move it back the content of the GLSurfaceView becomes a black screen instead of the image that was there. How can I rebuild the GLSurfaceview again, so that it would return the image that was there? Thanks in advance. Feb 08 03:29:11 shame samer4000 didnt stick around, i was about to tell him Feb 08 03:44:50 Should I store a GCM registration ID in SharedPrefs or on my server? Feb 08 03:55:42 t0astt: Shared prefs Feb 08 04:03:37 assuming you're going to push messages from your server, surely you need to have the reg ID there? Feb 08 04:18:10 Your client needs to send the registration id to the server, yes Feb 08 04:18:20 but you need to cache it in your shared prefs Feb 08 04:18:54 man, you're still stuck on the same issue? :p Feb 08 04:19:15 hey Afzal deuteros__ Feb 08 04:19:26 yup, talking to deuteros Feb 08 04:19:30 hey goos Feb 08 04:19:32 what's up? Feb 08 04:19:41 Again, how to implement gcm is documented to death on Google's site and plenty of others Feb 08 04:19:48 Lot of boiler plate but it's really copy/paste stuff Feb 08 04:20:03 there's probably a library :p Feb 08 04:20:17 Good point but I don't think there is Feb 08 04:20:26 Not really easy to capture in a library Feb 08 04:21:09 not sure how good or bad but here https://github.com/ayltai/Android-Lib-GCM Feb 08 04:21:10 :P Feb 08 04:21:11 Afzal h, stuck trying to design something here. i have an rx pipeline i need to implement transactions with, kinda fumbling around on how to do it Feb 08 04:22:09 also, check out these tips on GCM https://blog.pushbullet.com/2014/02/12/keeping-google-cloud-messaging-for-android-working-reliably-techincal-post/ Feb 08 04:22:20 ah, I still have yet to write a project where I use rx properly. Kinda sad Feb 08 04:26:15 I'm still ambivalent about Rx. I want to like it but still on the fence Feb 08 04:26:30 Event bus seems more natural and more decoupled still to me Feb 08 04:31:37 napalm deutros deutros__check out what it looks like now http://pastebin.com/qJv1Cbg3 Feb 08 04:31:50 so sexy :3 I needed a serious slap in the "use for loops" Feb 08 04:34:01 Much better. I’d still recommend putting the views in a field so you don’t keep looking them up over and over again, also don’t if (x==true), just if (x). Also, I think making parameters and locals final is a waste of time and impedes readability Feb 08 04:34:33 TheKarlBrown_: this feels a bit nuts to me Feb 08 04:34:39 but better Feb 08 04:35:12 you just have it so that if you click on one the others change color Feb 08 04:35:15 its a radio selection Feb 08 04:35:48 TheKarlBrown_: http://developer.android.com/guide/topics/ui/controls/radiobutton.html Feb 08 04:36:20 TheKarlBrown_: you just set a background thats a selector to change the colors. you can also get rid of the radio circle drawable. Feb 08 04:36:22 deuteros__ its trading one for of coupling for another form. meilir page-jones had a taxonomy of the types of coupling out there, i forgot the name he gave this Feb 08 04:36:48 will I still be able to send those booleans to other methods? Feb 08 04:37:20 deuteros there is no if x==true, and it has to be final because I must reference them from the new OnClickListener Feb 08 04:37:35 TheKarlBrown_: yes, but you havent explained what your trying to do Feb 08 04:38:10 TheKarlBrown_: Ah right, I take that back Feb 08 04:38:28 I am setting a visual at the bottom with buttons that will process user inputs to filter a mysql database which has been turned into a data object I created rendered through a custom dataadapter I made Feb 08 04:38:29 TheKarlBrown_: http://developer.android.com/reference/android/widget/RadioGroup.html#setOnCheckedChangeListener%28android.widget.RadioGroup.OnCheckedChangeListener%29 Feb 08 04:57:31 Hi. Where is the thumbnail directory for the phone's camera photos Feb 08 04:58:05 Even though there are many photos in DCIM/Camera, my DCIM/Camera/thumbnails is blank Feb 08 05:00:39 panda81: are you sure? Feb 08 05:10:13 Leeds: yes. Feb 08 05:11:09 lol, i typed 'git branch help' and git made a branch called help :| Feb 08 05:14:14 g00s xD Feb 08 05:17:44 can you create drawerlayouts from 2d or 3d strings Feb 08 05:18:00 huh? Feb 08 05:18:01 ie string[][] Feb 08 05:18:10 if you want to Feb 08 05:18:14 why not Feb 08 05:18:21 That's the move Feb 08 05:18:26 move? Feb 08 05:19:30 err, that is the best plan of action Feb 08 05:27:00 napalm I'll just be layering arrayadapters then right? Feb 08 05:27:31 is it at all possible that the value of an EditText with inputType="number" cannot be parsed to an integer? (That is, does not match [0-9]) on my phone it doesn't let me enter characters other than [ Feb 08 05:27:38 0-9] but just checking this is consistent Feb 08 05:28:07 TheKarlBrown_: erm, you could or just extends a BaseAdapter.. or whatever you like.. make a custom view to display whatever you like Feb 08 05:29:32 duncannz: yes, sounds like you incorrectly specified android:digits on your view Feb 08 05:30:22 Napalm: only integer values is the behaviour I want Feb 08 05:31:13 what have you specified Feb 08 05:31:19 hm, this is exactly the kind of stuff i /dont/ want to see playing with kotlin https://groups.google.com/forum/#!topic/adt-dev/vhjDsuQmG7w Feb 08 05:32:32 Napalm: android:inputType="number" Feb 08 05:32:37 I haven't written android:digits anywhere Feb 08 05:32:50 the behaviour I'm encountering is exactly what I want, I'm just checking if it will be like that on all devices Feb 08 05:33:01 well add: android:digits="0123456789" Feb 08 05:33:06 thank you Feb 08 05:45:24 instead of using getActivity to get a data container to my fragment from my activity, I should use an interface instead, correct? Feb 08 05:48:05 TheKarlBrown_: er… not really, why? Feb 08 05:48:13 ignore my autism Feb 08 06:19:09 Just wondering what is the best practice for registering the broadcast receiver for detecting network change, should it be done in the Manifest or should it be done in code. Because if it is done in the manifest, the receiver will fire even if the app is not running which is not very ideal. Feb 08 06:23:49 <_genuser_> hello people. Feb 08 06:31:07 HARRO Feb 08 06:31:39 MohitKanwal: if you want it to wake up the app you should register in the manifest Feb 08 06:32:01 if not, extend Application and do it in the onCreate maybe Feb 08 06:38:03 lol I tried. I tried going without fragments Feb 08 06:38:13 there's just too much I'll have to do Feb 08 06:38:17 Not worth it. lol Feb 08 06:54:31 ugh properly creating a draweritemlist with 2d string array is breaking me Feb 08 07:03:40 thepoosh: thanks shouldn't wake up the app too much I guess. will put it in the onCreate. Feb 08 07:03:49 there you go! Feb 08 07:08:34 g00s: Feb 08 07:24:07 can someone verify something for me? It says that you can't find # of users visiting the play store except through the google flow referral tool in google analytics. Is this true? Feb 08 07:32:12 bilb_ono: yes Feb 08 07:34:49 thepoosh, ok second question: it says that these visitors are only tracked if coming via a referral source in the link to Google Play Feb 08 07:36:11 does this mean I am totally out of luck if I want to track direct traffic to my play listing? Feb 08 07:36:26 yup Feb 08 07:38:39 Leeds, how about visits via people pressing an nfc tag? Feb 08 07:38:46 any possible way I can track that? Feb 08 07:40:30 just write a good app and people will come Feb 08 07:40:36 goo.gl bilb_ono Feb 08 07:41:02 you will see the number of click Feb 08 07:41:15 deuteros: that is just not factually true Feb 08 07:41:22 and with the url, you can make a qr code Feb 08 07:46:23 I want to update a BLE characterstics .. what is class>method used for this Feb 08 07:46:35 hey, is there a way to create swipe tabs with tabs that aren't part of the actionbar? Feb 08 07:46:40 I am using BLE gatt example by google Feb 08 07:47:38 seriously? BluetoothGatt. writeCharacteristic Feb 08 07:48:55 gaganchd2000: you can only call it from one of the BluetoothGattCallback methods or its not thread-safe Feb 08 07:50:02 Napalm.. thanks let me try that once again Feb 08 07:51:25 anyone ?:) Feb 08 07:52:24 joroci: maybe getActionBar.hide(); Feb 08 07:52:30 getActionBar().hide() Feb 08 07:53:41 but can i locate them where i want instead of the top? Feb 08 07:53:48 or probably use pagertabstrip Feb 08 07:54:00 ya i think with pagertabstrip/pagertitlestrip Feb 08 07:54:06 https://developer.android.com/samples/SlidingTabsBasic/index.html Feb 08 07:54:12 you probably want that joroci Feb 08 07:54:28 Download link in top right Feb 08 07:54:39 project link to read source Feb 08 07:54:43 thanks Feb 08 07:55:08 you just need SlidingTabLayout.java and SlidingTabStrip.java Feb 08 07:55:16 and you can drop them as a view anywhere in your layout Feb 08 07:55:55 will BluetoothGatt. writeCharacteristic will work for LE devices also ? Feb 08 07:57:10 gaganchd2000: thats what gatt is Feb 08 07:58:00 napalm I deeit it :3 nagivation bar and another tab is done betch Feb 08 07:58:09 Okies... I see android.bluetooth.le also Feb 08 07:58:13 got suggestions for non-intrusive search bars Feb 08 08:01:09 is there an application which contains all examples from the official site developer.android/samples ? Feb 08 08:06:31 Napalm is it possible to use static number of tabs without the slide? Feb 08 08:06:49 yea just create some views Feb 08 08:06:49 lol Feb 08 08:07:08 with a background selector Feb 08 08:07:21 you can even use a RadioGroup to make it ultra simple Feb 08 08:08:08 no, i mean when i set it for 3 tabs it's not taking the whole width Feb 08 08:09:15 i want it look like this http://i.stack.imgur.com/LwNJT.png, just no in the top Feb 08 08:09:18 not* Feb 08 08:13:15 so is that possible? Feb 08 08:13:17 joroci: yes you can change that.. i forget where Feb 08 08:13:19 just look Feb 08 08:13:46 ok i'll search Feb 08 08:13:51 joroci: hang on? thats taking up the whole width Feb 08 08:14:02 what are you asking? Feb 08 08:15:14 joroci Feb 08 08:16:03 Napalm i never did figure that out ... if the user wants to write something to the device, no way its gonna happen from the binder thread Feb 08 08:19:45 hey g00s Feb 08 08:19:49 im off, laters. Feb 08 08:19:55 gnight Feb 08 08:37:52 sorry naplam was afk Feb 08 09:13:38 using intens i opened the gallery where the user can select an image ,the getData() onActivityResult() guves "content://com.android.providers.media.documents/document/image%3A3790" Feb 08 09:13:47 just wondering how to get relevant details now Feb 08 09:13:52 so that i can use the image Feb 08 09:15:14 Anyone know a good example of a list with drag to reorder and delete functionality? Feb 08 09:15:31 shmoon_: you have to use Cursors Feb 08 09:16:08 shmoon_: think you use mediastore Feb 08 09:17:01 I used this Action Bar Style generator tool: http://jgilfelt.github.io/android-actionbarstylegenerator and copied the files into my project, changed AndroidManifest.xml so that , but still nothing has changed in my app Feb 08 09:17:05 any steps I missed? Feb 08 09:17:29 oh and I renamed styles_mytheme.xml to styles.xml, not sure if I needed to do that. but it didn't work either way Feb 08 09:18:49 hey Feb 08 09:19:11 hey Feb 08 09:19:15 To implement latest version of Analytics it says this: "If your devices are running Google Play Services, add the following meta-data tag as a child of the element:If your devices are running Google Play Services, add the following meta-data tag as a child of the element:" Feb 08 09:19:35 I assume almost all the devices will run Google Play Services Feb 08 09:19:45 but what would happen with the remaining few? Feb 08 09:20:12 Quacked: I believe a pop up appears saying "you must install Google Play Services" and the only buttons are Download and Exit Feb 08 09:20:33 that's based on my experiences when I used to use a phone that didn't have the storage space to install gplay services :) Feb 08 09:21:00 whats to benefit from implementing it then? Feb 08 09:21:12 implement gplay services? Feb 08 09:21:27 Feb 08 09:21:42 It says to add that if your devices are running Google Play Services Feb 08 09:21:53 but it says nothing what happens if you dont add it Feb 08 09:21:55 hmm Feb 08 09:22:12 https://developers.google.com/analytics/devguides/collection/android/v4/#manifest Feb 08 09:22:21 I just add it, myself. but I'm not sure what would happen Feb 08 09:23:08 ok thanks Feb 08 09:24:46 Quacked, that's why you have to check if play services are installed before you start calling them Feb 08 09:24:53 Quacked, the first example shows exactly how it's done Feb 08 09:25:31 hmm i'm confused, how do you use actionbar tabs if action.setNavigationMode is deprecated? Feb 08 09:25:40 Mavrik, aha Feb 08 09:26:08 joroci, you don't, you make your own Feb 08 09:26:56 my app doesnt use any other google service so I'm tempted to skip that line Feb 08 09:26:57 what do you mean? Feb 08 09:28:04 i thought i need to use PagerTabStrip but i want it to look like actionbar tabs Feb 08 09:35:57 anyone seen a material design app where the actionbar is tall and contains a video? Feb 08 09:38:08 no but that is a cool idea Feb 08 09:38:15 maybe play store Feb 08 09:49:59 why does my custom activity not have positive or negative clicks :[ Feb 08 09:50:52 nvm Feb 08 10:36:32 Where exactly in the onCreate method should "requestWindowFeature" be placed? I was placing it after super.onCreate and before setContentView and it would error saying it must be called before adding content Feb 08 10:37:52 Utils, it depdends if you're using appcompat or not Feb 08 10:38:01 since appcompat will call setContentView in onCreate Feb 08 10:38:09 usually putting it before onCreate is a good idea Feb 08 10:39:16 doesn't supper.onCreate have to be called first? Feb 08 10:39:34 I placed it before super.onCreate and it did not cause any errors... but it still isn't doing what I aimed. Feb 08 10:39:53 "requestWindowFeature(getWindow().FEATURE_NO_TITLE);" it still has a title bar, however there appears to be an options menu (Came default when you create a blank activity in the latest android studio) Feb 08 10:40:20 Not sure if that would be the problem or not. Feb 08 10:42:07 Na, removed the menu and the title bar still comes up, weirdly enough. In activity_main.xml, I also have "android:theme="@android:style/Theme.NoTitleBar"" but the title bar persists. Feb 08 10:42:59 raz86, what do you mean scan qr code of url? how does this help me track? Feb 08 10:46:03 Utils do you have a style overriding the style you are looking at? Feb 08 10:51:23 Well... I have a a radialback.xml, this contains a shape with a gradient. I still have menu_main.xml which as far as I know isn't being used now which has a menu and an item. I do however have a styles.xml which contains a style tag with a parent pointing to Theme.AppCompat.Light.DarkActionBar Feb 08 10:51:38 I cana't get custom vieuws to work in android studio Feb 08 10:51:51 And there is your answer Mavrik, apparently I'm using AppCompat Feb 08 10:52:18 It gives this error: "" Feb 08 10:52:41 I don't want the actionbar hidden on all activities, but a couple of them I do. Feb 08 10:52:49 The following classes could not be found: com.flaghacker.customvieuwtest.PeChart Feb 08 10:52:50 hmm, Realm is kinda neat to use for a simple data storage Feb 08 10:52:51 or title bar, whichever one it is actually called. Feb 08 10:53:09 When I click on Crete class, it says "Class already exists" Feb 08 10:53:14 Really weird... Feb 08 10:56:03 Oh, I see an AndroidManifest.xml too... the Application has a theme of @style/AppTheme and the activity doesn't have a theme specified ... Feb 08 10:56:08 Themes everywhere, man! Feb 08 10:56:12 Anyone? Feb 08 11:04:26 ugh. I editted the AndroidManifest.xml file and I placed in android:theme, and it said no resource found that matches the given name. I removed it, debugged and it comes back automatically now. omg. Feb 08 11:05:33 sounds like you edited the generated manifest which should not be edited Feb 08 11:06:13 probably but it's the only .xml file I have which has an activity tag to append my theme? Feb 08 11:10:29 I managed to undo... got that sorted. but now the app loads on my device but I get an error saying that I need to use Theme.AppCompat or descendant... but I don't know where I went wrong with that. I don't have a theme set anywhere now except in styles.xml and one referencing it from AndroidManifest which was defaulted. Feb 08 11:10:42 why is theming so difficult Feb 08 11:10:45 Hi all, can any one help to find where(in which file) exactly in contacts app the blacklist is implemented ? Feb 08 11:11:35 Oh, I think that was an old debug message. Feb 08 11:13:15 Ok lets start from the beginning. If I wanted to specify a theme for a single activity, where would I place that theme? Feb 08 11:13:19 When was the "Photos" app released? Like which Android version was it shipped with? Feb 08 11:13:46 Utils, you specify it in styles.xml (let it inherit from AppCompat theme), and then you set it in the manifest Feb 08 11:14:21 Feb 08 11:14:24 Ugh. reddit changed their terms so that API clients have to use OAuth 2 now. Feb 08 11:14:36 or in the application tag if you want to set it for the whole app Feb 08 11:14:53 danijoo: ok so what if it's a generated manifest which I believe it is? Feb 08 11:14:58 can an interface in one fragment convery information to another fragment Feb 08 11:15:01 directly Feb 08 11:15:26 im using mListener = (NoticeDialogListener) activity.getFragmentManager().findFragmentById(R.id.tab_search); and I think that its hella fucked Feb 08 11:15:31 because my mListener calls are all weird Feb 08 11:15:45 Utils, if you believe it is, its not Feb 08 11:18:08 danijoo: uh... well it kept reverting and it did display a warning saying that it should not be editted... however it doesn't show that warning anymore... Feb 08 11:18:17 TheKarlBrown_: One Fragment calling another directly is probably really bad design. Feb 08 11:18:38 shit Feb 08 11:18:39 They're intended to be independent entities which might even be reused in other contexts. Feb 08 11:18:51 I just spent 5ever designing this Feb 08 11:19:00 The general idea is that you call back to the listener *Activity*, and the Activity notifies the other Fragment. Feb 08 11:19:08 Utils, you just clicked the wrong file. Feb 08 11:19:18 yeah yeah yeah im the face of autims Feb 08 11:19:21 autism :3 Feb 08 11:19:31 It shouldn't take long to change. Feb 08 11:19:44 As far as I can think (for any problem in this category). Feb 08 11:19:51 danijoo: pretty sure it was the one I'm in now: app/manifests/AndroidManifest.xml I've kept the file itself open so it's definitely the same one. Feb 08 11:19:57 Utils, there are 2 manifests in your project. One that should be edited by you, and one that gets created everytime you build the app (it includes your edited). Feb 08 11:20:11 I KNOW WHAT TO DO Feb 08 11:20:12 if you edit the latter one, your settings will get overwritten when you build the next time Feb 08 11:20:16 then I have no clue where the other one is lmao Feb 08 11:20:46 Utils, is it gradle or ant project structure? Feb 08 11:20:53 It is gradle, danijoo Feb 08 11:21:48 then the one you should edit usually is at src/main/ Feb 08 11:22:04 at least if you dont changed that manually Feb 08 11:22:42 I don't have a src folder Feb 08 11:23:21 The base folder is app, then I have manifests, java and res. Inside res I have drawable, layout, menu and values. Feb 08 11:24:02 Oh wait... thats in the project structure, the actual file path is different. Feb 08 11:24:50 app/src/main/AndroidManifest.xml is apparently the one I have open and have always had open... lol sorry I'm all over the place. Feb 08 11:25:19 So if that's the one I should edit... what in earth was I editting before... Feb 08 11:25:34 yes thats the one. Feb 08 11:25:37 you edited the generated Feb 08 11:25:46 which got overritten every time Feb 08 11:26:00 (thats why the IDE told you that you should not edit it ;) ) Feb 08 11:26:19 no one will tell me what i should or shouldnt do! Feb 08 11:26:47 So ... where the hell is the other one that I "should" edit? and howcome I can edit that AndroidManifest without any warnings etc now? it doesnt' get overwritten anymore. Feb 08 11:26:55 I've killed my manifests. :( Feb 08 11:27:08 reddit is clamping down hard. Feb 08 11:27:10 "You may not use "reddit" without "for" preceding it." Feb 08 11:27:14 (In an app name.) Feb 08 11:27:55 Damn. Also need a licensing agreement now if a reddit app shows ads or makes money. Feb 08 11:27:59 src/main/AndroidManifest.xml is the one you should edit Feb 08 11:28:24 that's... the one I just said and you said it was auto-generated? Feb 08 11:28:35 no I said the other is auto generated Feb 08 11:28:45 I have no idea where that other one is then... Feb 08 11:28:45 the one you edited before Feb 08 11:28:53 It was the same file I'm sure of it Feb 08 11:29:02 you should not care about the other one anyways ;) Feb 08 11:29:16 ind Im sure it was not the same :p Feb 08 11:29:48 This is really bothering me... if it's not the same one... how did I get it up and where did it go lol Feb 08 11:30:54 you get it up by clicking on the error message in the IDE Feb 08 11:31:05 this sometimes opens the generated one (which is dumb, yes) Feb 08 11:31:15 but at least it shows a warning then ^^ Feb 08 11:32:58 Hmm... that makes sense come to think about it. I did edit it successfully, but I had an error and maybe that popped it up and I thought it was the same one but it wasn't... so confusing. It makes it look like "I just editted this... and now you're telling me I can't? Why?!" lol Feb 08 11:33:14 but ok at least I got that cleared up and I don't have an action bar anymore. Feb 08 11:35:44 hi Feb 08 11:36:09 is there any way to use classes from an apk in a regular java program? Feb 08 11:47:41 is it bad programming practice to create a datadapter in a fragment using new DataAdapter(ib,getActivity()); Feb 08 11:50:17 I am trying to follow the "Big nerd ranch" book using Android Studio. Using Ubuntu 14.10 64 bit. I am able to run the first program and see it on the emulated phone, but I am unable to locate the "R.java" file for the resource ID's. It should be located under a build folder but I don't see any. When running "make project" Gradle finishes with no errors. Am I having a problem somewhere, or is there really no R.java file in Feb 08 11:50:17 Android Studio? Feb 08 11:56:54 hi any developers from india Feb 08 11:56:55 :) Feb 08 12:04:32 Is it possible to have the Palette load everything? For example, some things do not show up such as Shape, and Activity bars etc Feb 08 12:17:47 my android app use facebook SDK, for authentication. For some reason, I would like the user to be able to browse his FB pictures library from my App. Should I ask the permission during the auth (I don't need that permission server side, only client side), or is it possible only using local data ? Feb 08 12:27:27 Is it at all possible to... load the app, a loading circle appears and activity A or activity B may be shown (it will check if a user is logged in, if not, then the login activity etc etc) the history on these must be off. However there should be a history if you are logged in so if you go back, you go back to the members page Feb 08 12:28:02 is something like that possible? I heard about turning off the history but if you click back in another activity it will take you back to the main activity ... Feb 08 12:28:04 um Feb 08 12:28:12 why use an activity B to check that ? Feb 08 12:29:56 Main activity has the loading circle and does a check if you are logged in or not. If you are, Activity B will be the members page, and Activity A will be the log in screen. When you are logged in, members page should be the furthest you can go back (unless you click log out for example) Feb 08 12:30:00 does that make sense? Feb 08 12:30:37 I thought about adding android:noHistory="true" to the main activity, and activity A. So when activity B loads, that will be first in the stack... but not sure if that would do the job Feb 08 12:37:44 Utils: Doesn't it make more sense for the launcher activity to be the "we're logged in" one (and for the launcher Activity to show a secondary Activity if we're in fact not logged in"? Feb 08 12:38:05 s/"?/)?/ Feb 08 12:38:37 Otherwise, if the user opens the app already logged in, you're always having to show a secondary activity. Feb 08 12:40:33 so at what point would there be a check to see if they're logged in? I'm planning to use Facebook SDK. Feb 08 12:41:20 I guess in MainActivity.onCreate. I don't know exactly what you're doing. Feb 08 12:42:16 Hello =) Feb 08 12:42:41 Can I ask a quick question? Been searching through stackoverflow and googling quite a lot yesterday and today and can't seem to come across a solution... Feb 08 12:43:03 What would you use to authenticate someone inside an AndroidApp? OAuth2.0 through Google API's, or just a simple access to AccountManager class? Feb 08 12:44:20 I don't quite know what I'm doing either. I know what I want to achieve so it's all about just... hoping for the best. Hopefully it'll all start making sense to me after a while. Feb 08 12:45:31 n30m1nd: what are you trying to do? Feb 08 12:45:37 authenticate to a server? Feb 08 12:45:52 thepoosh: yeah, most likely I'm trying to get unique ID's per user of the app Feb 08 12:46:20 then you should decide how do you want to authenticate your users Feb 08 12:46:23 so I was just thinking of accessing AccountManager, list all accounts and get the first ocurrence, and use the e-mail as auth but... Feb 08 12:46:36 what if they don't have any account paired to the device? Feb 08 12:48:08 also authenticating users by just an e-mail is prone to MITM attacks (if no ssl connection is used) by just changing the e-mail sent in the request... so I'm kind of worried but not that much Feb 08 12:48:15 Utils: That's a good sign. :) Means you're stretching yourself. Feb 08 12:49:49 n30m1nd: so you need to have an ssl connection Feb 08 12:50:01 and probably a mechanism for validation Feb 08 12:50:09 or use oAuth2.0 Feb 08 12:50:15 which is a bitch Feb 08 12:50:58 thepoosh: Is it hard to implement, in general? I've just seen that reddit now requires API clients to use it. :/ Feb 08 12:51:03 hmmm, so OAuth2.0 is the way then... it's a pain because of the key making and using the google API is quite a big pain. More when developers.google and developers.android give totally different ways to auth Feb 08 12:51:07 I know almost nothing about it so far. Feb 08 12:51:28 it wasn't intuitive to me at all Feb 08 12:51:32 but that was a long time ago Feb 08 12:51:44 but it's supposed to be very efficient Feb 08 12:51:49 and good Feb 08 12:51:50 and TacticalJoke, to use Reddit you better use an API to access to it. I tried making a bot with python to access reddit without the api and it sure was painful Feb 08 12:52:05 thepoosh: the reddit api or the OAuth2.0? Feb 08 12:52:15 They have a JSON API. Feb 08 12:52:24 (And an XML one {though I doubt anyone uses that}.) Feb 08 12:52:28 no, OAuth2.0 in general Feb 08 12:52:31 i dislike it Feb 08 12:52:49 thanks for the encouragement Feb 08 12:52:52 ;) Feb 08 12:53:36 n30m1nd: I have non of those issues, i have server people here writing the authentication Feb 08 12:53:56 server or severe? Feb 08 12:54:05 server Feb 08 12:54:06 lol Feb 08 12:54:24 lol then I don't understand your statement sorry, what you mean server people? Feb 08 12:54:43 i work in a company Feb 08 12:54:50 we have a server side department Feb 08 12:54:57 then several server people Feb 08 12:55:09 yes Feb 08 12:55:11 ok gotcha then Feb 08 12:55:13 about 8 of them Feb 08 12:55:25 and they don't complain about oauth Feb 08 12:55:38 they wrote a different mechanism Feb 08 12:55:46 with phone number validation and sms Feb 08 12:56:00 how long did it take for them? Feb 08 12:56:25 long enough Feb 08 12:56:28 hmmm, my funds are close to -0¤ so I can't really pay an sms service Feb 08 12:56:31 it was over 2 years ago Feb 08 12:56:35 whoa Feb 08 12:57:14 So for just 1 developer like me, better to stick to OAuth2.0 is what you are in between the lines telling me, right? Feb 08 13:08:11 hello guyz i need some help with my code i am trying to run a method when i click on notification how can i do that http://paste.ubuntu.com/10125632/ Feb 08 13:09:02 s9iper1, pending intent Feb 08 13:10:53 i wanted to call a method instead of pending intent danijoo Feb 08 13:15:48 Hi there, In "Android system recovery" there is an option named "backup user data" what things backup takes? Do backup from my contants, call logs and sms ? Feb 08 13:16:27 mornin' Feb 08 13:18:47 is any one? Feb 08 13:21:43 this is more android development channel Feb 08 13:21:52 you probably want #android-root Feb 08 13:22:14 I'm trying to make an android gui, looking something like this: http://i.imgur.com/EJZrdM8.png Feb 08 13:22:27 My current xml file is this: Feb 08 13:22:31 http://pastebin.com/HpZuLFqi Feb 08 13:22:42 s9iper1, you cant Feb 08 13:22:46 thanks Feb 08 13:22:49 The problem is that the textedit pushes the checkbox off the screen Feb 08 13:22:57 Ho can I fix that? Feb 08 13:22:58 afaik backup using adb doesnt store SMs Feb 08 13:23:48 danijoo actually i wanted to turn off the torch by clicking the notification Feb 08 13:23:49 Flaghacker: you want to fill the edittext leaving the space for checkbox? Feb 08 13:23:54 Yes Feb 08 13:24:25 Like some kind of component list, but vertical instead of horizontal Feb 08 13:24:36 you give editText the weight of 1 and width of 0dp Feb 08 13:24:48 I!ll try Feb 08 13:26:00 Thanks, that works Feb 08 13:26:01 s9iper1, notifications can only call intents Feb 08 13:26:04 for that he'll need to have a LinearLayout I think Feb 08 13:26:05 But why? Feb 08 13:26:06 not methods Feb 08 13:26:33 oops didnt see the xml code Feb 08 13:26:47 danijoo ok than how can i do that ? Feb 08 13:27:29 make the intent receiver call that method Feb 08 13:27:38 : Why does that work? Feb 08 13:28:09 How do I use someones name in my msg? Feb 08 13:28:44 Ashiren: Why does that work? Feb 08 13:29:16 Depends what client you're using, type the first few letters of their name, like flag then hit tab. Feb 08 13:29:28 Might not be tab for you however. Feb 08 13:29:39 Eppiox, does that works? Feb 08 13:29:55 sure does. Feb 08 13:30:12 thanks Feb 08 13:32:54 https://developer.android.com/images/ui/dialogs.png what kind of view is the one on the left? Feb 08 13:33:38 numberpicker? Feb 08 13:40:29 where is R.java located when using Android Studio? Feb 08 13:41:03 slentzen: the same place it is located in any other IDE or not even using an IDE Feb 08 13:43:00 phix, and where is that? Feb 08 13:43:48 slentzen: target Feb 08 13:44:30 then something must be missing, I have no build folder or target in the package explorer Feb 08 13:44:49 slentzen: so compile it Feb 08 13:44:55 rebuld, ant or mvn what not Feb 08 13:45:25 phix, I have, I get no error messages and I can run the app, but there is no build folder to be seen Feb 08 13:45:39 using Ubuntu 14.10x64 and Android studio Feb 08 13:46:13 ok Feb 08 13:47:09 Hi, guys. I am trying to reproduce a background sound when a fragment is shown. Feb 08 13:47:24 I am trying this way: https://gist.github.com/anonymous/6b6595b40767662ccddd Feb 08 13:47:50 If I do something similar using "this" as context in the activity, it works, but I am unable to make it work in a fragment Feb 08 13:48:16 hey can someone help me with this layout http://pastebin.com/FJt2hAFU please? the problem is the name text is too long and it's going under the imageview Feb 08 13:48:16 fcanela, replace "this" with "getActivity()" Feb 08 13:48:43 Other people asked in StackOverflow the same. The answer was to use getActivity() or getActivity().getApplication/BaseContext() Feb 08 13:49:23 but it is not working for me neither, and I have no idea of which path I should take. I do not need a direct answer, suggestion are welcomed Feb 08 13:49:42 danijoo, I tried with getActivity() as first parameter and no sound is played Feb 08 13:49:57 "not working" could mean anything Feb 08 13:50:06 if you look at the code, danijoo, is what I tried last :) Feb 08 13:50:18 Humf. You are right, it's not descriptive. Sorry. Feb 08 13:50:30 It did not reproduced the sound nor gave any error message at all Feb 08 13:50:51 No behaviour observed, just of the lack of sound Feb 08 13:50:53 anyone? Feb 08 13:51:10 joroci: I am someone Feb 08 13:52:03 i agree Feb 08 13:53:26 but can you help me please? Feb 08 13:54:07 joroci: I have a comp sci degree only, if your issue is emotional I am not qualified Feb 08 13:54:28 lol Feb 08 13:55:04 joroci, if the name text is too long for the layout, choose a shorter one, lol Feb 08 13:55:49 the text is just an example Feb 08 13:55:59 i don't know if it will be short or too long Feb 08 13:56:23 joroci: use HTML Feb 08 13:58:07 what do you mean? Feb 08 14:01:37 how will it help? Feb 08 14:08:52 humf, any suggestion about paths that I could try to make it work will be welcome Feb 08 14:09:21 I have no idea about how to debug this or what to try now, people seems to have a solution working with the same code Feb 08 14:13:39 Hi Feb 08 14:14:03 Is google apps for android open-source Feb 08 14:14:19 no Feb 08 14:16:59 ah Feb 08 14:20:36 I want to make a rectangle in my drawer list, like that one in google apps Feb 08 14:20:47 but I don't know how Feb 08 14:23:29 whats google apps Feb 08 14:23:57 It's apps made by google Feb 08 14:24:05 oh. gapps :D Feb 08 14:24:28 faaps Feb 08 14:24:38 no i dont think its open source Feb 08 14:31:06 Okey, I think that I have somehow traced the problem. I set a activity fragment with "setContentView(R.layout.trainingfragment);" in the activity onCreate method Feb 08 14:31:39 But the code of "onCreateView" method in "training fragment" is never executed Feb 08 14:32:02 I placed a debug output and it doesn't show in logcat Feb 08 14:35:27 is the fragment actually shown fcanela ? Feb 08 14:35:54 Yes, it's shown when I call the activity Feb 08 14:36:09 then onCreateView is executed Feb 08 14:37:28 I placed a debug log line and it is not visible, i'm going to test it again placing it in a for to make sure I see it if it's there Feb 08 14:38:12 you inflate the layout in onCreateView. so if its visible, it must be executed Feb 08 14:38:16 something else makes no sense Feb 08 14:40:02 that's why I am asking for help, it's weird. Feb 08 14:40:15 danijoo, I placed 50 output error lines, as can be seen here https://gist.github.com/anonymous/48bfeabfdb3f4b7b180e Feb 08 14:40:45 and they are not showing in logcat Feb 08 14:41:39 cant see you inflating the fragment. is it in the xml? Feb 08 14:42:45 Does anyone know if I can add an idea project as a dependency in android studio? Feb 08 14:42:58 theres no difference between AS and idea Feb 08 14:42:58 danijoo, no, the fragment is not in the activity xml Feb 08 14:43:07 there is Feb 08 14:43:18 The project structure windows looks completely diffrent Feb 08 14:43:27 fcanela, then you dont instantiate the fragment. who should it be shown if you dont create it? Oo Feb 08 14:43:47 oh wait... i see your error. Feb 08 14:44:12 line 17. setContentView(....) wont instantiate the fragment ( I think that is what you think it does) Feb 08 14:44:19 Humf, with other activity I did not need to add the fragments in the activity, just inflated by code Feb 08 14:44:36 yes. inflation creates the views from XML, but not from the java code. Feb 08 14:44:44 aha, then using setContentView doesn't call lifecycle methods_ Feb 08 14:44:56 Aaaaahaaa! Thanks Feb 08 14:44:57 what you need to do is adding the fragment either to your xml or instantiate it by hand Feb 08 14:45:10 for example by fragment transaction Feb 08 14:45:42 danijoo, http://imgur.com/a/9LpBw Feb 08 14:45:54 The first one is android studio, the second intelij Feb 08 14:46:24 yeah. they renamed and styled some things Feb 08 14:46:27 Thanks, danijoo, I'm on path now :) Feb 08 14:46:27 but its the same IDE Feb 08 14:46:37 fcanela, you're welcome :) Feb 08 14:46:37 k Feb 08 14:46:48 How can I set up the dependencies then? Feb 08 14:47:00 Flaghacker, Google just took intellij idea, removed everything that is not android related and released it again Feb 08 14:47:35 And they removeed the dependency stuff too? Feb 08 14:47:47 Flaghacker, I think you must add it as a module Feb 08 14:47:56 never did that though so I cant help you much on that Feb 08 14:49:44 It requires a gradle project, is there someway to convert aIdea project to a gradle project? Feb 08 14:50:52 Flaghacker, there are no idea projects. Its either gradle or ant Feb 08 14:51:11 Idea has gradle as default too. At least if the project is not from Anno 1800 Feb 08 14:51:14 I have my own project Feb 08 14:51:20 It just uses idea Feb 08 14:51:27 has it gradle or ant build in? Feb 08 14:51:39 that depends on what you created Feb 08 14:51:45 it can be one or the other Feb 08 14:51:55 no gradle file => its ant Feb 08 14:52:03 a gradle file => its gradle :) Feb 08 14:52:18 :( not gradle here Feb 08 14:52:27 can I convert gradle to ant then? Feb 08 14:52:28 then its ant Feb 08 14:52:31 sure Feb 08 14:52:43 but ant to gradle would be better. Feb 08 14:52:55 uh yea Feb 08 14:53:19 mistake Feb 08 14:53:27 how can I convert ant to gradle? Feb 08 14:53:34 google it. Feb 08 15:01:05 danijoo, I can't find anything that I understand, I don't know anything about building... Feb 08 15:02:28 Flaghacker, I cant do it for you. there are plenty of guides how to convert ant projects to gradle Feb 08 15:02:32 read up on it and learn Feb 08 15:02:43 ok... Feb 08 15:04:34 danijoo, where are the ant files in an idea project? Feb 08 15:04:51 there are no "ant" files Feb 08 15:04:57 ? Feb 08 15:04:59 huh Feb 08 15:05:06 why are there gradle files then? Feb 08 15:05:15 because its another system -_- Feb 08 15:14:02 I am having some difficulties after updating AS. It now gives me "Error:Failed to find: com.android.support:appcompat-v7:11.+". No change after getting the support respository (and restarting). Any ideas? Feb 08 15:17:02 Should it be '11.0.+'? Feb 08 15:22:57 It appears it does not make a difference. Feb 08 15:36:43 It gets further with "com.android.support:appcompat-v7:18.0.+", but that is not the API level I want. What specifically does it not find? Feb 08 15:43:11 If my app needs to show some permanent information, like onCreate() it does a IF conditional check, and want to say "This device does not support feature X", I guess a Toast is a really bad idea since its transient. Should I use an AlertDialog or a Card or a Label, or something else? Feb 08 15:50:48 I have a TextView over an image Feb 08 15:50:56 smallfoot-: I'm not a huge fan of dialogs, personally. They don't always produce the best UX. I guess your answer depends on the exact implications of the phone not supporting feature X. Feb 08 15:51:01 Like, is the app still partly usable? Feb 08 15:51:08 Is there an easy way to set a dark/light text colour depending on the colour of the image Feb 08 15:51:09 ? Feb 08 15:56:15 TacticalJoke, yeah, I felt a dialog was not good either, cuz then you click it then its gone Feb 08 15:56:27 TacticalJoke, the app is NOT usable Feb 08 15:56:40 notn useable -> dialog and finish() Feb 08 15:57:14 yeah, if it's not usable, why would you want to let the user keep trying to use it? Feb 08 15:57:40 I don't know, to see what it looks like Feb 08 15:57:51 you can also put some hardware/feature requirements in your manifest - it's even better to stop people from installing an app which won't work on their hardware Feb 08 15:58:02 AKK9: I have no idea if it's easier with android but in plain java you could relatively easily calculate the brightness based on the colour of individual pixels. Feb 08 15:58:30 easily as in code, pretty lengthy computation though. Feb 08 15:59:07 I thought there were tools in L to calculate average colours of images so you can match your UI? Feb 08 15:59:21 smallfoot-: so what is it that you require? Feb 08 16:00:07 Hmm, it can't be cpu heavy. Feb 08 16:00:19 I'll look into that Leeds but I need to support API 15 upward Feb 08 16:00:42 Hoping it's not too difficult, need it only to change the colour of some text Feb 08 16:01:02 might be in the support library, not sure Feb 08 16:01:52 it is. Feb 08 16:03:14 Leeds, Vibrate, which is not listed in uses-feature Feb 08 16:03:40 see, now I'm interested in how vibrate could be such a central feature as to render the app useless without it :) Feb 08 16:03:51 cuz its a massage app Feb 08 16:04:04 uh-huh... Feb 08 16:04:22 good vibrations Feb 08 16:04:28 haha Feb 08 16:07:48 "massage". I know what you mean ^^' Feb 08 16:08:18 yes Feb 08 16:08:29 its up to the user to use it at own discretion Feb 08 16:08:48 to remedy any issues that the user may have Feb 08 16:09:01 those pictures.. Feb 08 16:09:17 i have a pink actionbar Feb 08 16:09:27 so actually you need two features... vibrate, and waterproofing Feb 08 16:09:42 Sony Xperia Z2 and Z3 are waterproof Feb 08 16:09:50 also you can put it in a dish glove Feb 08 16:09:59 or in a plastic bag Feb 08 16:10:09 my girlfriend has a Z - no digit - and that's waterproof... Feb 08 16:10:16 great Feb 08 16:10:30 she can beta test my app Feb 08 16:10:41 smallfoot-: Are you able to say for *certain* that the phone doesn't have vibration? Feb 08 16:11:07 In any given case. Just curiuos. Feb 08 16:11:10 curious* Feb 08 16:11:23 TacticalJoke, the Vibrator class has a hasVibrator() method Feb 08 16:11:37 Source: http://developer.android.com/reference/android/os/Vibrator.html#hasVibrator%28%29 Feb 08 16:11:58 I am not sure how reliable that detection is tho Feb 08 16:11:59 I would be tempted to not quit the app, personally. Just a permanent "Unable to start vibration mode" kind of message. Feb 08 16:12:16 I dunno; it just feels weird for an app to quit on the user. What if the user has other phones and wants to check out the UI? Feb 08 16:12:18 How would I show that message? Toast? Card? Alert? Other? Feb 08 16:12:24 exactly Feb 08 16:12:37 You could simply show a TextView in the main Activity or whatever. Feb 08 16:12:52 Yeah, is that a good UX choice? Feb 08 16:13:09 for the optimal Android design guide lines Feb 08 16:13:21 too bad there's no uses-feature for vibrate Feb 08 16:13:25 Not certain. I'm using that for my app (when a download fails, for example). Feb 08 16:13:29 seand, yes, I noticed that :( Feb 08 16:13:43 Though in my app's case it's a temporary problem, of course. Feb 08 16:14:16 I do think a Toast is out of the question. Feb 08 16:14:28 yes, Toast is too transient, it flees Feb 08 16:14:39 I would need something more permanent than a Toast Feb 08 16:15:09 What does the main activity look like when a vibrator (feels weird typing that) has been detected? Feb 08 16:15:22 Right now it has just an on/off Switch Feb 08 16:15:24 but that may change Feb 08 16:15:25 Ah, okay. Feb 08 16:15:28 any UX suggestions? Feb 08 16:15:52 I am thinking about letting the user have ability to program the patterns, but I am not sure how. A comma-separated TextField with integers? Feb 08 16:16:02 I guess a disabled switch with an "Unable to start hardware vibration" kind of message could work. Or no switch at all: just the text. Feb 08 16:16:12 when your app is basically just a big vibrator on/off switch, I wouldn't obsess too much about the UX, to be honest Feb 08 16:16:54 Maybe you could have predefined patterns which could be chosen. Feb 08 16:17:46 I wonder what 'real' vibrators do. :D I'm guessing they have a choice of predefined patterns. Feb 08 16:17:56 they have different modes Feb 08 16:18:06 like vibrate, pulse, etc Feb 08 16:18:16 (i think) Feb 08 16:18:18 haha Feb 08 16:18:19 TacticalJoke, yes, I am thinking about predefined patterns too. But not sure how to expose that functionality. If I hide it behind a Settings activity, then its hard to reach maybe Feb 08 16:18:40 Maybe buttons below the power-toggle button. Feb 08 16:18:41 Yeah, the problem with Android vibrate is that its on/off, and you cant adjust the strength Feb 08 16:19:05 Think of those back-massage-device remote controls. Feb 08 16:19:11 They have a bunch of buttons for different modes and stuff. Feb 08 16:19:34 I am thinking about using the physical Volume buttons as a emergency-off button, because clicking the button in the UI can be tricky when you want it off fast Feb 08 16:19:36 And also a primary power button. Feb 08 16:19:40 Hello. I'm using ffmpeg 2.4.2 for video building on android. It's extremely slow (testing with S4 wich has ARMv7_NEON processor). For all operation I use 'threads 5 -preset ultrafast' wich help a bit to reduce time. What can I do more? Using last version of ffmpeg? Thanks. Feb 08 16:20:10 I would see the UI as more or less a remote control, I think. Feb 08 16:20:16 (If I were the developer.) Feb 08 16:20:26 I mean "the main activity". Feb 08 16:20:30 gdrc: you said it was slow for editing? Are you building a video editor ? Feb 08 16:21:19 shmooz: in a way, yes. Feb 08 16:21:21 smallfoot-: Does it work with the screen off? Feb 08 16:21:57 TacticalJoke, yes, that is the great thing Feb 08 16:22:18 TacticalJoke, many apps don't, but I use a BroadcastReciever to deal with that Feb 08 16:22:21 Battery-friendly. :) Feb 08 16:22:25 yeah Feb 08 16:22:40 also else you're "so close" then the screen goes off, and you get pissed off Feb 08 16:22:46 haha Feb 08 16:22:49 what if you shook it to toggle the vibrate switch Feb 08 16:23:03 seand, that would be cool, but I don't know how to implement that Feb 08 16:23:11 Is the UI not-too-obvious (if someone sees it)? Feb 08 16:23:17 check out seismic, they make it easy Feb 08 16:23:20 seand, also I am not sure that would trigger any false positives Feb 08 16:23:28 https://github.com/square/seismic Feb 08 16:23:40 worth a try, it's like 3 lines of code Feb 08 16:23:45 TacticalJoke, the UI is obvious, its pink action bar, with on/off Switch Feb 08 16:23:53 seand, thanks Feb 08 16:24:46 seand, thanks your suggestion will lead to a better experience and will reduce stress, tension, domestic violence and ovarian cancer Feb 08 16:25:16 smallfoot- hopefully it works with the screen off... otherwise it's probably not better than just a regular button Feb 08 16:25:32 seand, ah the seismic? yeah Feb 08 16:25:36 FYI that project is just a single java file, not sure why they made it an entire project Feb 08 16:25:41 Reduces domestic violence? Feb 08 16:26:15 Hey guys, I'm used the Activity method isDestroyed, and it worked fine on my tablet but now I tested the app in a phone and it says isDestroyed doesn't exist. it was added in API 17, but min SDK in my app is 15 Feb 08 16:26:23 Hmm, JW uses Fest. Wonder whether he realises that AssertJ is better. :D Feb 08 16:26:34 why Android studio is not telling me this? how do I check if I'm using any other unsupported method? Feb 08 16:26:49 Actually, I'm kidding. They seem very similar. (I just like that AssertJ has failBecauseExceptionWasNotThrown). Feb 08 16:29:11 Anyone have any UI suggestions for inserting vibration patterns (which is an array of integers [100, 0, 1000, 100] representing vibe duration, vibe pause, vibe duration, vibe pause) ? Feb 08 16:29:41 I guess I could do a EditField and parse the string as a comma-separated list of integers Feb 08 16:32:21 i would recommend a listview but it's probably overkill because the user probably won't need more than 2 or 3 items Feb 08 16:33:12 true, nobody is going to want a long chain , ithink Feb 08 16:33:13 Maybe a ListView of SeekBars or something like that. Feb 08 16:33:59 No idea whether SeekBar plays well with ListView, though. Feb 08 16:33:59 smallfoot-, seekbars and numberpickers Feb 08 16:34:31 you could let people submit their favourite settings, and crowdsource some defaults for future releases Feb 08 16:35:04 or just use analytics to see what settings people have Feb 08 16:40:37 Does anyone know of any guides to using Bluetooth from jni code? Is it even possible? Feb 08 16:45:46 Hey peeps Feb 08 16:46:46 TacticalJoke, good idea Feb 08 16:47:28 danijoo, what do you mean seekbar and numberpickers? I can't use those together, but I could use one of them, but you mean put either of them in a listview? Feb 08 16:47:37 shmooz: are you experienced with that? Feb 08 16:47:54 Does anyone see all the text on developer.android.com as bold? http://picpaste.com/KZ7R73w9.png Feb 08 16:48:10 I get this problem with chrome running on linux mint Feb 08 16:48:23 I see that page as non-bold. Feb 08 16:48:59 "that page" being . Feb 08 16:50:01 smallfoot-: Are you sure users are willing to put in the effort to create custom patterns? Feb 08 16:50:17 can i ask a question about phonegap/cordova in here? Feb 08 16:50:19 In any case, users might want predefined patterns too. Then again, I am no woman so who knows. :D Feb 08 16:50:32 the question may actually be about ant... i'm just totally lose Feb 08 16:50:34 lost* Feb 08 16:50:51 Ankhwatcher, not bold for me Feb 08 16:51:04 TacticalJoke, no I am not, a pretty cool feature tho Feb 08 16:51:23 whatadewitt: ask the question... Feb 08 16:51:33 TacticalJoke, yes, I am considering predefined patterns too Feb 08 16:52:02 im trying to build the app using the commandline "cordova build android" and i get an error "You may not have the required environment or OS to build this project" Feb 08 16:52:22 the error appears to stem from ~/Library/Android/sdk/tools/ant/build.xml:698: null returned: 1 Feb 08 16:52:46 that line is proguardFile="${out.absolute.dir}/proguard.txt"> Feb 08 16:52:59 and i have no idea what or how that can screw things up Feb 08 16:53:20 and, therefore, no idea how to fix Feb 08 16:55:33 do you have a working proguard? Feb 08 16:56:01 gdrc: no I'm not, I've been reading about it a little , I only use the audio part of ffmpeg right now for streaming shoutcast AAC streams Feb 08 16:56:24 i dont even know what proguard is / is about Feb 08 16:56:28 it was working fine the other night Feb 08 16:56:31 isnt today :S Feb 08 16:56:33 shmooz: ok Feb 08 16:56:41 gdrc: I plan to use ffplay for replacing VideoView later Feb 08 16:56:56 shmooz: how do you invoke ffmpeg? Feb 08 16:58:42 gdrc: I use the aacdecoder lib from google code, which uses ffmpeg as one of three choices, other is OpenCore and AAClib, I use the MultiPlayer to play the streams Feb 08 16:59:05 and baby crying Feb 08 16:59:08 hopefully bbiab Feb 08 16:59:08 gdrc: from here https://code.google.com/p/aacdecoder-android/ Feb 08 17:00:53 shmooz: got it Feb 08 17:21:05 When you have the release version of an app installed on your phone, how are you supposed to run the debug version? When I try to do so, I get an error saying that it's already installed with a different key. Is there a way to have the debug and release versions installed at the same time? Would I have to rename the package? Feb 08 17:22:43 Change package (gradle can handle this for you), or uninstall the release version Feb 08 17:32:00 guys, I have an AsyncTask: protected Boolean doInBackground(String... params) { - how do I pass it parameters? The class declaration is: public class SendSMSTask extends AsyncTask { Feb 08 17:32:13 And the current usage is: AsyncTask res = new SendSMSTask().execute(new String()); Feb 08 17:32:32 I want to pass several string parameters like URL, and data to POST to the server Feb 08 17:33:05 I dont quite understand what does it mean String, Void, Boolean and then String... params Feb 08 17:33:22 read g Feb 08 17:33:36 the docs, it's quite clear Feb 08 17:36:31 How can anyone who doesn't know what basic types are expect to make a multithreaded application? Feb 08 17:37:13 We really need to write up some room guidelines and post the link in the opening message Feb 08 17:37:48 MikeWallaceDev, perhaps you should make a beginner channel? Feb 08 17:39:13 slentzen, this is a beginner (and advanced) Android Dev channel, but we expect people to know how to program and research their questions before posting here. Feb 08 17:40:25 Hence guidelines. They could point non programmers to other channels Feb 08 17:41:03 MikeWallaceDev, of course, but asking good questions also requires some level of knowledges. I had to struggle the whole day with finding the R.java file in Android Studio, after looking at gradle etc. I finally found the problem, but knowing what to ask here was impossible Feb 08 17:42:53 slentzen, that's a different topic (knowing which question to ask), but your question is a totally acceptable question. Not know where R is is very different of not knowing what I String is Feb 08 17:43:30 MikeWallaceDev, agreed. Either way, I would love to see some guidelines with good links to resources one should know Feb 08 17:44:03 http://www.reddit.com/r/androiddev/wiki/index Feb 08 17:44:29 yeah, when I went to the.. err... I think it was the Python channel they have a great guideline. I had all kinds of ressources before I even asked my question! Feb 08 17:44:58 #R also has some good links Feb 08 17:45:01 SimonVT, where would you recommend that we host a Guidelines document that we can link to? Feb 08 17:45:05 MikeWallaceDev, we are good at saying "google it" :) Feb 08 17:45:24 danijoo, I'm a bastard, I'll usually say lmgtfy ;) Feb 08 17:45:33 :p Feb 08 17:45:50 if you want a guidline document, host it at github for example Feb 08 17:45:54 or my favorite sarcasm "You can find more information here: www.google.com" :D Feb 08 17:46:40 I was thinking more of Google Docs... Feb 08 17:46:44 perhaps also some guidelines on how to answer people? Personally I don't mind if people can be a bit harsh in their answers, as long as the answers are usefull. But being arrogant in the tone, and now being able to answer the question is just plain useless Feb 08 17:47:05 On GitHub would be nice Feb 08 17:47:14 slentzen, agreed, good point Feb 08 17:47:26 or maybe reddit Feb 08 17:47:34 you know, like the link i pasted Feb 08 17:47:34 slentzen, but then there are those questions that are faster googled than answered Feb 08 17:48:07 danijoo, would GitHub not be suitable for adding that kind of answers and then always refer to the document there when people ask such questions? Feb 08 17:48:14 I've never used GitHub to host a document? How would we share the link... Oh. Ok, Open the file, and share THAT link, not the project link... I like it. Feb 08 17:48:29 There are ppl that come here, ask a question, you put the question in google, click the first linkt and give them that link. And they are happy with it Feb 08 17:48:45 doesn't have to be anything advanced, for example https://github.com/vinta/awesome-python It is not much more than a list of links but it is highly active Feb 08 17:48:49 I think GitHub is a good idea, we could also post FAQs, and code snippets... Feb 08 17:48:53 MikeWallaceDev, you can host "websites" on github Feb 08 17:48:58 like little wikis Feb 08 17:49:28 I'm more of a BitBucket guy... Feb 08 17:50:24 BitBucket is also fine, as long as people can add to it and it can be accessed in a browser Feb 08 17:51:15 you can make your own BitBucket or BitBucket and host it on localhost with GitLab Feb 08 17:52:25 Either way... I'm creating an account on GitHub now: android-dev-irc Feb 08 17:52:44 anyone familiar with koush's ion library? Feb 08 17:53:26 MikeWallaceDev, nice hopefully it can save me some headaches to read the info there Feb 08 17:53:45 I think it will be good. :) Feb 08 17:53:50 Very useful Feb 08 17:54:08 My head is still hurting over the fact I couldn't find R.java because Android Studio was set to android and not "Project" in the explorer view. A stupid stupid mistake :) Feb 08 17:54:41 hahaha :D Feb 08 17:54:52 I switch often from one to the other Feb 08 17:55:15 seriously, I spent the whole evening yesterday trying to figure out if it was an issue with Ubuntu, perhaps some package missing, or Gradle not working....Nope, just the view Feb 08 17:55:24 I like that feature.... Keeps stuff that is mostly unwanted out of your way but you can still see it if needed Feb 08 17:55:42 find . -name R* ;) Feb 08 17:55:57 why would you need to find that? Feb 08 17:56:10 agreed, it can be a bit overwhelming as a beginner to look at irrelevant folders like .idea when you just want your first "Hello World!" app up and running Feb 08 17:56:26 thats why its hidden slentzen :p Feb 08 17:56:29 has anyone ever worked with an "organization" on GitHub? Seems like a good idea for this Feb 08 17:57:38 MikeWallaceDev please check #github for github questions. thanks Feb 08 17:57:43 Hey guys, does adding too many dependencies to app/build.gradle slow down the app at all? Feb 08 17:58:02 seand, touche :D Feb 08 17:58:10 lol Feb 08 18:01:14 fuck, I created the android-dev-irc account, now I can't call the organization android-dev-irc ! That's dumb. I'm sure most people would create the account using the organization's name... Feb 08 18:01:29 ( seand not a question, just an observation ;) :D ) Feb 08 18:02:00 i was just kidding, i don't care Feb 08 18:02:17 I know, hence the smiles... :P Feb 08 18:03:14 shmooz: I was reading about it. Actually I'm using ffmpeg as command line with a java adapter. I also see that I can invoke it with ndk. But I don't know if it really helps improving performance. Feb 08 18:22:14 drose379: Yes, but I doubt it'll ever make a perceivable difference unless you went crazy. Feb 08 18:22:19 it'd* Feb 08 18:23:14 Does anyone use google play services in their apps? I'm so confused with how to allow the debug and release versions to both work without the infamous "The application is incorrectly configured. Check that the package name and signing certificate match the client ID created in Developer Console." message Feb 08 18:23:52 I have two linked apps... One with the SHA1 code from the release version and one with the SHA1 code from the debug version Feb 08 18:23:58 Yet... I can only run the release version Feb 08 18:24:27 Thanks TacticalJoke Feb 08 18:26:39 Do you have many dependencies, BTW? Just wondering. Feb 08 18:27:46 SilentByte: did you add both the debug and release versions to your API key? Feb 08 18:32:30 hi to all, which are the best way to replace actionbar tab to new system? Feb 08 18:33:08 step one : http://goo.gl/qChbkg (99% copied from the Python group :D ) Feb 08 18:34:17 seand, I just fixed it... I dunno why but my existing linked app with the debug key wasn't showing up under "Credentials" in the developers console. So I added a 3rd linked app, entering the debug key again, and then it worked. Feb 08 18:37:31 gdrc: I'm not sure about performance on android compared to videoview, but it definately supports more file formats Feb 08 18:38:04 gdrc: I think it sucks up much more battery than VideoView would though Feb 08 18:38:10 anyone can help me? Feb 08 18:39:06 gdrc: so if I use it I will only use it for unsupported file formats Feb 08 18:44:59 xan_IT: Is this your question? http://stackoverflow.com/questions/24473213/action-bar-navigation-modes-are-deprecated-in-android-l Feb 08 18:48:06 yes but i have some question about that Feb 08 18:48:53 first: toolbar doesent have tab? i shoud implement manually? Feb 08 18:55:02 oh interesting, the ble callbacks are occurring on multiple binder threads, probably from a thread pool Feb 08 18:55:18 i thought at least i would keep getting the same thread Feb 08 18:58:44 xan_IT: I wish I knew. I haven't used Toolbar yet. But google "android toolbar tabs". Feb 08 18:59:05 Or "android actionbar tabs deprecated". Feb 08 19:00:22 Hi all, can any one help to find where(in which file) exactly in contacts app the blacklist is implemented ? Feb 08 19:04:52 Anyone know how to do a shared element transition between fragments? Feb 08 19:05:58 TacticalJoke, hi, do you know any contacts peers nick ? Feb 08 19:06:01 reddit have changed their API licensing terms. Now, API clients have to use a "for reddit" name and apps that show ads or offer paid versions will probably have to pay a fee to use the API at some point. Feb 08 19:06:50 fascists Feb 08 19:06:56 ythej: No idea; sorry. Feb 08 19:07:06 fasscit Feb 08 19:07:13 Also, API clients have to use OAuth 2. Feb 08 19:07:25 The name change has to happen before April. Should be interesting to see what awful names people come up with. :D Feb 08 19:07:45 "Now for Reddit" Feb 08 19:07:48 "reddit is fun for reddit" doesn't sound good Feb 08 19:07:54 is fun for reddit Feb 08 19:08:29 wonder if they're gonna come out with an official android client Feb 08 19:08:34 since they bought Alien Blue Feb 08 19:08:51 I wonder whether we could name an app "reddit is a registered trademark of reddit inc.". Feb 08 19:09:02 I heard they are. Feb 08 19:09:08 if they would just develop a half decent mobile website maybe they wouldn't have these problems Feb 08 19:10:46 Yeah, their mobile website is so bad it deserves an award. Feb 08 19:15:54 I've been trying for four days to get a project to build that requires gson but nothing I've tried works. It always reports that com.google.gson wasn't found. I keep searching the net for answers and nothing I've seen has helped. My build.gradle file is here -> http://pastebin.com/gWNsr4Xp Feb 08 19:16:20 I didn't write the project. It was done in Eclipse and I've imported it to Android Studio. Feb 08 19:17:01 I'm trying to build it so I can get to the bottom of a bug that prevents the project from running on Android 4.1.1 (it used to run under it). Feb 08 19:21:35 Plugh: Did you paste two different build.gradle files as one? Feb 08 19:21:39 In that pastebin thing. Feb 08 19:21:46 No. Just one. Feb 08 19:22:29 It was an Eclipse project so it doesn't seem to have quite the same directory structure as a project I created from scratch. Feb 08 19:23:08 it doesn't put the java source under app/main. It is at the top level under src. Feb 08 19:27:17 I don't know enough about Gradle to answer for sure. Though FWIW I recently moved from Eclipse to Android Studio and I created a new project and imported the files manually. It didn't take long despite having 50 or so files. Feb 08 19:27:41 I thought that having figured out how to get the ActionBarSherlock and oSMBonusPack modules recognized that the gson one would be easy but its been more difficult than either of the other two. Feb 08 19:27:59 The project structure is such that I have multiple build.gradle files, two of which are each around 50% of your one build.gradle. Feb 08 19:28:03 TacticalJoke: Right. The import process was easy enough. Feb 08 19:29:16 I could restructure the project files/dirs like my other app but it might complicate keeping it in sync with the upstream source in a Subversion repository. Feb 08 19:29:34 If it will only work with the standard dir structure I can rearrange things. Feb 08 19:30:35 TacticalJoke: When you did your import did you let AS do it automatically or did you set up the structure and manually copy the files from Eclipse? Feb 08 19:30:47 I didn't import. I created a new project and manually copied everything over. Feb 08 19:30:52 ok Feb 08 19:33:02 Plugh: Is the Gson import the only problem? Feb 08 19:33:44 It is at this time. I get 101 compile errors that are all related to Gson, or the lack thereof. Feb 08 19:34:26 I could start over and make a new project and do a manual copy of the files to the new project and see if that makes it work. Feb 08 19:34:37 That's funny -- I had 101 compile errors the other day when switching branch. Feb 08 19:34:39 I might have to forego easy syncing with the upstream project. Feb 08 19:34:51 :) Feb 08 19:35:14 Interesting coincidence. Feb 08 19:36:20 Anybody recommend a book for starting andoid dev? Feb 08 19:36:55 gopar: a (small (if one exists)) java book, and developer.android.com . haven't found any good books yet. Feb 08 19:36:59 There's one thing I've noticed. Feb 08 19:37:50 Could you try adding "allprojects { repositories { jcenter() } }" above the "apply plugin" thing? Feb 08 19:37:51 gopar: O'Reilly should have some good ones. I got a copy of the Head First book as part of their end of season offer. Feb 08 19:37:52 Oops. Feb 08 19:38:00 s/jcenter()/mavenCentral()/ Feb 08 19:38:57 groxx, You haven't liked any books on android dev? Feb 08 19:39:32 Plugh, I'll check it out. Last time I bought a head first book I din't really like it Feb 08 19:39:44 I loved Head First Design Patterns. :) Feb 08 19:40:17 TacticalJoke: I'll try that. It looks the same as the first part of the buildScript block. Feb 08 19:40:27 gopar: I haven't read any for a while, but personally most seem too out of date, or too focused on _building something_ rather than _learning how to build something_. so they leave you with very little functional knowledge + a handful of weird trivia that won't help you Feb 08 19:40:32 gopar: Its the only HeadFirst book I have, IIRC. Feb 08 19:41:32 gopar: but yeah. O'Reilly books tend to be decent, and the Head First books I've looked at were... too obsessed with being cool looking rather than having good content, but they did have decent content. not sure what the android-y ones are like, since that's probably partly due to the writer(s). Feb 08 19:41:38 Plugh: The 'buildscript' thing is different, I think. Feb 08 19:41:40 gopar: I also got a copy of Embedded Android, Busy Coders Guide, and one called Android Tutorial. Feb 08 19:41:54 Plugh: how's embedded android? that's been on my curious-but-maybe-later list Feb 08 19:42:17 groxx: Couldn't tell you. I haven't "cracked the cover" of it yet. Feb 08 19:42:30 sadness Feb 08 19:42:35 :) Feb 08 19:42:58 I'll get to it. I found I got enough from the start of Head First that I was able to do my first app for Android. Feb 08 19:43:16 Plugh gotta get to it soon, or it will be obsolete Feb 08 19:43:24 Plugh: I'm also partly interested in it because it deals with porting, which seems likely to cover a good section of what underlies Firefox OS, which I'm also aiming to get into eventually Feb 08 19:43:49 Trying to figure out why this other persons app that used to be compatible with my device, but isn't any more after my tablet came back from repair, is distracting me from the books. Feb 08 19:44:16 g00s: hehe. no kidding with the speed at which things change these days. Feb 08 19:44:53 groxx: Give me a few minutes and I'll take a quick skim of the book after I finish with todays attempts to use gson. Feb 08 19:44:56 I think I stopped reading programming books in the early 2000s. Either I just became wiser about the world or the world started speeding up. Feb 08 19:45:06 (Or both.) Feb 08 19:45:40 TacticalJoke: I look at them when I'm starting out on a new programming language. Feb 08 19:45:45 TacticalJoke you there? Feb 08 19:45:54 Yeah. Feb 08 19:46:08 I thought the build just succeeded until I realized I was just doing a project clean. :P Feb 08 19:46:18 Hey, Im trying to set up a Callback and listener system with something Im doing\ Feb 08 19:46:20 Plugh: re compatible app: let me know what you find, I've got a user who magically lost the ability to upgrade my app :| slowly going through debugging steps, but it's of course slow. Feb 08 19:46:33 And Im setting up the setListener() method Feb 08 19:46:47 And whenever I type the word Listener Feb 08 19:47:02 Its turning red and suggesting I import it from another class Feb 08 19:47:09 But I dont want to do that Feb 08 19:47:10 groxx: yea, I don't understand why this app is no longer compatible. Same tablet, same version of Android. He has the app made to work with Android 2 something and up. Feb 08 19:47:18 You could import Foo and say Foo.Listener. Or you could import Foo.Listener. Feb 08 19:47:48 TacticalJoke: yeah, I've mostly stopped reading them too. my reasons are that most seem to be either for people who have never programmed (but do a poor job introducing it (1,500 page java books, I'm looking at you)), or they're focused on teaching you a niche thing without teaching you the concept underlying it (which would save tons of time (and make a Feb 08 19:47:49 smaller book, thus less $$)) Feb 08 19:48:00 Or if it's the class in which you're implementing the setListener method then I guess the Listener should be a nested interface in that class (and therefore it doesn't need importing). Feb 08 19:48:18 the small dense ones can be very nice though Feb 08 19:48:21 groxx: RIght. Feb 08 19:48:21 you guys are just reading all the wrong books :D Feb 08 19:48:22 Right* Feb 08 19:48:28 Fixed TacticalJoke thaanks Feb 08 19:48:29 g00s: totally a possibility! Feb 08 19:48:30 I'd consider a book for a functional language. Feb 08 19:48:37 groxx: I found the current(?) sources in a svn repo and it dies part way through trying to download some data from the net. Probably some error in database handling I suspect but I can't tell until I can build the app and do debugging. Feb 08 19:48:37 But even then I'd probably just use the web. Feb 08 19:48:49 Plugh: Did my suggestion not work? Feb 08 19:49:07 TacticalJoke: Nope. same problem. Feb 08 19:49:23 For the newcomers, here is Plugh's (single) build.gradle: http://pastebin.com/gWNsr4Xp Feb 08 19:50:25 I was starting to learn Python. I can just pick up a book that shows the basic info and syntax of a language and start using it. I've used enough languages over the years. Feb 08 19:50:44 Yeah, they're all so similar after a while. Feb 08 19:50:55 With the exception (for me) of "purely" or "mainly" functional languages. Feb 08 19:51:02 TacticalJoke: yea, especially with so many having ties back to C. Feb 08 19:51:43 A little bit of functional programming is so easy, but when everything is 'pure' it feels so bizarre to me. Feb 08 19:51:44 C, AWK, Perl, C#, and Java all seem to show a common ancestry Feb 08 19:52:00 Yeah, moving to Java from C# was almost thoughtless. Feb 08 19:52:29 but a bit of a downgrade :( Feb 08 19:52:32 The biggest differences, I think, were the naming conventions. Feb 08 19:52:32 In my case I was doing a little bit of C# so Java looked very similar. Feb 08 19:52:40 Yeah, definitely a downgrade. Feb 08 19:52:45 maybe because c# is heavyly inspired by java Feb 08 19:52:57 I hadn't touched Java since the early days when 1.3 was just released. Feb 08 19:53:06 never thought i would want this - but is there any way to disable the nagging notification for updating android when a system update is available? i'm going to keep 4.4 for a while Feb 08 19:53:07 I had J++ as a kid, but I never used it. haha Feb 08 19:53:14 It just bored me. Not a RAD. Feb 08 19:53:37 Java has changed a lot since then or my work with C# made Java look easy where back in Java 1.2/1.3 days it was too alien for my procedural programming mind. Feb 08 19:53:41 Trying to get up to kotlin now. Feb 08 19:53:44 g00s: Not as far as I can tell. I have to go into All Apps and stop the process (on my Sony). Feb 08 19:53:56 But then it comes back when I restart or when I connect to my computer. :/ Feb 08 19:54:02 g00s: What operating system are you on? Feb 08 19:54:12 i have 4.4.4 on n7 2013 Feb 08 19:54:14 my app is sdk 14+ but i need to use v4 only for viewpager. it's a shit Feb 08 19:54:29 g00s: not that I know of :\ Feb 08 19:54:37 oh TacticalJoke, you asked if there are any problems with using kotlin on android. And I just found one Feb 08 19:54:48 Oh, updating Android itself. No idea how to stop its nagging. My tablet has no other updates available. Feb 08 19:54:54 g00s: why are ya sticking with 4.4? Feb 08 19:55:24 I mean, there are multiple good reasons. just curiosity :) Feb 08 19:55:25 i simply don't hear good things about the reliability of 5.0; word is carriers are not approving updates because the platform isn't passing QA Feb 08 19:55:29 single constructors and custom views dont work well together.. Feb 08 19:55:31 I really like Kotlin, but some of the code ends up being kinda ugly. An example is classes with several properties. Code gets hard to read. Feb 08 19:55:36 I mean the auto-properties. Feb 08 19:55:51 danijoo: Yeah, I heard that default parameters work there. Feb 08 19:55:56 Though I haven't tried it. Feb 08 19:56:27 g00s: fwiw, personally, on a stock N6: I've seen more "my phone has obviously rebooted randomly recently" events than 4.4. I'd say there are pretty undeniably more problems, though to be fair it's still more than stable enough to not really matter. Feb 08 19:56:53 Here's an example of what I mean: http://hadihariri.com/2012/07/21/the-kotlin-journeypart-iii-wrapping-up-classes/ Feb 08 19:57:00 The second code sample is so ugly to me. Feb 08 19:57:05 yeah but super(context, null) *could* be something else than super(context) Feb 08 19:57:10 Though maybe it's an OCD thing. lol Feb 08 19:57:32 danijoo: Ah, that's true. Feb 08 19:58:31 Stupid Android Studio! Why does it have to download gradle-2.2.1 all the time. It has already done that at least a half dozen times. Feb 08 19:58:42 and you have to do a lot of variable!! and variable?. stuff because of the java libraries which kotlin all says could be null Feb 08 19:58:43 "One of the great features of Kotlin is that enums are classes. This can come in very handy when trying to add behavior." <- hopefully they realize that's in normal Java too? Feb 08 19:58:44 Anyone know how I can debug and use DDMS at the same time in Android Studio? Feb 08 19:58:48 TacticalJoke question on my mind is whether the language gives enough back to be worth it Feb 08 19:59:04 I kinda wish enums were not classes in Java. haha Feb 08 19:59:16 enums as classes?? That seems odd. Feb 08 19:59:20 g00s: Ya. Feb 08 19:59:22 for example getContext() you are 100% sure that wont be null, but kotlin forces you to check that with those anti-null paradigm Feb 08 19:59:23 for example, the latest kotlin plugin seems to barf with gradle-plugin 1.1.0-rc - i dont want to deal with that shit Feb 08 19:59:30 never wrote so many !! in my life.. Feb 08 19:59:32 I'm trying to test my location based stuff. Telneting to localhost:5554 and typing in a geo fix xxx yyy doesn't trigger the location listener Feb 08 19:59:32 danijoo: Ah, good point. Feb 08 19:59:35 yeah, all the static ENUM_LIKE_CONSTANT crap is annoying. Feb 08 19:59:42 For whatever reason only doing it through DDMS does Feb 08 19:59:54 Yeah, using a bunch of ints as constants gets so ugly. Feb 08 20:00:03 I guess it's understandable that Android uses that in certain places. Feb 08 20:00:22 ugly and easy to screw up, which is my main issue with them. at least android studio has reasonably strong inspection for that though. Feb 08 20:00:36 the official android site advised ints for a long time, it might even still be there Feb 08 20:00:53 a good excuse to use ints over enums in android is fragmentation Feb 08 20:01:07 afaik it's still there, because it's still correct, because enums are still significantly larger. but they've weakened the claim a bit, since it truly doesn't matter for the vast majority of developers. Feb 08 20:01:13 TacticalJoke: I think you 'jcenter' was correct. I just created a new project so I could start a manual migration and allprojects contains that. Feb 08 20:01:19 s/you/your/ Feb 08 20:01:20 an enum might not be available in the given version of android, and if its passed as an int, you wont get a classnotfound Feb 08 20:01:32 I also hate Java's constant naming-convention. WE_HAVE_AN_EMERGENCY Feb 08 20:01:39 danijoo: you can modify enums without breaking compatibility Feb 08 20:01:52 Plugh: Yeah, they're using that now. Feb 08 20:02:02 I think I read it's faster(?). Feb 08 20:02:28 enum A { X, Y } -> new OS version has enum A { X, Y, Z } -> works just fine. Feb 08 20:02:46 In C#, constants were NamedLikeThis. So nice and easy to read. Feb 08 20:02:53 TacticalJoke: ok. At this point speed is not an issue. Feb 08 20:03:05 groxx, but if you write code that should work on both versions. you cant reliaably pass enum A.Z to a funktion Feb 08 20:03:06 Right. Lol. Just providing background. :) Feb 08 20:03:12 * Plugh nods Feb 08 20:03:32 this would give a enum not found in the old version Feb 08 20:03:34 danijoo: it requires exactly the same kind of code as handling ints. you need a permissive "else" case if you allow extension. Feb 08 20:03:38 while an int will just be ignored Feb 08 20:03:53 So in C# we'd say View.Visible, View.Gone, etc. Simple and easy to read. Feb 08 20:04:01 I've used constants in all caps but that is something I carried over from C Feb 08 20:04:08 Not SomeClass.SOME_OBNOXIOUS_EXTRA. Feb 08 20:04:15 groxx, no Feb 08 20:04:39 one will throw an error, the other will not Feb 08 20:04:53 I also hate that wrong-word-order convention: EXTRA_SOME_OBNOXIOUS Feb 08 20:05:01 MESSAGE_HI Feb 08 20:05:02 Ugh. Feb 08 20:05:29 I have strong opinions about naming. :D Feb 08 20:06:48 Don't most of us? :) Feb 08 20:07:11 TacticalJoke is gradle-plugin 1.1.0-rc2 working ok so far ? Feb 08 20:07:20 hey guys, i have a PreferenceFragment in an Activity and some questions. I simplified a small code snippet and pasted some questions in comments in the code. http://tny.cz/540a1c5a Feb 08 20:07:26 i`d be very thankful if someone could go through these questions with me quickly. i already started talking about this with danijoo and SimonVT, maybe you guys hav a minute for me? Feb 08 20:07:27 Would be also nice to hear if there is something you would do different in general. Feb 08 20:09:24 Yeah, g00s. I've had no issues yet. Feb 08 20:09:28 danijoo: are you removing an enum or something? that'll break compatibility, but adding/reordering is allowed _by the design of Java_. even serialization of a new value in an old library works. Feb 08 20:09:41 Also, thank goodness for unit testing finally. Feb 08 20:09:50 Though it seems impossible to use test resources. Feb 08 20:12:02 adkins1: That paste site is awful. Feb 08 20:12:16 Hard to read, gave me the first on-click popup I've seen in years. ;o Feb 08 20:12:48 TacticalJoke: oh ok, sorry, i thought it was better than pastebin......damn ;) http://pastebin.com/UiGV9tC8 Feb 08 20:13:02 groxx, Im talking about framework constants. like lets say View.VISIBLE would be an enum Feb 08 20:13:35 it could be. java libraries do that all the time. Feb 08 20:13:52 android's reason is that the framework constants are more memory-efficient, which is correct. Feb 08 20:15:01 im not that sure but woudnt it throw an error if lets say View.INVISIBLE woudnt be available on one android version while being available on another (asuming it would be an enum) Feb 08 20:15:09 nope Feb 08 20:15:15 by design Feb 08 20:15:19 TIL :) Feb 08 20:15:42 you can think of enums as classes for pretty much all normal uses Feb 08 20:16:15 you can add fields or methods to classes. you can add values (or fields or methods) to enums. Feb 08 20:16:34 adkins1: Can I ask why you made your fragment class a nested class of the activity? Feb 08 20:16:37 Just curious. Feb 08 20:17:01 TacticalJoke: whats the alternative? Feb 08 20:17:02 Hmm, I guess it kinda makes sense with PreferenceFragment, but I get curious about people's thought processes. Feb 08 20:18:23 A normal top-level class. Feb 08 20:18:37 TacticalJoke: PreferenceActivity? Feb 08 20:19:01 danijoo: you'll have problems if android 1 had View.MOSTLY_VISIBLE and they then removed it, but you'd have problems if you passed that constant to .setVisibility in newer androids too. _that_ is a binary-incompatible change. it's a little more noisy of an error, but that's kinda the point of enums. Feb 08 20:19:07 TacticalJoke: addPreferencesFromResource(R.xml.pref_pageconfig); is deprecated in PReferenceActivity. not an option for me Feb 08 20:19:43 groxx, thats what i meant. for an int you can just ignore it in a switchcase and make removals/additions as you want. Feb 08 20:19:56 <_genuser_> great! storing data safely on android is a .... big mess. Feb 08 20:19:58 adkins1: I mean ConfigFragment. It could be a class in its own file. Feb 08 20:20:03 but I also understand that it might be more because of performance :) Feb 08 20:20:08 they they chose ints Feb 08 20:20:45 For manual migration of a project I have copied the java source and the res files. What else do I need to copy over? Feb 08 20:21:39 TacticalJoke: well i dont know if that would be a benefit. I prefer to have one class for one Activity in preference-cases Feb 08 20:22:14 danijoo: _slightly_. you can ignore additions in switch cases for enums too (in fact, that happens by default, just like for ints). but yes, you can pass the value of the removed-int if it wasn't an enum, and if it were permissive it would just do nothing. Feb 08 20:22:43 on an early version of android I'm getting a Resources$NotFoundException when inflating menu, I assume it's one of the @android/drawables that doesn't exist yet, but how do I check the minimum SDK versions of those icons? Feb 08 20:22:43 So I create a GitHub account for the channel (android-dev-irc) and I'm working on a Welcome document for newbies. I'd love your opinion on it : http://goo.gl/kP0vzt Feb 08 20:23:08 I mentioned it to SimonVT in a private chat, but he's not around. So it's nothing official yet Feb 08 20:23:23 Think of it as a bill that we want to make into law :D Feb 08 20:23:23 danijoo: but you don't make java libraries like that. and android doesn't remove those values anyway. _and_ I'm not certain that removing e.g. View.MOSTLY_VISIBLE would actually be safe in Java, though in practice it probably works. Feb 08 20:24:04 altcp, which icon is it? Feb 08 20:24:12 I don't know Feb 08 20:24:25 it must be one of the @android:drawables Feb 08 20:24:41 pastebin FTW! Feb 08 20:24:55 I'm testing on an emulator with API level 5 Feb 08 20:25:08 are @android:drawables at all guaranteed to be the same image, or even the same size, on androids? Feb 08 20:25:16 woah, 5? Feb 08 20:25:16 I know that's very early, but I'd like to keep it that way because everything else of my app works Feb 08 20:25:52 well, they're not guaranteed to be the same image AFAIK.. so some (or all?) of them might just not exist on level 5 Feb 08 20:26:17 yeah altcp Feb 08 20:26:27 altcp: I haven't browsed it in detail, but does this show the right versions? http://developer.android.com/reference/android/R.drawable.html Feb 08 20:26:51 actually, I have an app that can help with that... resEnum. It will tell you which resources are available for you Feb 08 20:27:06 <_genuser_> anybody got their favorite thread-safe queue recommendations in java? currently looking at ConcurrentLinkedQueue Feb 08 20:27:16 <_genuser_> I know JakeWharton would say use tape. Feb 08 20:27:27 groxx: thanks, that's actually what I was looking for (because the versions are displayed) :P Feb 08 20:27:36 but.. all the icons I'm using are available sinds API level 1 Feb 08 20:27:53 altcp, you should never rely on system icons Feb 08 20:27:54 so the Resources$NotFoundException isn't solved.. Feb 08 20:28:02 why not? Feb 08 20:28:06 because phone manufactures are assholes Feb 08 20:28:14 tru dat Feb 08 20:28:25 and if samsung decides that an icon is ugly, they might replace/remove it Feb 08 20:28:27 altcp, you can set the API level on the upper left to 5, whatever is not available will be greyed out Feb 08 20:28:34 but yeah, in general avoid @android:anything. Feb 08 20:28:39 _genuser_: i might not. Tape serves a very specific use case. Feb 08 20:28:51 danijoo: do they actually remove some? that would be very assholeish of them Feb 08 20:28:53 MikeWallaceDev: as I said, I did, but they should be all available Feb 08 20:29:06 seems like that should break the compatibility tests (if they test for that (maybe they don't)) Feb 08 20:29:26 groxx, motorola did that once. at least I got a problem on one phone with constant ResourceNotFound Feb 08 20:29:27 I haven't seen a custom system icon on samsung devices so far.. Feb 08 20:29:32 ick. Feb 08 20:29:36 <_genuser_> JakeWharton: I see. I guess I'll with ConcurrentLinkedQueue since my only requirement is that it be thread-safe. And I didn't want to link in yet another lib. Feb 08 20:29:44 but in any case, why does it crash on vanilla android 5? Feb 08 20:29:45 <_genuser_> *go with Feb 08 20:30:24 _genuser_: what is tape? my google-fu fails me :| Feb 08 20:30:45 danijoo: wow, I guess I'll add my icons in resources then :P Feb 08 20:31:07 <_genuser_> groxx: http://square.github.io/tape/ Feb 08 20:31:23 (on a side note: the application icon also isn't showing on android 5, another indicator that resources isn't working too well..) Feb 08 20:31:47 altcp, it also helps because you can be sure it looks the same on all phones :) Feb 08 20:31:55 yup Feb 08 20:32:41 I was using a custom fullscreen icon (because android:drawable doesn't have that), so there's already a slight inconsistence visible :| Feb 08 20:32:57 Guys, did you take a look at the document: http://goo.gl/kP0vzt ? Feb 08 20:33:13 Your feedback would be appreciated Feb 08 20:33:16 http://www.flaticon.com/packs/material-design all google material design icons Feb 08 20:33:43 MikeWallaceDev: that looks like a useful link centre Feb 08 20:34:28 _genuser_: tape is not only thread-safe, it's atomic and durable to the file system Feb 08 20:34:49 danijoo: do you think I should use these for all android versions ever? or adapt to maintain UI consistency? Feb 08 20:35:35 altcp, you can have material look on all android versions (or at least all relevant) Feb 08 20:36:03 how so? Material theme is only since API 21 Feb 08 20:36:09 AppCompat Feb 08 20:37:28 ffs Feb 08 20:37:45 bloody Nexus 9 just crashed while transferring a file over usb Feb 08 20:37:56 well I'm gonna keep using OS' available theme for consistency :P but thanks anyway Feb 08 20:37:58 altcp, thanks. I hope that I can get more guidelines for newbies. How to act on the channel Feb 08 20:38:22 and by crashed I mean hte tablet restarted Feb 08 20:38:29 <_genuser_> JakeWharton: and only 20Kb. I might just look into using this instead of ConcurrentLinkedQueue (altho, I think it does the job). I just like heavily tested codebase. Feb 08 20:38:45 danijoo, Added that icon library to the document :D Feb 08 20:38:59 : > Feb 08 20:40:56 MikeWallaceDev: handy. guidelines seem about right to me :) Feb 08 20:41:23 specific to picasso though, I think it does no caching? Feb 08 20:41:25 thanks. :) But I need criticism here to make it better! Feb 08 20:41:42 THAR BE SPELLING ERRRS Feb 08 20:41:42 groxx: it does memory caching. HTTP client does disk caching Feb 08 20:41:45 I'm adding a "we don't do rooting" part :) Feb 08 20:41:48 ah, true, memory Feb 08 20:41:59 <_genuser_> MikeWallaceDev: mike wallace. I've heard that name before. are you well known for something? Feb 08 20:42:15 I'm amazing in bed... could be that. Feb 08 20:42:24 perhaps you are well known for sharing a name with other people who are well known? Feb 08 20:42:29 I know Mike Roch Feb 08 20:42:32 Mike Wallace was a news reporter... Feb 08 20:42:47 until he became an android developer... Feb 08 20:42:51 groxx !!!! HAHAHAAH I love it!! I will steal that :D Feb 08 20:43:08 <_genuser_> MikeWallaceDev: lol!! I was thinking I might have heard "Mike Wallace" online for some code contributions, etc. but then again it's uncomfortable asking someone if s/he's well known. Feb 08 20:43:12 "Until he became an Android devloper" can explain almost anything. Feb 08 20:43:19 He was a law-abiding citizen... Feb 08 20:43:29 heh Feb 08 20:43:39 _genuser_, I've been in Android since the beginning... I get around... Feb 08 20:43:41 I guess "He was always so happy and cheerful" is a bit more mundane. Feb 08 20:43:42 <_genuser_> MikeWallaceDev: how does one respond to that without sounding narcissistic. ( Feb 08 20:43:46 he used to pay taxes in just one jurisdiction... Feb 08 20:44:00 <_genuser_> MikeWallaceDev: then I might have just seen you around here before. Feb 08 20:44:01 He used to go outside.... Feb 08 20:44:04 he used to not tell people on the internet his home address... Feb 08 20:44:07 I would use "but everything changed when the fire nation attacked", but I fear that isn't as widely recognized outside my IRL social circle :) Feb 08 20:44:38 He had a social circle... Feb 08 20:44:45 My name is Michael Wallace, I used to be a spy unil... Feb 08 20:44:53 *until Feb 08 20:45:15 Now I need to eat... Feb 08 20:45:16 ^ I'll just read that as "but spies get killed the instant they make a spelling error" Feb 08 20:45:17 That always sounded wierd to me in the intro to Burn Notice Feb 08 20:45:31 oh, And he used to eat at lunch time... Feb 08 20:45:42 wat. ain't nobody does that. Feb 08 20:45:45 i need to bite the bullet and stop putting off learning sqlite Feb 08 20:45:46 I wonder what reddit-app devs whose apps show ads or have a pay-for version will do when reddit starts charging for API access. Feb 08 20:45:53 groxx: lol Feb 08 20:46:05 (For the record... it's 15.45 here... sigh...) Feb 08 20:46:31 yeah but it's sunday Feb 08 20:46:35 you got up late Feb 08 20:46:42 I did :( Feb 08 20:46:50 there you are then Feb 08 20:46:52 wait... Who's the spy now??? Feb 08 20:46:57 lol Feb 08 20:47:09 <_genuser_> heavy "spying" going on here. Feb 08 20:47:20 My name is Michael Westin, I used to be a pie, until... Feb 08 20:47:36 <_genuser_> meanwhile I wrestle with how to design my app in a ways that makes sense to a non-crazy person. Feb 08 20:47:37 And nobody commented on my joke in the welcome.md docuement. I haz a sad. Feb 08 20:47:52 Ankhwatcher: I'm afraid you're not too good at this spy thing. spelling errors -> death, revealing yourself to your target -> death... this will be a difficult job to continue :) Feb 08 20:48:19 unless you're James Bond. Then everyone knows you're name! Feb 08 20:48:26 Worse spy ever. Feb 08 20:48:30 MikeWallaceDev: is it the "on the #java channel" part? Feb 08 20:48:36 _genuser_: don't worry most users by samsung phones and don't stay sane for very long Feb 08 20:48:41 no! (groxx) Feb 08 20:48:42 <_genuser_> or unless you have a card that says, "international man of mystery" Feb 08 20:49:08 groxx, every section finishes with Google it! :D Feb 08 20:49:16 "international man of dysentery" Feb 08 20:49:17 MikeWallaceDev: I like that addition! Feb 08 20:49:23 xD Feb 08 20:49:24 hahaha Feb 08 20:49:26 <_genuser_> Ankhwatcher: lol. I'm trying to keep it clean because later on when you're adding new stuff, it's only possible if you designed it properly. otherwise, it's a huge mess. Feb 08 20:49:31 <_genuser_> duct-tape every where. Feb 08 20:49:37 It's funny, and true. :) Feb 08 20:51:02 _genuser_: yeah, i get ya. I was working on an app that was built to basically only have two activities and infinity fragments Feb 08 20:51:08 aw, geeze... now wtf?? Gradle DSL method not found: 'android()' :P Feb 08 20:51:28 nice in theory, a bizarre nightmare in practice Feb 08 20:51:52 Do you have the "apply plugin" line? Feb 08 20:51:53 who else is an OP besides SimonVT ? Feb 08 20:52:09 Leeds? Feb 08 20:52:17 sometimes I wonder if two activities + infinity fragments = net increase in sanity, because it could make the task stack simpler. Feb 08 20:52:54 groxx: yeah, I think that was the theory. But then when you start fucking around with the keyboad and screen resize things get complicated Feb 08 20:52:58 Leeds? Geez, never heard of him... Not logged in either... Feb 08 20:53:28 Ankhwatcher: yeah, I'd believe it. plus there's a loss in sanity with each added fragment. Feb 08 20:53:58 Ankhwatcher: eventually you summon Cthulhu, and then your keyboard code _makes sense_. a horrible fate. Feb 08 20:56:37 <_genuser_> Ankhwatcher: yeah, the more modular a codebase, the easier it is to plug extra modules in between. Feb 08 20:56:53 <_genuser_> Ankhwatcher: which is where I dislike java's strongly coupled (yet sold as lightly coupled) design. Feb 08 20:57:15 <_genuser_> interfaces and reverse interfaces, blah blah. why can't you have function pointers as event handler like every other lang on the planet? Feb 08 20:57:43 Runnable? Feb 08 20:58:15 TacticalJoke: Thanks for trying to help. I've about had it for day four of trying to get the app to use gson. Feb 08 20:58:48 It's not working in a new project? Feb 08 20:58:50 I'm trying a clean project with manual migration from Eclipse and gradle is giving some error that I don't understand. Feb 08 20:58:51 or maybe Callable is better. but interfaces basically _are_ function pointers, though it's annoying and inefficient that it requires an instance. Feb 08 20:59:44 maybe java 8 will save us :| Feb 08 20:59:49 TacticalJoke: What is the proper order for directories? Eclipse had com.msi.shortwave but Android Studio seems to want them around the other way Feb 08 20:59:50 <_genuser_> groxx: it's easier in c# for example: obj.onEvent=(new function). which turns into delgates and etc etc. Feb 08 21:00:16 yeah, the little I did with C#'s callback system was pretty magically nice to use Feb 08 21:00:27 <_genuser_> groxx: but with interfaces, if you change one public things, damnit, you have to recompile every single thing that touched that interface. and break everythign else that uses that common lib and is maintained by another team. etc. Feb 08 21:01:08 <_genuser_> in c# the broadcaster doesn't care who you are. you'll provide a function and it will add it to the list. Feb 08 21:01:34 <_genuser_> with interfaces, the broadcaster care that you implement an interface and give a reference to the implementer to you. Feb 08 21:01:55 <_genuser_> now you're tightly coupled to each otehr and the interface can't be used for other purposes or changing it will break the first two. Feb 08 21:01:58 which would be do-able if everyone everywhere would use e.g. Callable or the Function1<> (or something like that) interfaces. but it's pretty crap for readability. Feb 08 21:02:34 <_genuser_> I'm used to it now. so when I have eclipse open, my mind just thinks differently. but in the beginning it was very hard to change my thinking between java and other langs. Feb 08 21:04:40 <_genuser_> anyhoo back to redesign... Feb 08 21:07:04 Anyone know about bluetooth with the ndk? I read that it was possible but can't find a guide to how to do it Feb 08 21:12:58 lol, I'm using dolphin to play smash brothers, it renders so slowly that I can beat every match in 15 "seconds" Feb 08 21:13:01 I think I should just give up. There seems to be no way to get gson to work with the project. I'm just wasting too much time on this. Feb 08 21:13:30 I should start bugging the developer of it in hopes we can get to the bottom of why Google Play store says the app is not compatible with my device. Feb 08 21:13:37 Plugh: Were you asking about Java packages above? Feb 08 21:13:40 Just got back. Feb 08 21:14:24 Plugh: What if you try creating a new project and just adding a dependency on Gson? Feb 08 21:14:29 No, not me. I'm getting totally frustrated by this app. I'm trying manual migration from Eclipse and now Gradle is saying something isn't right and it won't even try compiling it. Feb 08 21:14:31 If that doesn't work, something is going seriously wrong. Feb 08 21:16:38 Plugh: In the actual project, did you add the dependencies in the build.gradle for 'app' (and not the one for the project)? Feb 08 21:16:50 You should have two build.gradles. Feb 08 21:17:30 In the manually migrated version I have two. Feb 08 21:17:42 Gradle reports -> Gradle DSL method not found: 'android()' Feb 08 21:18:00 You must be doing something weird. Feb 08 21:18:25 I copied the java source and the resources. Feb 08 21:19:47 What edits did you make to the build.gradle files? Feb 08 21:19:51 None Feb 08 21:22:42 Let's try again to create a new project. AS kept making my import statement disappear after I typed it. Feb 08 21:23:04 Let us know whether it successfully builds a new project. Feb 08 21:23:11 It does that. Feb 08 21:23:12 And then try adding just the Gson dependency and building again. Feb 08 21:23:32 Start a new project... Feb 08 21:24:31 Creating it with blank activity Feb 08 21:24:41 K. Feb 08 21:25:15 IIRC, this default will just show a screen with "Hello, world" Feb 08 21:26:13 Its loaded. I'm going to build the app without any changes to make sure it will build. Feb 08 21:28:08 ok, it is running in the emulator. Feb 08 21:28:53 At this point I just add a library dependency to the main module? Feb 08 21:29:02 Okay, one sec. Android Studio is taking forever to load. Feb 08 21:29:07 There is a precise way of doing it. Feb 08 21:29:17 One that's somewhat infallible. Feb 08 21:30:01 Okay. Now go File > Project Structure > Dependencies > + > Library module, type "gson", press Enter, and press OK. Feb 08 21:30:06 That should do it without issue. Feb 08 21:30:20 Oops, "Library dependency". Feb 08 21:30:24 Not "Library module". Feb 08 21:30:52 Use which +? The one on the left or the one on the right? Feb 08 21:30:57 On the right. Feb 08 21:31:11 Note that I'm assuming that 'app' is selected on the left. Feb 08 21:31:19 That's what I did. Selected the name of the only module on the list (called app). Feb 08 21:32:07 Selected dependency tab, click + on right, selected 1 (library dependency), scrolled to GSON line, selected it, clicked ok. Feb 08 21:32:14 Okay. Feb 08 21:32:27 I'm guessing you have to press OK again. I forget. Feb 08 21:32:35 Then build all the things. Feb 08 21:32:51 It shows as dependency in the list Feb 08 21:32:55 Okay, good. Feb 08 21:33:09 It added the entry to the 'app' build.gradle file. Feb 08 21:33:47 It still builds. Feb 08 21:34:15 It isn't using gson as there is nothing in the code referring to anything gson related, nor is there an import re: gson. Feb 08 21:35:05 Gson is now part of your APK and available for use, however. Feb 08 21:36:11 It won't let me add an import re: gson. I type it in, then after I hit ; and enter the line goes away. Feb 08 21:36:43 I guess it's removing unused import statements. Feb 08 21:37:11 Type "JsonObject" somewhere. Then Alt+Enter. Feb 08 21:38:31 Note that you almost never (or perhaps never) need to manually type import statements. Feb 08 21:38:44 It added an import statement. Feb 08 21:39:03 AS is behaving differently from when I was doing my first app. Feb 08 21:39:13 I had to manually add the imports I wanted. Feb 08 21:43:09 Hi Feb 08 21:44:09 I'm kinda amazed by Inkscape. I've already made a nice-looking app icon. Feb 08 21:44:18 And I'm just learning how to use it. It's so simple and powerful. Feb 08 21:44:39 Neat program but it takes a little getting used to how it works. Feb 08 21:44:42 What size should I use for navigation drawer icon? 36dp or 48dp? Feb 08 21:45:30 MalekAlrwily, http://iconhandbook.co.uk/reference/chart/android/ Feb 08 21:45:41 all icon dimensions u need to know Feb 08 21:45:51 TacticalJoke: Hm... after four days of messing with this I'm starting to think it isn't the main app that isn't finding the gson library but one of the support modules. Feb 08 21:46:12 danijoo: Thank you :D I have bookmarked that page Feb 08 21:47:04 What are the support modules? Feb 08 21:47:14 I'll bookmark that too. Looks like a useful page. Feb 08 21:47:34 oSMBonusPack, osmdroid, ActionBarSherlock. Feb 08 21:49:09 hey TacticalJoke :) how are you? Feb 08 21:49:22 Are you sure they use Gson? Feb 08 21:49:33 Hey, Bauer. Recovering from a horrible virus. :) Feb 08 21:49:51 Trying to, anyway. Feb 08 21:50:01 oSMBonusPack certainly des Feb 08 21:50:20 lol TacticalJoke , you sound like you had Ebola! :P Feb 08 21:50:56 TacticalJoke: I think I can work on getting the modules to build in their own directories. Once they build, the app itself should build. Feb 08 21:52:19 I am googling for the recommended ways to implement an SMS code validation routine in my app.. and none of my searches show how to intercept the SMS which I have delivered to the phone.. any suggestions? Feb 08 21:52:52 How does whatsapp and others do it automatically without waiting for user to manually enter the code? Feb 08 21:55:35 Bauer, I'm pretty sure that you can't do that anymore... That whole 'default SMS app' thing Feb 08 21:56:00 Whoever wanted some info about Embedded Android book I will have to look at it another day and come back with some info on it. I don't feel like doing that now. I have dinner coming up in about an hour and I have some others things to do before dinner. Feb 08 21:56:04 MikeWallaceDev: Facebook still does it on Lollipop Feb 08 21:56:31 MikeWallaceDev: what do you mean? as far as I know it still works for whatsapp... why would it stop working? Feb 08 21:57:07 There can only be one app that get the SMS intent now... Maybe they don't actually use SMS? Feb 08 21:57:40 I'm not sure they do, it wouldn't work on tablets... Feb 08 21:57:47 Thanks for the help, TacticalJoke. I have a plan of action now. Too bad it took about 4 or so days to get to this point. Feb 08 21:58:12 Started to feel like I was going to toss the laptop across the room at one point. :D Feb 08 21:58:16 MikeWallaceDev: they dont support tablets, they require you to input a real phone numebrs.. if you remove the SIM, the app stops working and requires to re-authenticate via SMS Feb 08 21:58:40 right, so why would you want to do that? Feb 08 21:58:59 sounds pretty awful to me :-/ Feb 08 21:59:28 MikeWallaceDev: because I dont need to support tablets, my app is for phones and I want to validate a user's phone number by sending him an SMS with random code that my REST API generated and saves in session until validation is done Feb 08 21:59:39 hm, so does gradle testDebug now do jvm unit tests ? Feb 08 22:00:03 Bauer, makes sense... Feb 08 22:00:49 You could just make them input the code manually like gmail dual authentification Feb 08 22:01:02 It seems to say that here, g00s: http://tools.android.com/tech-docs/unit-testing-support Feb 08 22:01:07 You just have to select the "unit test" build variant. Feb 08 22:01:33 (In Android Studio.) Feb 08 22:01:41 well, I will do it a manual input only as a last resort, I prefer to intercept and parse my SMS automatically.. I just cant find how Feb 08 22:01:43 Plugh: No worries. Hope you fix it. Feb 08 22:01:52 i just did 'gradle testDebug' and gave me 100% success, which is bogus Feb 08 22:02:40 Bauer, http://stackoverflow.com/questions/10434246/how-to-intercept-sms-sent-by-user-from-android-phone Feb 08 22:04:19 TacticalJoke: so do I. :) Feb 08 22:04:36 See you all another time, and hopefully with good news. :) Feb 08 22:04:40 MikeWallaceDev: thanks, but that is NOT what I am trying to do.. here is human description of the steps I actually want to do: http://stackoverflow.com/questions/22813827/verify-user-during-signup-by-sending-and-receiving-sms-through-twilio problem is I cant find how to intercept it (INCOMING SMS, not outgoing) Feb 08 22:06:47 oops... yes, I see that now :D my bad Feb 08 22:07:16 what's wrong with the sms intent? Feb 08 22:08:08 Bauer, http://stackoverflow.com/questions/6979540/how-can-i-intercept-an-incoming-sms-with-a-specific-text Feb 08 22:08:32 http://weimenglee.blogspot.ca/2011/05/android-how-to-prevent-sms-messages_13.html Feb 08 22:09:10 nothing, apparently Feb 08 22:13:09 Anyone know about bluetooth with the ndk? I read that it was possible but can't find a guide to how to do it Feb 08 22:14:06 thanks MikeWallaceDev! gonna start tinkering with that :) going to be interesting to see how to release messages not relevant to me, back to the other applications to handle Feb 08 22:14:07 TacticalJoke lol, another reddit client Feb 08 22:14:16 oh my mistake, HN client ! Feb 08 22:14:43 Bauer, read up on it, it's probably a broadcast intent... Feb 08 22:15:29 Their API sounds horrible. He said he had to HTML-scrape for commenting and voting. Feb 08 22:15:41 can anyone tell me whats the default permission and own of apks in /data/app Feb 08 22:16:40 TacticalJoke i just did 'gradle testDebug' with sources that shouldn't have even compiled, but it all worked out, did i do something wrong :| Feb 08 22:18:15 Hmm, not sure. I know that when doing this within AS you have to select 'Unit Tests' from the Build Variants tool window. Feb 08 22:18:49 i did it from the command line Feb 08 22:19:17 then when i did 'gradle connectedAndroidTest' i got the results i ecpected Feb 08 22:26:07 g00s and TacticalJoke I wrote this up today: http://goo.gl/kP0vzt Still waiting for feedback from SimonVT Feb 08 22:26:22 Can you guys take a look and give some feedback please? Feb 08 22:27:11 there's only one "p" in "Developer Tools" Feb 08 22:27:22 looks good though Feb 08 22:28:02 fixed Feb 08 22:28:39 any tools, libraries, what nots, that you would want to add/remove ? Feb 08 22:29:08 I'd better run. I'll take a look tomorrow. Have fun! Feb 08 22:29:11 android weekly 139 is out :D Feb 08 22:29:14 this is a pretty helpful and oft visited link of mine http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html Feb 08 22:29:48 I'll put the link to the main page. Good idea Feb 08 22:31:38 Hey guys, anyone who knows if chartboost generates revenue based on the clicks you get on the ads you show Feb 08 22:31:46 or if it is on the installs that the user does on the app that was displayed in the app? Feb 08 22:31:49 in the ad* Feb 08 22:35:07 Levite, I added a Blog section. That could be helpful... Feb 08 22:41:34 MikeWallaceDev: shouldn't Volley be in both your network and graphics downloading sections? Feb 08 22:43:02 MikeWallaceDev: you should probably link to this chappy too: https://github.com/ruleant/script-fu-save-android-icons Feb 08 22:43:11 I don't know, should it? :D Feb 08 22:43:39 Ankhwatcher, I have a better version of that already listed ... Feb 08 22:44:04 ok, that was a little biased.. Feb 08 22:44:05 * [Android Graphic Saver](https://bitbucket.org/risesoftware/scripts/src) A handy Gimp plug-in to create all the required sizes for Android resources. Feb 08 22:44:12 MikeWallaceDev: no you don't. You're one doesn't link to any instructions Feb 08 22:44:18 it's a useless py file Feb 08 22:44:48 I'm guessing you made the other one ;) Feb 08 22:45:09 I did not, I've just been using it for a year Feb 08 22:45:15 It's a gimp plug-in, you just copy it to your plug-in directory. Feb 08 22:45:26 I'd be happy to switch to your one if I knew how Feb 08 22:45:35 There's a readme.md file Feb 08 22:46:02 There will be more docs, that's for sure. I'm still adding to it. Feb 08 22:46:31 "For rs_save_android_icons.py you have to set it as executable on a Linux system. Feb 08 22:46:33 I'm going to add more output formats Feb 08 22:46:33 " Feb 08 22:46:40 okay, it's executable, now what Feb 08 22:47:31 It's a gimp plug-in, just like the one you provided. You put it in the plug-in folder, gimp will auto-detect it on re-start Feb 08 22:48:37 will it create folders automatically? that's the only thing i don't like about the other one (well and now AS wants mipmaps which it doesn't do) Feb 08 22:48:42 Do you suggest that I put installation instructions in the file? Or just the readme? Feb 08 22:48:51 it just craps itself if the folders don't exist Feb 08 22:48:56 yes, it creates the folders Feb 08 22:49:03 awesome Feb 08 22:49:21 It also shows you the sizes of the outputs before creation Feb 08 22:49:25 I'd be tempted to put all the info at the top of the file and link directly to it Feb 08 22:49:29 It has many advancements... Feb 08 22:49:58 h Feb 08 22:49:59 i Feb 08 22:50:05 Ok, I'll add installation instructions in the script Feb 08 22:51:01 is asking for feedback on apps prohibited here? Feb 08 22:51:17 oh this is very nice Feb 08 22:51:24 I'm glad I took the time to berate you Feb 08 22:52:07 Why "OK" and "Apply" Feb 08 22:52:38 B007: I don't so, but if no-one responds don't go spare. Feb 08 22:52:54 B007: have you posted to the G+ community for feedback? Feb 08 22:53:24 nope i dont have a G+ account Feb 08 22:54:11 Ankhwatcher, http://pastebin.com/wXPjiqQp Feb 08 22:54:16 but maybe i'll look into creating one. app is banana ninja by 007 Feb 08 22:54:39 Ok will shut down the plug-in, Apply allows you to make more images Feb 08 22:55:34 MikeWallaceDev: looks good! Feb 08 22:56:38 MikeWallaceDev: is there a ui guideline to follow or could apply be "save" Feb 08 22:56:45 I like it a lot... saves me A LOT of time. I have many graphics in my app Feb 08 22:57:38 Ankhwatcher, I'm not following any guidelines. Ok, I'm thinking about that Feb 08 22:57:47 yeah, when I found that other script it was a godsend, half the time the GD I work with screws up the icon sizes Feb 08 22:58:41 I would use 'save' by itself, but I think the 'apply' + 'ok' idiom is pretty well known... Feb 08 22:59:15 she's a bit more attuned to iOS Feb 08 22:59:44 actually thinking about it, drop cancel and have "Close" and "Save" as your options Feb 08 23:00:02 apply and ok? I have to disagree, I don't use any Apple products and I'm very used to it. I would say it's a Microsoft thing Feb 08 23:00:08 Anyone know the keyboard shortcut on Linux to bring up the quick context menu in Android Studio? IE: The one that let's me choose to generate a constructor, getter/setter/ etc Feb 08 23:00:36 MikeWallaceDev: I meant why my Graphics Designer keeps getting the icon sizes wrong for Android Feb 08 23:00:42 Ankhwatcher, Cancel does not create any images, Ok creates and closes, Apply creates and stays open Feb 08 23:00:51 oh! :D Feb 08 23:00:52 ImDevinC: alt + insert, I think Feb 08 23:01:26 JesusFreke, yes. Feb 08 23:01:37 JesusFreke: yeah, I think that's it too. Although I also think my OS overrides that key command for some reason haha. Thanks Feb 08 23:01:50 ImDevinC: you can change the binding :) Feb 08 23:01:58 MikeWallaceDev: yeah, I noticed that. I was a bit confused after using apply to save my images I then hit okay to dismiss the dialog and it saved them again... Feb 08 23:02:02 JesusFreke: Yeah, I'm just being lazy and complaining Feb 08 23:02:08 hehe Feb 08 23:02:27 what os? Feb 08 23:02:51 JesusFreke, I wrote up a welcome.md for the chanel, could you take a look at it and give me some feedback please? http://goo.gl/kP0vzt Feb 08 23:02:53 Gentoo with XFCE Feb 08 23:03:09 XFCE uses Alt+Insert to shrink the items in your taskbar Feb 08 23:03:24 ah. yeah, it works fine in ubuntu with cinnamon, at least. Feb 08 23:03:28 * JesusFreke shrugs Feb 08 23:03:31 I'm so used to using my Mac though, it's easier to change the keystroke in Android Studio to Alt+Enter Feb 08 23:03:50 I don't know Ankhwatcher , it's a pretty popular way of doing things. I'll change it if I get more comments. But I REALLY appreciate your feedback :) Feb 08 23:04:07 ImDevinC, works find with Fedora also Feb 08 23:05:05 Ankhwatcher, I'm actually working on it now. I'm trying to add the possibility to choose only certain layers and generate the output image from that. Feb 08 23:05:14 MikeWallaceDev: it's a pretty popular way of doing things in application settings Feb 08 23:05:15 using the size of the layers, not the image Feb 08 23:05:33 yes, agreed, with the settings thing. Feb 08 23:05:42 hah Feb 08 23:05:49 I need to buy a new raspberry pi Feb 08 23:06:21 Ankhwatcher, so just "Close" and "Generate" then? Feb 08 23:06:42 sounds good to me! Feb 08 23:07:13 MikeClassic: the java channel is actuall ##java, not #java Feb 08 23:07:40 Ankhwatcher: raspberry pi 2 ? Feb 08 23:08:16 MikeWallaceDev: I would also mention Dagger 1/2 in the useful libraries Feb 08 23:08:42 B007: yeah, my irc client is hosted on my pi, whenever someone mentions me in the channel my screen freezes up while the pi sends a notification to my phone Feb 08 23:08:43 deuteros, I knew I forgot something! Feb 08 23:09:11 I'm hoping if I buy one of the new multi-core pis that will stop happening Feb 08 23:09:31 That sounds broken... Feb 08 23:09:38 It should be possible without. Feb 08 23:10:14 ssh to pi? Feb 08 23:10:20 B007: yep Feb 08 23:10:27 i use vps Feb 08 23:10:34 since i already have one Feb 08 23:10:39 If the notification is send synchronously, you probably need to change something... Feb 08 23:14:40 https://irssinotifier.appspot.com/ Feb 08 23:14:55 I'll check if he's updated his script Feb 08 23:15:09 I've been running this version for quite some time Feb 08 23:16:08 Modify: 2013-09-11 23:07:07.000000000 +0100 Feb 08 23:16:09 Change: 2013-11-13 14:39:53.982066819 +0000 Feb 08 23:16:40 Ankhwatcher, updated the buttons... Feb 08 23:16:57 :D Feb 08 23:22:33 MikeWallaceDev not sure its a good idea to put libraries in that. androidarsenal has 1300 of them, its a fools errand to dwindle that down into a curated list. also, it might seem like endoresement, which is find if its endorsed by MikeWallace but ... can't really represent the channel Feb 08 23:22:34 okay then Feb 08 23:23:54 yeah, it's supposed to represent the channel g00s ... Feb 08 23:24:02 not sure either now Feb 08 23:25:23 is it a fools errand? ... Or maybe I should just point to androidarsenal? Feb 08 23:25:26 Well that's updated and still working Feb 08 23:29:39 haha: https://plus.google.com/u/0/+JeffJarvis/posts/Y6wx7m6ACnQ Feb 08 23:31:39 i think thats how james bond cheats Feb 08 23:33:26 I don't always cheat on tests, but when I do I build a custom watch face which shows me the relevant information looking like the time Feb 08 23:34:19 so should the document point to android-arsenal? I think that would be a better idea. Feb 08 23:34:56 I'm not sure... Feb 08 23:35:16 Sending a newbie to that plethora wouldn't be that helpful... Feb 08 23:38:03 Feb 08 23:39:29 I need an app that will show all HTTP calls from my device... any suggestions? Feb 08 23:43:44 shark something something Feb 08 23:43:59 wireshark? Feb 08 23:44:25 yeah, wireshark Agamemnus https://www.wireshark.org/ Feb 08 23:46:07 I'll take a look Feb 08 23:46:08 thanks Feb 08 23:46:15 Charles Feb 08 23:46:31 someone wrote a blog post about some other thing that supposed to be good Feb 08 23:46:35 but Charles is what I use Feb 08 23:46:44 I am playing a multiplayer game that does not have user authentication Feb 08 23:46:57 trying to see what else it is missing Feb 08 23:47:24 Agamemnus: I've used tcpdump on-device before, but I don't recall if it requires root or not Feb 08 23:47:36 I can't use root Feb 08 23:47:42 need to trade in my phone first Feb 08 23:47:56 that's what I'm saying, I don't remember it if requires root. it might not. Feb 08 23:48:10 can't find an official wireshark app Feb 08 23:48:17 all i am seeing so far needs root Feb 08 23:48:19 Agamemnus: for charles you don't need root, you just set up a pc as a proxy Feb 08 23:48:32 okay Feb 08 23:48:34 you can use wireshark from a pc too Feb 08 23:48:44 but it's a bit messy Feb 08 23:48:59 http://www.charlesproxy.com/ Feb 08 23:49:12 I'll try Charles first Feb 08 23:50:00 Here's that blog post: https://medium.com/@rotxed/how-to-debug-http-s-traffic-on-android-7fbe5d2a34 Feb 08 23:50:57 anyone have this kernel ? Tiamat_N1-v4.1.0.zip ? Feb 08 23:51:18 this sounds complicated Feb 08 23:51:20 XDS2010_: sounds like you want #android-root Feb 08 23:51:29 Wow, the Charles server is so slow Feb 08 23:51:41 Agamemnus: performing a man in the middle attack on yourself is complicated Feb 08 23:51:52 I see Feb 08 23:51:53 :-) Feb 08 23:53:11 I keep thinking about the Sony hack Feb 08 23:53:22 Which one? Feb 08 23:53:27 The last one Feb 08 23:53:32 And Fort Knox Feb 08 23:53:41 ah, the great sony hack of ten minutes ago Feb 08 23:53:47 Oh? Feb 08 23:53:47 LOL Feb 08 23:54:30 It's like Fort Knox was a private company and didn't have any security. And then when all their gold was cleared out, they told the goubermint to go and help them recover the gold and drone-kill the hackers. Feb 08 23:54:53 AND THE GUBERMINT SAID "YES"! Feb 08 23:54:56 not really Feb 08 23:55:14 they mostly just got on board with blaming people Feb 08 23:55:17 It shouldn't be the US government's job to babysit multinational megacorporations Feb 08 23:55:52 blaming people is fine Feb 08 23:55:59 they should not offer them any support Feb 08 23:56:11 Which they routinely do, and advertise about. Feb 08 23:56:32 they have an agency set up to do it. Feb 08 23:57:11 It just makes me angry. Feb 08 23:57:46 Agamemnus then write an app Feb 08 23:57:48 lol Feb 08 23:58:20 g00s: don't troll us with your secret agenda! Feb 09 00:10:10 It literally took me a decade to install Charles. Feb 09 00:10:16 er, to download it. Feb 09 00:11:26 Can you guys give me tips on using Charles? Feb 09 00:12:17 Ankhwatcher: the link was not for Charles Feb 09 00:12:24 should I try to use it anyway.... somehow? Feb 09 00:12:55 you find the IP address of your pc and set it as the proxy for your wifi connection on your phone Feb 09 00:13:13 Charles will tell you what port to use Feb 09 00:13:21 so i need a proxy on the wifi connection Feb 09 00:13:28 I might be forgetting parts of this, so I suggest you google it Feb 09 00:14:15 http://university.utest.com/how-to-set-up-charles-web-debugging-proxy-for-android-devices-and-mac/ F.. it is mac instructions Feb 09 00:15:16 you know how to get your computer's IP address, right? Feb 09 00:15:30 "Get the network IP address of your computer by opening System Preferences >> Network." Feb 09 00:15:36 Do they mean literally the IP address? Feb 09 00:15:41 Or the local IP thing? Feb 09 00:15:43 yeah Feb 09 00:15:50 of your computer Feb 09 00:15:54 on the network Feb 09 00:15:58 which your phone is also on Feb 09 00:16:00 of my computer Feb 09 00:16:01 if you have a callback inside of a for loop, does the loop wait for the callback result before starting the next iteration? Feb 09 00:16:07 not of the router right? Feb 09 00:16:18 nope Feb 09 00:16:23 I don't know how to get that. Feb 09 00:16:23 of the computer Feb 09 00:16:31 I don't know where System Preferences is Feb 09 00:16:43 are you using a mac or windows or linux? Feb 09 00:16:46 oh yeah that's mac Feb 09 00:16:49 Windows Feb 09 00:17:00 open cmd Feb 09 00:17:10 k Feb 09 00:17:15 type in "ipconfig" Feb 09 00:17:27 i am currently trying to debug my sqlite db without undering sql at all.... this is interesting Feb 09 00:17:37 *understanding Feb 09 00:18:05 Ethernet Adapter Local Area Connection 2 maybe Feb 09 00:18:06 DadFoundMy: it's a big spreadsheet Feb 09 00:18:41 Ankhwatcher: i get that, but i don't really understand the syntax, or what goes into it at all Feb 09 00:18:47 im just following a super basic tutorial Feb 09 00:19:32 well is there specific question you have about it? Feb 09 00:19:41 * Ankhwatcher needs to go to bed Feb 09 00:20:02 it works i think Feb 09 00:20:36 well heres my dataHanlder onCreate(), is there anything blareinly wrong with it? http://pastebin.com/XLyYCY14 Feb 09 00:20:47 the commented out line causes an error Feb 09 00:21:05 missing space Feb 09 00:21:22 well TIL spaces matter Feb 09 00:21:50 how do i clear things? Feb 09 00:21:56 try putting a breakpoint on the commented line and looking at the string once it's been put together Feb 09 00:22:04 nvm Feb 09 00:22:06 you'll see the mistakes in it Feb 09 00:22:15 alright thanks Feb 09 00:22:21 you've dropped a space and you've got a trailing comma Feb 09 00:22:47 bad syntax ftw Feb 09 00:22:48 so i dont really understand sql, but is this string a command that is being issued? Feb 09 00:22:58 learn sql Feb 09 00:22:59 yeah Feb 09 00:23:04 ahh that makes sense Feb 09 00:23:10 pfn: yeah i really should tbh Feb 09 00:23:16 Ankhwatcher: i can see that my browser info is being relayed Feb 09 00:23:21 but nothing relating to the game Feb 09 00:23:24 Hello. I am finding on google that the gridlayout should have setaAdaptor but it seems in eclipse it is not. do anyone know what is wrong ? Feb 09 00:23:34 not sure how it is possible Feb 09 00:23:52 my district has two high schools. one teaches java for cs, and another teaches sql. i got the one with java, but im starting to think i got the short end of the stick :D Feb 09 00:24:10 meh Feb 09 00:24:13 i am using: android.support.v7.widget.GridLayout Feb 09 00:24:16 sql was the first week of my databases class Feb 09 00:24:18 it is easy Feb 09 00:24:25 I got a D on the rest of it tho :D Feb 09 00:24:35 just because i read a book on high level java anyway, so atleast the class would be useful Feb 09 00:24:42 I figured out SQL just like you Feb 09 00:24:50 you have no idea, no idea the kind of shit that guy gave us Feb 09 00:24:59 but everyone else in my class was ok with it Feb 09 00:25:03 there's a bit on it in the Android Fundamentals udacity course that's pretty good Feb 09 00:25:19 ive heard being proficient in sql can allow you to get a decent cs job alot easier Feb 09 00:25:34 everything you hear is bullshit Feb 09 00:25:36 also Feb 09 00:25:49 http://4.bp.blogspot.com/_D_Z-D2tzi14/S8TRIo4br3I/AAAAAAAACv4/Zh7_GcMlRKo/s1600/ALOT.png Feb 09 00:25:54 nobody on the front-end gives a rats ass about it Feb 09 00:26:02 but it's important on the back end Feb 09 00:26:10 Ankhwatcher: i like that image alot Feb 09 00:26:22 that was meant for Agamemnus oopsie Feb 09 00:26:23 I am constantly forgetting the freaking syntax Feb 09 00:26:30 for mysql Feb 09 00:26:46 if you want a horrible job get Oracle certified then you can fix peoples broken databases for the rest of your life Feb 09 00:27:00 a lot of people get too deep into it, and try to do everything on the database Feb 09 00:27:02 that's what the other highschool did :D Feb 09 00:27:21 but mysql is not easy to write Feb 09 00:27:25 or sql in general Feb 09 00:27:46 my pinkie hates me for holding shift so much while writing Feb 09 00:27:47 well... for simple things it is fine Feb 09 00:27:50 'Oh look, another numerically-keyed table with many duplicate entries' Feb 09 00:28:08 anywho Agamemnus did you install the charles.crt on your phone? that allows you to look at your https traffic Feb 09 00:28:09 you use your pinky for the shift key? Feb 09 00:28:21 ankhwatcher, i don't have any idea Feb 09 00:28:23 Agamemnus: what else would i use??? Feb 09 00:28:45 DadFoundMy: I use my nose Feb 09 00:29:07 the second finger from the left. Feb 09 00:29:12 Doesn't matter which hand. Feb 09 00:29:16 Ankhwatcher: hey atleast than you can type with all 5 fingers! Feb 09 00:29:28 Agamemnus: what why? then you can only type with you 2 fingers Feb 09 00:29:37 whaaaaaaat Feb 09 00:29:39 if you use pinky you can use 3 Feb 09 00:29:42 you only have 4 fingers? Feb 09 00:29:52 er, Feb 09 00:29:55 ??????? Feb 09 00:29:56 well im not typing with my thumb Feb 09 00:30:07 Agamemnus: http://stackoverflow.com/questions/17823434/ssl-proxy-charles-and-android-trouble Feb 09 00:30:14 Would Nesting Linear->Relative->Linear give me any performance problems on a static image-filled app? Feb 09 00:30:15 I use my thumb a lot. Feb 09 00:30:18 DadFoundMy: space? Feb 09 00:30:20 You should use your thumb. Feb 09 00:30:24 okay well for space Feb 09 00:30:26 on your left hand. Feb 09 00:30:30 at least. Feb 09 00:30:39 i space with both i just realized Feb 09 00:30:40 right, this could go on all night Feb 09 00:30:44 I'm off to bed Feb 09 00:30:50 thanks for the links Feb 09 00:30:52 good luck with your respective issues Feb 09 00:30:56 Ankhwatcher: cya Feb 09 00:31:08 time for a typing test to see if ive been doing it wrong this whole time Feb 09 00:31:11 Tbone139: no idea btw Feb 09 00:31:21 DadFoundMy: since birth. Feb 09 00:31:35 one way to find out >.>; Feb 09 00:32:31 I have never really used my pinky Feb 09 00:32:40 maybe that is why it feels numb so often Feb 09 00:32:43 85 wpm not awful Feb 09 00:32:54 i slow down a ton after like 35-45 seconds Feb 09 00:33:41 Agamemnus: you dont use it to type 'p'? Feb 09 00:33:48 or like brackets? Feb 09 00:34:05 p, 4th finger from the left. Feb 09 00:34:20 WAIT Feb 09 00:34:23 I do use my pinky. Feb 09 00:34:28 I use it to type C Feb 09 00:34:30 and you can do that accuretly??? moving your whole hand? Feb 09 00:34:44 P is in the middle on my keyboard. Feb 09 00:34:51 tfw you realize dvorak Feb 09 00:34:57 Close to Enter and backspace Feb 09 00:34:58 or colemak idk Feb 09 00:35:07 the common keyboard Feb 09 00:35:16 Sony VAIO from 1999 or so Feb 09 00:35:23 the keyboard that is. Feb 09 00:36:12 im confused... your 'p' is the center and its a normal qwerty? Feb 09 00:36:23 It's in the center of the keyboard. Feb 09 00:36:28 Closer to the right Feb 09 00:36:43 It's not in the center of the letter section. Feb 09 00:36:55 oh, well the letter section is all that matters Feb 09 00:37:07 how to you hit 'c' with your pinky? Feb 09 00:37:17 do you mean your thumb? Feb 09 00:37:19 let me find a screenshot Feb 09 00:37:22 pinky Feb 09 00:38:53 it is wide Feb 09 00:39:02 they don't make this keyboard anymore Feb 09 00:39:12 and my keyboard is embarassingly dirty Feb 09 00:39:20 to take a photo of Feb 09 00:40:12 it is similar to this Feb 09 00:40:13 https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSeKwB9o4t1uhpLeSxlzPoHSIfyb80sbmNY58fpN171tDGgO3Uyf3Ffx8Mb Feb 09 00:40:30 How can I track visits to my play store listing via hitting an NFC tag? I see the google referral flow tool in google analytics but that only seems to cover referrals withing the play store, not direct traffic Feb 09 00:40:47 http://cdn.instantshift.com/wp-content/uploads/2013/07/keyboard.jpg Feb 09 00:40:52 almost exactly like this. Feb 09 00:41:31 bilb_ono: send people to an intermediate page that you can track Feb 09 00:42:16 bilb_ono: Feb 09 00:42:27 What the hell is an NFC tag? Feb 09 00:43:53 Leeds, If it was just a url that redirected to the play store, I don't think it could launch the app though once it was installed Feb 09 00:44:24 can you launch the app with a direct link? Feb 09 00:44:45 Agamemnus, maybe that was the wrong word. NFC chip? basically I have stickers with nfc tags in them and when peole try and use them it goes to the play store Feb 09 00:45:07 when they touch the phone to the tag after already having the app, it starts the app Feb 09 00:45:12 Agamemnus: that looks like a normal keyboard... why would you use the piny for 'c' and not 'p'? Feb 09 00:49:19 Leeds, I would prefer not to loose that functionality of the app launching itself. (1 cool thing about NFC). It really seems like a simple visitor count should be easy to find on the play console Feb 09 00:49:37 is there some reason they don't want to include direct traffic info on the google analytics? Feb 09 00:50:02 What? Feb 09 00:50:09 Sometimes I need to type the "c" character. Feb 09 00:50:32 bilb_ono: I see, I think I have a solution for you Feb 09 00:50:36 let me know if it works Feb 09 00:51:07 https://github.com/agamemnus/cordova-plugin-google-play-query-receiver Feb 09 00:51:15 It's for Cordova but the Java code is right there. Feb 09 00:52:01 you will need an XML entry in AndroidManifest and a receiver Feb 09 00:52:19 In my case I needed a plugin file (GooglePlayQuery.java) to get the actual data back. Feb 09 00:52:48 I don't know if this even works though. I made a recent change that should make it work (noticed that the initialization sequence wasn't what I thought) Feb 09 00:52:56 Agamemnus, wait but they don't have the app at all, let alone an AndroidManifest Feb 09 00:53:02 Wait what Feb 09 00:53:15 Why are we going to the play store? Feb 09 00:53:30 Agamemnus, so people see these stickers and hold their phones to them. It has my applications pacakge. com.snappiesticker.frontcam Feb 09 00:53:40 I see Feb 09 00:53:54 if they don't have the app, it directs to the play store. I would like to see how many people are going to the play store Feb 09 00:53:56 So you just want to record the act of going to the play store, ok that makes sense Feb 09 00:54:07 then obviously I already know the total downloads Feb 09 00:54:09 well, that doesn't seem to need anything special Feb 09 00:54:28 Agamemnus, thats what I was assuming, but how can I get this data/info? Feb 09 00:54:45 programming stuff Feb 09 00:54:48 I don't know Feb 09 00:54:53 Use Javascript :D Feb 09 00:55:06 can I add javascript to my play listing page? Feb 09 00:55:41 i meant, javascript in your app Feb 09 00:55:43 T_T Feb 09 00:56:07 Agamemnus, wait but then I have the same question as before. These visitors don't have my app yet. Feb 09 00:56:52 WHaaaaaat Feb 09 00:56:59 What's getting the tags? Feb 09 00:57:52 Ok a person sees an sticker on a wall with an nfc chip in it. Its says hold phone here. They hold their phone on the sticker, and it sends the application package record Feb 09 00:58:08 if they don't have the app, android redirects them to the google play store Feb 09 00:58:23 I see Feb 09 00:58:24 well Feb 09 00:58:45 regardless of whether they decide to download the app or not, I would like to see that they visited the store Feb 09 00:58:49 you can't track anything if they don't actually have any program on their phone Feb 09 00:59:25 Maybe if you had access to google's visitor logs Feb 09 00:59:31 or Feb 09 00:59:44 you can force them to use your wifi and then packet sniff it ^_^ Feb 09 00:59:47 or something. Feb 09 01:01:25 lol. is there any way to access google's visitor logs? Feb 09 01:01:45 bilb_ono: Seriously? Feb 09 01:01:59 deuteros, no not seriously Feb 09 01:02:05 well Feb 09 01:02:09 but still I feel like what I want to do should be possible Feb 09 01:02:14 how does app annie do it? Feb 09 01:02:23 maybe they pay google for that information Feb 09 01:02:27 You think it should be possible to access Google's logs? Feb 09 01:02:42 I think companies like App Annie might have access Feb 09 01:02:57 but i don't think you'll get it Feb 09 01:03:11 deuteros, not all of them, but I think i should be able to know how many people are visiting my play store listing Feb 09 01:03:25 doesn't that seem pretty critical for an app developer? Feb 09 01:03:42 bilb_ono: No, it doesn't seem critical. What's critical is who installs and uses your app Feb 09 01:03:48 You can get general stats on appannie Feb 09 01:04:00 if you are advertising you will get clicks and installs Feb 09 01:07:36 deuteros__ do look over an android dev team? Feb 09 01:07:48 g00s: uh? Feb 09 01:08:31 oh well, nm. i misunderstood something you said the other day Feb 09 01:08:47 I overlook several, I'm just not sure I understand what you're saying Feb 09 01:09:33 deuteros__ what do you guys do for storage (sqlite, etc)? assuming the teams use similar technologies / libraries Feb 09 01:09:52 all using the standard sqlite so far Feb 09 01:10:23 deuteros__ do the teams use content providers or straight up db access ? Feb 09 01:10:33 both Feb 09 01:10:49 Depends on the usage really Feb 09 01:10:56 i guess i should qualift, if there is no need for IPC, if any of the teams use providers Feb 09 01:11:28 for app-private databases Feb 09 01:13:11 I am using this code (http://pastebin.com/YxKf9vRL) to add a class to a databate, but after the first added class nothing is saved. anyone know why? Feb 09 01:13:27 so i add one class, and it works, but adding a second does nothing Feb 09 01:19:44 2 newish (?) orms http://www.raizlabs.com/dev/2015/02/go-dbflow-fastest-android-orm-database-library/ Feb 09 01:19:48 and http://www.rushorm.com/ Feb 09 01:23:03 g00s: Interesting, thanks Feb 09 01:35:25 hello Feb 09 01:39:16 hello Feb 09 01:42:36 hey john67 Feb 09 01:44:45 im searching how to set the debug on the left like we do in eclipse Feb 09 01:44:55 with android studio Feb 09 01:45:35 if you're talking about the UI layout, all those tabs are dragable, you can put them anywhere Feb 09 01:46:30 Yeah, I often unhinge them and take them completely out of AS Feb 09 01:46:57 bankai_: thnks Feb 09 01:50:00 could anyone help me figure out where I'm going wrong with fragments? I have a fragment which contains a ViewPager, using a FragmentPagerAdapter. when you click the grid rows, it launches a new fragment, but I'm having trouble getting "add", " replace", and transitions working Feb 09 01:50:57 if I use replace, it breaks my GridView on return, and if I use add, my app crashes when I leave a detail view, something about overlapping transitions Feb 09 01:53:34 I think it has something to do with add() not putting it in the same container? Feb 09 01:54:14 What is the most efficient: creating a fragment from the main activity with a constructor that includes the data you need, referencing the data you need by creating MainActivity m=(MainActivity)getActivity(); the m.ITEM/METHOD needed, or creating a parcelable? Feb 09 01:54:16 which I think is why replace() isn't working too, since it does and it makes my pager stop working correctly Feb 09 01:56:20 TheKarlBrown, send in a Bundle with the information you need Feb 09 01:57:10 so the parcelable bundle wins? Feb 09 01:57:59 (for all data types that are not in bundles normally like custom data types, 2d arrays, etc) Feb 09 01:59:23 well, it depends Feb 09 01:59:41 what are you sending in? does it need to be a Parcelable? Feb 09 02:00:28 I have a 2d arraylist Feb 09 02:00:44 I have a crazy huge custom data container consisting of arraylists Feb 09 02:00:57 the data container MUST be parcelable for performance issues Feb 09 02:01:36 errr the data container is lists not arraylists Feb 09 02:02:05 I suppose I could pass them all individually, and based on what my fragment needs then have mainActivity filter them accordingly (or my mysql database serverside then push a filtered copy) Feb 09 02:02:57 I would say the Parcelable is probably the best way to go then Feb 09 02:04:06 <_genuser_> anybody see any problem with sending ByteArray (image) via intent to an IntentService? Feb 09 02:04:38 _genuser_ dont put that kind of data in an intent Feb 09 02:04:39 <_genuser_> Intent supports it, I guess it would be parcelable/seriablizable, etc. etc. so why even bother creating external queues. just send it to the IntentService. Feb 09 02:04:47 put a pointer to it, put the real data on the fs or something Feb 09 02:04:56 <_genuser_> g00s: fs (filesystem)? Feb 09 02:05:00 y Feb 09 02:05:25 <_genuser_> hmm, you think an image is larger content and would slow things down? Feb 09 02:06:02 <_genuser_> I was just thinking that it would be easier to just pass it to the IntentService and be done. but I guess I could rig up another solution if there's a good reason. Feb 09 02:06:55 there is a limit to the size of an Intent's bundle Feb 09 02:09:24 <_genuser_> oh, that is the best reason to go another route. :) thanks for mentioning that. Feb 09 02:12:43 is it safe to pass contexts via bundle to fragments Feb 09 02:13:18 no Feb 09 02:13:21 you can't Feb 09 02:13:58 they must be called via getActivity/ Feb 09 02:14:09 _genuser_, max transaction size is something like 1mb Feb 09 02:14:45 can you add() fragments to the same container? Feb 09 02:15:26 idk if that's what it is Feb 09 02:15:39 why would you? Feb 09 02:17:18 pfn: [17:50] (drinfernoo) could anyone help me figure out where I'm going wrong with fragments? I have a fragment which contains a ViewPager, using a FragmentPagerAdapter. when you click the grid rows, it launches a new fragment, but I'm having trouble getting "add", " replace", and transitions working Feb 09 02:17:28 pfn: [17:50] (drinfernoo) if I use replace, it breaks my GridView on return, and if I use add, my app crashes when I leave a detail view, something about overlapping transitions Feb 09 02:18:57 add if you haven't added before, replace otherwise Feb 09 02:20:47 could you be note specific about "haven't added before"? that specific fragment, that container, that activity, etc? Feb 09 02:21:25 more* Feb 09 02:41:09 anyone tried this already: http://tools.android.com/tech-docs/unit-testing-support **** ENDING LOGGING AT Mon Feb 09 02:59:58 2015