**** BEGIN LOGGING AT Fri Nov 11 03:00:01 2016 Nov 11 03:10:56 Hi all, I am trying to authenticate to github and get an access token, I would like to use a webview so users dont get dumped into another app and then come back and in looking I found this guide (http://lethargicpanda.tumblr.com/post/14784695735/oauth-login-on-your-android-app-the-github) which for the most part is okay. The problem is that the .postUrl part. the query isn't getting added to the url for some reason. All the Nov 11 03:10:56 examples I'm finding online are using "EncodingUtils.getBytes(postData, "BASE64")" but EncodingUtils is deprecated. Are there any alternatives you know about? Nov 11 03:13:36 Would this work? Base64.encode(postQuery.getBytes(), Base64.DEFAULT) Nov 11 03:14:01 (where postQuery is a string) Nov 11 03:45:20 Anyone reversed engineered and disabled azuki's screen mirroring blocking system? Nov 11 05:20:16 I've got a really weird problem. I'm trying to incorporate some opengl with the ndk. I've got it compiling and running and even rendering things correctly, but over the course of a few minutes it looks like the rendering is getting slower. The rendering isn't actually getting slower though; the render call is being made roughly 60 times a second, the screen just isn't updating that often. Does anyonne know Nov 11 05:20:16 what it could be? Nov 11 05:41:18 Hey, we've run into a bit of an issue while developing our app. We're looking into blind accessibility and as it stands the Recognizerintent for the "Speak now" and "Speak" when using voice recognition renders it utterly useless for the blind Nov 11 05:41:59 There can't be a bug that glaringly bad, right? We've found nothing about this on stack overflow, nothing anywhere really Nov 11 05:49:20 Nobody? Nov 11 05:49:44 There has to be some means of preventing the damn thing from reading over itself when trying to accept voice input Nov 11 06:01:30 hi Nov 11 06:01:33 im back Nov 11 06:02:34 Im having some dev issues, trying to make this app but elements keep moving on the screen Nov 11 06:08:35 why do things change size when they are not told to? Nov 11 06:21:30 anyone up? Nov 11 06:23:39 * Leeds is up all night to get lucky Nov 11 06:23:56 also, because it's 2:30pm here Nov 11 06:26:22 lol Nov 11 06:26:30 so you have any experience with webview? Nov 11 06:27:40 I'm aware of such a thing... Nov 11 06:32:13 hi lol Nov 11 06:44:37 ah I have exp with webview :D Nov 11 07:44:19 Hello Nov 11 07:44:41 Is anyone there? Nov 11 07:44:55 join #android Nov 11 07:49:12 no Nov 11 07:58:13 yo Nov 11 08:00:36 we have GCM in project that in production now. But in new version, we still use GCM (not FCM) and update goolgle-play-services-gcm (8.3 -> 9.8). In new version we use same package name. So in new version, old code for GCM not working. I tried in standalone project and everythuing works, and i think than new google-services.json needed. Nov 11 08:01:34 so if i generate new google-services.json for new project, will old (that now in production) will still work& Nov 11 08:01:38 ? Nov 11 08:04:59 hi there Nov 11 08:05:11 I'm trying to sign up for Google Developer Console but when I try to pay the $25 I keep getting the error message: An unexpected error has occurred. Please try again later. Nov 11 08:05:23 Could anyone help me with this? Nov 11 08:08:50 Whats the assured way to get accurate time of network /sim provider? Nov 11 09:09:29 Hello, does all android apps developed in Java? Nov 11 09:09:42 no Nov 11 09:09:54 but java is primary language Nov 11 09:10:00 lately kotlin comes out of shadows Nov 11 09:10:07 what are the popular languages for android devs? Nov 11 09:11:09 i'd stick with java, preferably with retrolambda Nov 11 09:11:57 other popular languages are c# (for xamarin) or javascript (i.e. phonegap/cordova) Nov 11 09:12:32 thank you, Nov 11 09:13:21 also what is Android N and how it differes from "regular" android? apps developed for android won't work with android N and vise versa? Nov 11 09:14:07 android N is just the newest android Nov 11 09:14:21 just like marshmallow or lollipop before Nov 11 09:14:21 MaximB: android versions are given codenames before release, in alphabetical order - 'N', aka Nougat is the codename for Android 7 Nov 11 09:14:53 and the easy way to remember which is which is to go to the Google HQ, where they have statues... Nov 11 09:15:23 i thought it goes alphabetically :v Nov 11 09:15:28 just like with Ubuntu releases :) Nov 11 09:15:41 ubuntu soon will be ZZ Nov 11 09:15:45 then no more letters Nov 11 09:15:47 yes, except tasty treats rather than animals Nov 11 09:15:50 how didnt they predict that Nov 11 09:15:52 yeah, and then A Nov 11 09:16:21 Angry Aardvark Nov 11 09:16:36 is Debian still doing Pixar/Toy Story characters? Nov 11 09:16:47 honestly I don't even know what 80% of Ubuntu animals mean Nov 11 09:17:00 hmmmmmmmmm, why do things move position? Nov 11 09:17:06 Wanking Wildebeest Nov 11 09:17:29 so anyway, if an app developed from Android AM, will it work on N? Nov 11 09:17:37 *android M Nov 11 09:17:49 *for Nov 11 09:17:55 yes Nov 11 09:18:14 there is target sdk, which should be always newest and minsdk, the oldest version you want to support Nov 11 09:18:16 cool, now I *only* need to learn programming ;) Nov 11 09:18:20 there are many writings out there on compatibility... Nov 11 10:01:33 Hey I'm trying to put a contact list in my app. I'm wondering how does one achieve the alphabetical images shown in this image: http://cdn.ilovefreesoftware.com/wp-content/uploads/2014/11/Search-Contacts.png Nov 11 10:02:20 is it preferable to pass reference types between fragments in Bundles? or is there a development pattern for having fragments alter the state of a shared object? Nov 11 10:08:37 dean: what do you mean by 'alphabetical images' ? the circles with letters? Nov 11 10:12:32 xorgate: Yeah exactly. I don't need the code I just mean in theory how is that achieved? Nov 11 10:13:13 dean: either you make a bitmap onto which you draw a circle and a letter, or you use a TextView with 1 letter and a circle-drawable as background Nov 11 10:13:30 looking to the future, you probably want people's pictures to be possible so maybe the BItmap route is best Nov 11 10:14:42 xorgate That's great! I just wanted to make sure that there wasn't some googlish way of doing it and i didnt want to write inferior code to do the same thing Nov 11 11:25:39 hello, im using preferneces fragment with SwitchCompat, but SwitchCompat looks older style in pre 21, it is not supposed to be look same ? (Compat) Nov 11 11:32:50 hey anyone here? Nov 11 11:33:12 i'm trying to use grid view with cardview and baseadapter Nov 11 11:33:33 but it is not working please look at my xml and let me know what is wrong Nov 11 11:34:16 it is my xml file http://pastebin.com/nqn1S80h Nov 11 11:57:59 Heya Channel Nov 11 12:03:21 hi Nov 11 12:07:29 I'm trying to do a Shared Element Transition from my Splash Screen Activity and it's giving me some trouble Nov 11 12:08:13 because it's a Splash Screen I want to finish it Nov 11 12:08:33 but if I do the homescreen becomes visible during the transition Nov 11 12:28:04 Can anyone tell me or point to docs that tell how Retrofit creates and populates response objects? I have an error response in Json that contains an error code. I know how to make Retrofit return a populated Error object. Nov 11 12:28:07 But elsewhere I have an enum that contains matching errorcode and a corresponding error message. I'd like this message looked up and set when Retrofit creates Error. Will Retrofit call Error#setCode(int code) if it finds one? I can make my side-effect in here. Nov 11 12:36:49 Ah screw it, I don't think I should do this kind of stuff in my model anyway. Nov 11 12:58:26 there is screen ghosting on my i3 wm when i run the android-studio's emulator in a separate screen Nov 11 13:09:32 Hi all Nov 11 13:10:15 is it normal, or not, for an app to be have 'about' view where it details aspects like support contact addresses, app version (version name/version code) etc.? Nov 11 13:10:40 Or would the info presented in the Play store suffice for providing this info? Nov 11 13:13:12 I'm trying to display a mapfragment in a dialog fragment and I want this to be roughly square. In my root layout (cardview) of the dialog fragment I set the width to match parent and the height to 500dp, neither of which seems to have any effect Nov 11 13:13:19 any idea how i could set the layout? Nov 11 13:17:10 You usually don't have a root view when inflating a layout for a Dialog, so the LayoutParams are ignored Nov 11 13:17:19 You can try wrapping the View with a size in a FrameLayout Nov 11 13:24:45 Good Evening! Nov 11 13:25:48 someone here? :) Nov 11 13:26:24 hi Nov 11 13:26:26 Hey! Nov 11 13:27:43 I'm currently making an App, i'm a complete beginner, i workd 2 months already on my little app... i'm searching for someone who is willing to answer some complicated questions i have! i have in my opinion huge problem! :( Nov 11 13:28:19 Don't ask to ask. That wastes a question. Nov 11 13:28:56 i just dont want to spam and maybe get someone to query and post my app, as i dont want to advertise it. Nov 11 13:29:30 It's about Google Play Connection... Nov 11 13:29:35 Achievements Nov 11 13:29:46 dont find any useful tutorials... Nov 11 13:30:17 https://developers.google.com/games/services/common/concepts/achievements Nov 11 13:31:08 Yes, that part is kinda understandable, but how to get the app ready to talk with google is a mysterious to me Nov 11 13:31:55 Down at the bottom of that page is a link that says "Android". You should probably start by clicking there. Nov 11 13:33:31 i'm trying to use grid view with cardview and baseadapter Nov 11 13:33:37 but it is not working please look at my xml and let me know what is wrong Nov 11 13:33:39 it is my xml file http://pastebin.com/nqn1S80h Nov 11 13:33:59 TERMINALi: You forgot to write what "it is not working" means Nov 11 13:34:16 SimonVT, cardview Nov 11 13:35:26 SimonVT, anything wrong with my xml? Nov 11 13:35:29 Does it crash? Does it display weird colors? Is it not visible at all? Nov 11 13:35:42 i made a listview with items from a sqlitedb, that was SUCH a pain... Nov 11 13:35:45 You can't just pastebin some xml and write "it is not working" Nov 11 13:35:52 no images are visible normally like it has to in a grid view Nov 11 13:35:54 Anyway, good luck Nov 11 13:36:32 I guess a lot of people are coming here daily and ask for support hm? :D Nov 11 13:36:35 SimonVT, sorry if i did something wrong. I'm new to all this Nov 11 13:37:47 and Thanks Dagmar, i will comeback with a accurate error discription shortly (if it's not working...) Nov 11 13:37:48 I've no idea why you're setting the height of hte imageview to 180dp, and the maximum height to only 100dp. Nov 11 13:37:58 i will take care of that next time, for now it does feels like i have done something wrong in a xml thats why cardview not visible other wise if you guys know a good tutorial for cardview expand and close please share Nov 11 13:39:23 Dagmar, as i'm learning all this i need to make two column and i'm unable to find a way. That's why i have fixed the size to 180 Nov 11 13:41:42 *sigh* Nov 11 13:41:53 TERMINAL, try it with ItemViewHolder Nov 11 13:42:30 mozzi, what setting image size ? Nov 11 13:43:47 it should be visible anyway, no ? Nov 11 13:43:55 just a bit glitchy Nov 11 13:44:09 It's visible when I pull it into AS's XML layout editor here. Nov 11 13:45:05 @Terminal, you want to make a list with multiple columns right? Nov 11 13:45:47 and you use a listview right? Nov 11 13:45:57 recyclerview was way easier for me Nov 11 13:46:05 no mozzi i have separate gridview with two column using base adapter Nov 11 13:46:18 and other one is just a recylcerview with cardview Nov 11 13:46:57 i have two problems here first one is images in a gridview which is not working as a cardview Nov 11 13:47:29 other one as i want the recylerview to expand the card and show some text and button on click Nov 11 13:47:50 i hope i'm able to explain my problems :( Nov 11 13:48:20 its anyway hell complicated your description :D Nov 11 13:49:05 which part is confusing :p Nov 11 13:49:33 sorry about English it is not my mother tongue Nov 11 14:34:59 I have a detail view Nov 11 14:35:16 you can think of it like a metro app. You click on it and then you go to the detail activity Nov 11 14:35:21 you scroll down and there are all the stops Nov 11 14:35:38 i am using a recyclerviwe and everything works fine but the scrolling isn't smooth Nov 11 14:36:01 the data is completely inside memory and there's nothing resource heavy inside these cards (no images/videos/...) Nov 11 14:36:31 inside a listview i can just flick and it will scroll fast and slowly fade out Nov 11 14:36:36 but here it just stops immediately Nov 11 14:41:32 ok got it working Nov 11 14:41:33 nvm Nov 11 14:46:28 So I've forked the u2020 app and setup a travis page to test the emulator on there myself, and I'm seeing this error about 32-bit that isn't happening on the original master branch on travis Nov 11 14:46:30 https://travis-ci.org/caseykulm/u2020/builds/174926564 Nov 11 14:47:27 The equivalent worked fine here, https://travis-ci.org/JakeWharton/u2020/builds/161380467 Nov 11 14:49:49 There's an APK I want to modify a single line of code in (decompiled down to java). Any chance this will work? Nov 11 14:50:36 ldiamond: ❓ Nov 11 14:50:39 could try Nov 11 14:50:54 doesn't sound like it would work though Nov 11 14:54:33 I'd need to modify the smali directly? Nov 11 14:59:04 Hi all. Is SharedPreferences smart enough to avoid re-writing the file if the contents would be identical on a commit() ? Nov 11 15:01:36 hi, how i can remove focus from edittext when my activity is launched? Nov 11 15:01:37 fullstop: i think , No,it is not, u have to do it manually Nov 11 15:02:31 that's kind of unfortunate Nov 11 15:02:52 This should not normally be much of a problem Nov 11 15:04:10 If you only do commits when a setting changes, or after the user confirms the changes, it's unlikely to be a noticeable waste of resources. Nov 11 15:04:30 t0th_-_: Something else has to take focus then Nov 11 15:05:07 Dagmar: I will just check if the value is already set before setting it. Nov 11 15:05:34 It's not being used for any sort of GUI, so there's no setting changes or user interaction. Nov 11 15:12:02 Dagmar: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/SharedPreferencesImpl.java#L568 Nov 11 15:12:13 looks like it does compare Nov 11 15:12:22 at least in the master branch. Nov 11 15:13:45 Hello, I'm using one RecyclerView and one ImageSwitcher, I want to tap in a image thumb of the RecyclerView and change that image to full quality (or not thumb) image inside ImageSwitcher, like an image gallery. Any hint? Nov 11 15:15:03 I mean.... have to set a listener into any thumb image view, right? that listener can change the ImageSwitcher ? Nov 11 15:16:07 and... I want to swipe over ImageSwitcher, but don't know how to get next/prev image from RecyclerView Nov 11 15:16:28 pmercado: https://guides.codepath.com/android/Shared-Element-Activity-Transition Nov 11 15:17:40 yiati: thanks, let me read.... Nov 11 15:20:56 hi in order to use my android phone in android-studio what mode do i need to be in? Nov 11 15:22:25 androidabc: debug mode Nov 11 15:25:47 does MTP mode need to be enabled or disabled? Nov 11 15:26:06 and lastly is there a quick and easy way to enable and disable debug mode so the phone can be used normally Nov 11 15:27:06 androidabc: you need to have usb debugging enabled Nov 11 15:27:45 gordon_, got that I take it by the repeat that MTP mode isnt available when debugging is Nov 11 15:27:58 what about the last question about undoing debug mode? Nov 11 15:28:11 tried that once before and ended up having to reset phone Nov 11 15:28:28 you need to go to options and disable it Nov 11 15:28:54 does that enable debug logging or is that separate? Nov 11 15:28:59 also - what OS are you using ? Nov 11 15:29:11 debugging = logging Nov 11 15:29:17 if you mean logcat Nov 11 15:30:04 both phones have lollipop but the second phone the one I want to troubleshoot a crash on of an app is in use and dont really want to screw it up and have to do a reset in order to get it to function correctly again...thats what I ended up doing last time Nov 11 15:30:33 I always see all the millions of modes on Samsung devices Nov 11 15:30:37 I just ignore them :D Nov 11 15:31:24 androidabc: is it your app ? Nov 11 15:31:36 phone last time was slow as mollases after enabling debug mode and stopping debug mode Nov 11 15:31:40 yes Nov 11 15:31:58 enabling usb debugging doesnt slow phone Nov 11 15:32:18 ok then it was a coincidence thanks I will try it again Nov 11 15:32:58 I still dont know what is your problem :D Nov 11 15:36:27 I get a unable to connect usb device when plugging in phone to the computer this is on linux(Ubuntu) Nov 11 15:36:52 good cable and debugging is enabled Nov 11 15:37:03 good as in its a sync cable Nov 11 15:37:31 How does a usb mic appear in /dev on android? Nov 11 15:37:40 androidabc: https://wiki.archlinux.org/index.php/android#Adding_udev_Rules Nov 11 15:38:04 thanks yiati Nov 11 15:38:30 The whole adb section on there is good for getting setup on linux https://wiki.archlinux.org/index.php/android#Android_Debug_Bridge_.28ADB.29 Nov 11 15:42:36 androidabc: you need to add udev rules Nov 11 15:47:05 Are there any tools on a stock android build that let me mess with alsa? Enumerate devices, etc? Nov 11 16:21:30 patarr: https://developer.android.com/ndk/guides/audio/index.html Nov 11 16:49:00 Hey - quick question about distribution. I'm trying to release an app that has both a mobile version and a tv version. Each of these have their own modules in the android studio project, so when i build, i have to choose mobile or tv releases. Is this normal or should I be able to compile both versions into one APK? Nov 11 16:49:45 And if having two APKs is normal, will uploading both to the google play console work or will the second upload overwrite the first? Nov 11 16:50:40 I get "ActivityManager: Unable to start service Intent { intent name } U=0: not found" in logcat but if I grep the extracted apk, smali_classes2/ contains the class. Nov 11 16:52:24 is the service in the manifest? Nov 11 16:52:41 if I grep the name in AndroidManifest no Nov 11 16:52:58 that’s probably why Nov 11 16:53:41 so turns out you can't upload a mobile-release.apk and a tv-release.apk Nov 11 16:53:46 s73v3r: what's the difference between smali/ and smali_classes2/ ? Nov 11 16:53:51 no idea Nov 11 16:54:12 The service isn't in the original AndroidManifest.xml either though Nov 11 16:55:10 eemgr: You can upload two different APKs with different version codes. Play store will select highest version code based on whether the apk supports the device (e.g. have tv apk as highest version code, filter out anything but tvs in manifest) Nov 11 16:55:30 But, no reason you can't just create a single apk and launch different activities/show different layouts based on device Nov 11 16:55:49 well the TV needs a leanback launcher Nov 11 16:56:50 so i wasn't sure how that worked Nov 11 16:57:02 Shouldn't be a problem Nov 11 16:57:05 versus Nov 11 16:57:25 SimonVT: can you have one activity that contains both of those launcher categories? Nov 11 16:57:43 (testing now) Nov 11 16:57:49 If not, you can just have two activities Nov 11 16:58:01 okay, so each platform would have a different default activity? Nov 11 16:58:03 TvActivity extends NormalActivity Nov 11 16:58:15 Whatever works for your layout Nov 11 16:59:07 okay thanks, i'll play with this a bit more Nov 11 17:29:40 anyone know an example of visitor in android. I still cant seem grasp this pattern Nov 11 17:29:56 you shouldn’t need android specific code Nov 11 17:30:05 it’s a common pattern Nov 11 17:30:46 but when calling the fragments with the pattern seems wonka, with the lifestyle Nov 11 17:31:30 and i want to say it kills the DRY principle, but i think im just not understanding why its a benefit Nov 11 17:32:39 android studio isn’t showing logcat anymore Nov 11 17:33:51 dar10s: This website is awesome for design pattern review https://sourcemaking.com/design_patterns/visitor Nov 11 17:33:57 Even has simple Java examples Nov 11 17:35:07 dar10s: Although I wouldn't try to do much of anything to a Fragment Nov 11 17:35:25 have it display your view, and do nothing more to the actual fragment object itself Nov 11 17:37:24 nice info Nov 11 18:18:47 Hello! My long-extra in my intent is being assigned as, say, 13 but when I retrieved after it has been parcelled it comes out as, say, 5 Nov 11 18:19:11 The intent is used in a broadcast, if that makes a difference Nov 11 18:19:42 Stepping through the code, everything looks great up until I pull the value out of the intent. What should I be watchful for, here? Nov 11 18:21:48 The broadcast is wrapped by PendingIntent, as well Nov 11 18:24:39 http://tools.android.com/recent/androidstudio23canaryavailable Nov 11 18:25:17 Do you ever set the extra to 5? It's probably just updating your previous PendingIntents Nov 11 18:25:46 Make sure the intents are unique https://developer.android.com/reference/android/content/Intent.html#filterEquals(android.content.Intent) Nov 11 18:26:46 No :/ I don't Nov 11 18:27:03 Gonna clean and retrace everything Nov 11 18:27:14 Then I don't believe you Nov 11 18:27:40 The only time I set the value is one time when I create the intent Nov 11 18:34:07 Has anyone used RxAndroidBle? Nov 11 18:39:23 Create a notification with delete intent: pendingIntent(intent(COMPLETED, id=22)), service receives intent when the notification is swiped away: intent(COMPLETED, id=5) Nov 11 18:40:42 Ok, apparently PendingIntent.getService(context, 0, intent, 0); breaks the stuff. Using a requestCode (the first zero) of 1 fixes the problem. Nov 11 18:47:09 Actually, it is non-unique request codes messing with things. Setting the requestCode to (int)id seems to fix it permanently Nov 11 18:47:19 Anyone know how to verify why "ActivityManager: Unable to start service Intent { intent name } U=0: not found" that intent isnt found. The class is present in the apk Nov 11 18:48:22 Have you put an entry for the Service in your manifest? Nov 11 18:48:40 Nov 11 18:49:28 When you only ever create 1 PendingIntent, the request code, etc, shouldn't matter Nov 11 18:49:45 I'm creating several Nov 11 18:49:51 So that definitely explains it Nov 11 18:49:59 And in one of those, do you set the extra to 5? Nov 11 18:50:05 Nope Nov 11 18:50:15 Not sure where that seemingly random value comes from. Nov 11 18:50:30 Actually, well, yes, in one of the intents, I do. Nov 11 18:50:43 Well, there you go Nov 11 18:50:48 But not during the same session. Nov 11 18:50:48 explodes: no since I just decoded (with apktool) and rebuilt. I don't think it's missing a manifest entry but rather something isn't being rebuilt properly Nov 11 18:51:52 Session? Nov 11 18:52:03 App launch / App kill cycle Nov 11 18:53:40 PendingIntents are delivered to the system, not tied to your app lifecycle.. Anyway, the PendingIntent methods will update the intent when the two intents are equal (as per filterEquals) Nov 11 19:08:28 i'm really confused where to start trying to change things in my gradle files to get my app to compile. i'm trying to implement Google Play Games Services according to the instructions but i'm getting the error "Multiple dex files define Lcom/google/android/gms/internal/zzqv$zza;". it must have something to do with using multiple libraries that are somehow the same library and define the same symbols but i have no idea where to ... Nov 11 19:08:34 ... change my gradle files. here are the relevant parts of my gradle files: http://pastebin.com/hxCv4QxJ Nov 11 19:11:26 SimonVT: Good to know, thanks Nov 11 19:16:20 abax: ./gradle dependencies Nov 11 19:20:29 am trying to implement a foldable ui in a list view where the "child items" gets folded too...kindof like reddit Nov 11 19:21:04 but no idea how to tell the child list views that their parent has been folded... Nov 11 19:21:29 orbyt_: do you mean gradlew or gradle? i don't see a program called gradle anywhere under my sdk or my project Nov 11 19:21:47 gradlew is just gradle with a wrapper Nov 11 19:34:24 orbyt_: what's supposed to happen after i run ./gradlew dependencies? it just said: Root project, No configurations, BUILD SUCCESSFUL Nov 11 19:38:31 abax: https://docs.gradle.org/current/userguide/tutorial_gradle_command_line.html#sec:listing_dependencies Nov 11 19:41:24 orbyt_: ok i'll check that later (just got some other things to do) Nov 11 19:47:43 I have a local service that I am using from my client. My client would like to register a callback on the service for special events Nov 11 19:48:03 currently, the service uses broadcast intents for the callback mechanism to my clients Nov 11 19:48:16 however, I am wondering if intents are required and whether I can just use a typical observer pattern Nov 11 19:48:22 and just register an object directly Nov 11 19:48:33 my service is a binder service Nov 11 21:18:54 Can you preserve the position of a RecyclerView in a fragment when the orientation changes? Nov 11 21:19:15 TacticalJoke: hi Nov 11 21:19:46 Hai. Nov 11 21:21:58 How is your app going? Nov 11 21:24:51 Can anyone give me a hand? I'm using android studio and a nexus 5 virtual device, and just can't change the gps location. I click "send" and nothing happens... I'm not sure how to fix this Nov 11 21:38:28 jorgebonafe: what should happen? Nov 11 21:42:06 Melatonina: I just show a marker on the map. it works on my mobile, but not on the emulator Nov 11 21:43:15 onLocationChanged is not being called at all Nov 11 21:45:09 Sorry, I can't test it on my computer without writing some code. Nov 11 21:45:28 There is not even google maps on the emulator Nov 11 21:46:54 ok.. thanks anyway Nov 11 21:59:28 Hi i have ubuntu 16.04 and have created a udev rule for my android device but android studio still does not see it (even after reload and after reboot) Nov 11 22:00:31 does the device is in usb debug mode Nov 11 22:00:50 let me double check for sure but I would have to say yes Nov 11 22:03:06 how does udev rule looks like and how the lsusb line of the device looks like Nov 11 22:03:52 hold on but first question...tape kernel version 4 times to enable usb dev mode correct? Nov 11 22:04:27 7 times to uncover developer options Nov 11 22:04:37 then in developer options enable usb debugging Nov 11 22:04:44 then replug usb Nov 11 22:10:18 Ashiren, http://paste.debian.net/894770/ ... thanks Nov 11 22:10:55 Hi all Nov 11 22:11:02 Hi, Michal Nov 11 22:11:22 Is 44494 your phone number? Nov 11 22:11:22 so, does it work Nov 11 22:11:26 I have problem with login as facebook for firebase Nov 11 22:11:26 or age Nov 11 22:11:39 no debugging options appear and usb enabled still no go Nov 11 22:12:09 http://wklejto.pl/264968 Nov 11 22:12:12 this is my code Nov 11 22:12:25 I based on tutorial from official tutorial firebase Nov 11 22:13:21 but, if I click "login as fb" getting error: com.google.firebase.FirebaseException: An internal error has occurred. [ Unsuccessful debug_token response from Facebook: {"error":{"message":"(#100) You must provide an app access token or a user access token that is an owner or developer of the app","type":"OAuthException","code":100,"fbtrace_id":"GTxg9KGkZoL"}} ] Nov 11 22:13:58 But, in 92 line I have fb token Nov 11 22:13:59 transhuman: hmm? but it doesnt see the phone at all? lsusb should show the device even if no udev rules invoked Nov 11 22:14:35 and on 141 line I have fb token, but problem is here: Nov 11 22:14:36 Nothing in lsusb == cable no talky Nov 11 22:14:39 android studio doesnt at least I dont think it does if I go to run menu and select debug it doesnt appear in list Nov 11 22:14:45 AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken()); mAuth.signInWithCredential(credential) Nov 11 22:14:59 what usb version does it need to be on computer? Nov 11 22:15:00 any suggestions? Nov 11 22:16:00 Michal44494: did you meet the required condition? ("You must provide an app access token or a user access token that is an owner or developer of the app") Nov 11 22:16:20 P.S. 4494 this random number ;) Nov 11 22:16:49 transhuman: well, but when you plug does the show file explorer, mtp or soething indicatng that device is plugged? Nov 11 22:16:56 I'm creator Nov 11 22:17:21 ok. But did you provide the token? Nov 11 22:17:25 I can browse the device through the file manager Nov 11 22:18:06 my udev rule for LG device is SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0664", GROUP="users" Nov 11 22:18:51 through nautilus to be exact Nov 11 22:19:50 I get token in 90-93 line (I set Log, and I see fb token), but lost in 145-146 line Nov 11 22:20:41 so the one I posted is incorrect Ashiren...which file should that go in? Nov 11 22:20:50 I set in facebook developer panel oauth callback to https://beertime-da669.firebaseapp.com/__/auth/handler CANCEL SAVE Nov 11 22:22:25 it can be any file in /etc/udev/rules.d/, but the "standard" is 51-android.rules Nov 11 22:25:25 Can I debug this error? Nov 11 22:42:55 Ashiren, is sudo udevadm control --reload-rules good enough or does it need a reboot Nov 11 22:45:45 rebooting Nov 11 22:47:33 Reloading the rules and hotplugging the device would have worked Nov 11 22:50:44 hi does the device need to be configured as a MTP device or other? Nov 11 22:51:08 it says its connected as mtp device Nov 11 22:51:10 It needs to have debugging enabled Nov 11 22:51:24 If you didn't enable adb debugging you're not talking to it with AS Nov 11 22:51:59 Go into "About Phone" and tap everything 9-10 times until one of them talks about enabling developer options Nov 11 22:52:04 ok maybe debug mode isnt enabled then. I have the debug options showing I thought they didnt show up if debugging wasn't enabled Nov 11 22:52:30 Then back up to the top level settings menu and it'll be there above About Phone. Go into Developer Options and enable Android Debugging Nov 11 22:52:53 Once that's lit up it'll present a different set of identifiers over USB Nov 11 22:54:48 I half suspect I should go look into this and yell at someone upstream Nov 11 22:55:08 There's wildly enough android users that they should already be shipping a decent rule for that Nov 11 22:56:56 I am now showing a revoke usb debug option and when I tap the first thing 9 times it says no need debugging already enabled Nov 11 22:57:04 so does that mean its enabled? Nov 11 23:02:39 I see no option for enable android debugging Nov 11 23:03:34 Android Debugging is under _Developer Options_ Nov 11 23:04:21 Tap the build number under About Phone a bunch to enable developer options in the previous menu Nov 11 23:04:30 It's got an icon of {} Nov 11 23:06:45 right i am there. usb debugging is in fact enabled but still says MTP mode Nov 11 23:07:05 (under lsusb) Nov 11 23:17:27 oh snap, there's Intent extras annotations? Nov 11 23:17:29 niiice Nov 11 23:38:02 hi everybody .... How do switch on position determination exclusively by GPS, no WiFi or Phone mast? Nov 11 23:41:38 Theres an option that will switch how location is calculated according to the best of the options (eg. if you're indoors). You can also explicitly use a single provider Nov 11 23:41:49 These options are gone over very clearly in the docs/guides Nov 11 23:47:25 orbyt_: sorry, I can o nly find the mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) Nov 11 23:48:13 that does wht you are sying if I understand well .... but I am trying to do something else .... switch on GPS or nothing .... Nov 11 23:50:19 Im not sure what you're asking, but as stated you can explicitly choose a provider. For getting GPS location: http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android Nov 11 23:51:12 thank yu that may just be it, thank you! I could not find it! Nov 12 00:33:26 What's the difference between "app:srcCompat" and "android:src" for ImageViews? Nov 12 00:38:07 Hmm http://android-developers.blogspot.com/2016/02/android-support-library-232.html Nov 12 00:38:22 It says app:srcCompat was added for referencing vector drawables Nov 12 00:38:47 but they work normally using the regular android:src Nov 12 00:39:09 Im not sure, perhaps someone else can chime in. Nov 12 00:46:01 Thanks, orbyt Nov 12 00:51:39 I've got a bit of a weird issue that I can't figure out. I am making a very simple login and registration app for practice and I managed to insert data in a sqlite database however when I export the db through ADM the db is completely empty. Nov 12 00:52:50 however with a very basic check to see if a username is already in the DB I can stop duplicate inserts and that seems to work. So I am rather confused Nov 12 01:00:12 Ever make an app and you're like naaaa I shouldn't release this Nov 12 01:01:29 darkaap: Are you sure you're not grabbing a database that was built when you ran your first iterations of code? Try uninstalling and re-pulling after you fill it up Nov 12 01:01:40 If it is still an empty database, ping me and I'll help you out Nov 12 01:03:39 explodes: I'll give that a shot, it was working earlier and then everything broke for no apparent reason same code everything and now it works half Nov 12 01:04:27 explodes: Do you by anychance know a quicker way to check DB contents then saving it local and opening it in a sqlite browser? Nov 12 01:04:46 Nope Nov 12 01:04:58 But really, it is just two commands: pull & load Nov 12 01:05:17 If your device is rooted, you could do it on-device Nov 12 01:05:34 (emulators are rooted) Nov 12 01:07:31 explodes: How would I go about doing it through the emulator? Nov 12 01:09:53 I think this is what you'd want: https://play.google.com/store/apps/details?id=com.kokufu.android.apps.sqliteviewer.free&hl=en Nov 12 01:10:31 Let me try it out though, before I recommend it Nov 12 01:11:10 I know offhand if this app is ok, i'd recommend using a tablet emulator so that a small screen doesnt hindery ou Nov 12 01:13:46 That app sucks Nov 12 01:13:59 Rather, you cannot navigate to /data/data/ Nov 12 01:14:11 I'm using a program similar to that to check my db right now, I just uploaded it to github and pulled it again same issue Nov 12 01:14:30 Uploaded to github? Nov 12 01:15:34 Nevermind that isn't quite relevant I thought that is what you meant with uninstalling and pulling it again. I forgot the DB is saved locally on the emulator ISO Nov 12 01:17:32 What are you uploading to github? Nov 12 01:17:44 Hello Nov 12 01:17:56 The app I am writing Nov 12 01:18:02 I'd really just recommend pulling the db and inspecting it with a tool on your machine, such as a browser plugin, or sqlite3 on the command line Nov 12 01:18:10 irm9355: sup Nov 12 01:18:30 I have an AndroidManifest.xml and 4 .java files, I want to turn them into a .aar Nov 12 01:18:39 darkaap: Oh. I mean uninstall the app from the device, and reinstalling it, and then rebuilding the data, then pulling the sqlite database Nov 12 01:18:50 No experience with Android Studio; is anyone for hire to do this? Nov 12 01:19:02 explodes: i'll give that a shot :) Nov 12 01:20:33 irm9355: Are you trying to make a lib? Nov 12 01:20:58 orbyt_: Yes, Android Library Nov 12 01:22:02 explodes: I think that worked Nov 12 01:22:55 explodes: I'm so dumb, I made a logic mistake I missed for the past 2 hours R.I.P Nov 12 01:24:16 irm9355: Make sure your project is setup for a library and then initiate a build. An .aar should be generated. That said, if your making a lib for use in another project, throwing it up on github and using jitpack is a better option. Nov 12 01:24:56 darkaap: nice. glad you found it Nov 12 01:25:55 explodes: So am I, if I want to use the same DB in a different activity I just have to instantiate it right? Nov 12 01:25:55 orbyt_: I know this stuff is elementary, but I'm having difficulty with it, which is why I'd like to hire someone else to do it Nov 12 01:26:46 orbyt_: Also, I need to make a .aar for my specific use case Nov 12 01:27:37 irm9355: This isnt the place to discuss jobs, as stated in the topic. I'll pm you though. Nov 12 01:28:03 orbyt_: Ah I didn't see that, sorry Nov 12 01:41:13 darkaap: How are you instantiating the database? Post some code- Home girl has made dinner so I'll bbl Nov 12 01:43:35 explodes: http://pastebin.com/8YsBvA0t Nov 12 01:51:56 damn. looks fine to me Nov 12 01:52:28 darkaap: you should just instantiate it in the next activity, yes. it will see that it is already created and migrated and just be good to go Nov 12 01:53:16 explodes: Yeah just got it working just making sure that it isn't working through some weird way I am not supposed to be doing it :) Nov 12 01:53:36 coolbeans Nov 12 02:07:33 explodes: 3 AM time to sleep, thanks for the help enjoy your day/evening/night Nov 12 02:47:32 Anyone here good with reverse engineering? Nov 12 02:48:27 Somehow an app is able to find that I tampered with it. Getting the package signature is one way, anything else you see could be a way to find that? Nov 12 02:55:32 Maybe there's a good way to actually attach a debugger and view the memory state and stack **** ENDING LOGGING AT Sat Nov 12 03:00:00 2016