**** BEGIN LOGGING AT Thu Jun 09 02:59:58 2016 Jun 09 03:18:53 Is there a way to control how many items in a recylerviewadapter or baseadapter are loaded at once in a list? Jun 09 03:35:16 hi Jun 09 03:35:55 how can i control volume button hardware Jun 09 06:00:48 hey folks, good day Jun 09 06:01:22 could i get some help please understadning the problem with this fragent http://paste.ofcode.org/Buyss67uZJSKAGnWU3LdK5 Jun 09 06:01:42 am trying to have a button with onClick Listner, and onActivityResult Jun 09 06:02:02 but cant get the onActivityResult resolved and used Jun 09 06:02:21 this fragment is for a tab within a mainActivity Jun 09 06:03:12 where is setOnClickListener? Jun 09 06:03:46 within the ViewHolder Jun 09 06:04:00 implements View.OnClickListener in the ViewHolder Jun 09 06:04:29 i mean some button.setOnClicklistener(this) Jun 09 06:04:35 then implemented the method onClick Jun 09 06:05:28 also ViewHolder doesnt have onActivityResult... Jun 09 06:06:11 it is there at the end of ti ? Jun 09 06:06:27 starting from line 40 ? Jun 09 06:06:58 is this all code? because RecyclerView.ViewHolder which you extend doesnt have onActivityResult so you cant override it.. Jun 09 06:07:32 no check this out ; Jun 09 06:08:22 http://paste.ofcode.org/TyEeMns53F6ymErNtheP3z Jun 09 06:08:28 this is the full code of the Fragment Jun 09 06:09:44 this is the main activity where the Tab is displayed and within that tap the action i need to take happen ( uploading a picture ) Jun 09 06:09:45 http://paste.ofcode.org/fJUiydxf3inpv3XNcYWiBL Jun 09 06:10:35 how to create an image list view with title and date at the right side? Jun 09 06:10:48 like opening gallery or something? Jun 09 06:10:55 anyway youd want to put the startActivityForResult and onActivityResult logic into fragment or activity Jun 09 06:11:14 i use layotParams didnt seem to work out Jun 09 06:11:34 its a bit strange that while setting up widgets height/width programmaticaly, theres no builtin dp/sp attr? Jun 09 06:12:31 Aishren are you telling me to create another fragment for onActivityResult !? or restating what you understood what i am trying to get at ? Jun 09 06:13:15 will simply what i am trying to do is have the onActivityResult respond to the onClick for the button on order to execute uploadTask with the passed Data Jun 09 06:43:39 regarding Toast, the appearance of my toasts looks diff' on diff api levels. anything i can do to unify it? Jun 09 06:52:22 raoul11: why the hell would you want that?! Jun 09 06:52:41 also, use Snakbar and it will look the same across the board Jun 09 06:53:38 thepoosh: http://i.imgur.com/albKODx.png | http://i.imgur.com/0foBGpJ.png Jun 09 06:53:45 second one sure looks better imo Jun 09 06:53:57 that is something you shouldn't be touching Jun 09 06:54:06 it's s system notification Jun 09 06:54:14 and they should look normal to the user, not to you Jun 09 06:54:22 ok, ill look into snakbar Jun 09 07:06:01 Hey, I need some help with an android app. I want to take a picture without clicking any button. How can I do that? Jun 09 07:06:11 PS : I am new to android. Jun 09 07:06:35 I tried using the Camera API but the app seems to crash. Jun 09 07:09:06 akshitkumar1: what you want to do is against the rules of the play store Jun 09 07:09:18 and will get your app removed immediately Jun 09 07:09:42 maybe he wants by voice command Jun 09 07:09:49 thepoosh: I don’t wish to publish it on play store. It is for a project I am working on, Jun 09 07:11:00 Nope. Basically I want to click a start button, it should take photos every X seconds and stop button which shuts off the timer. Jun 09 07:11:49 Additionally I wanted to acquire other data like acceleration and other sensor data and write that to the exif of the image. Jun 09 07:12:11 But I am having troubles with the initial part itself - getting photos. Jun 09 07:12:35 Any pointers/suggestions? Jun 09 07:14:47 android will not let you take a picture unless it's attached to surfaceview Jun 09 07:14:52 meaning shown on the UI Jun 09 07:17:21 thepoosh: Will I have to click any buttons on the surface view? Jun 09 07:17:37 no, but you have to have it in your UI Jun 09 07:18:18 thepoosh: Ok Jun 09 07:19:17 thepoosh: here is some helper class - https://github.com/AkshitKumar/cameraApp/blob/master/app/src/main/java/com/akshitk/cameraapp/CameraPreview.java Jun 09 07:19:36 https://github.com/AkshitKumar/cameraApp/blob/master/app/src/main/java/com/akshitk/cameraapp/MyCamera.java Jun 09 07:19:59 ^ My main activity - Does this seem fine? Jun 09 07:32:08 akshitkumar1: what error, exception do you get exactly Jun 09 07:40:28 Ashiren: http://pastebin.com/mRaQ2ggR - My error log Jun 09 07:41:01 I think the error is that the Camera is unable to open Jun 09 07:41:30 And start preview is being called upon a null object. Jun 09 07:41:42 ava.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.startPreview()' on a null object reference Jun 09 07:41:45 at com.akshitk.cameraapp.MyCamera$1.run(MyCamera.java:60) Jun 09 07:42:35 in getCameraInstance print the exception. maybe the camera is busy or some other error like no permission Jun 09 07:42:49 For my emulator I am setting the back camera to my webcam as I don’t have an android device with me. Jun 09 07:43:49 do you have in your manifest? Jun 09 07:45:14 i mean you just ignore the exception without even printing so you cant know whats wrong then Jun 09 07:47:00 Ashiren: How to print the exception? Jun 09 07:49:22 e.printStackTrace(); Jun 09 07:49:43 doesnt android studio alrerady do that when generating try() ... catch() phrase Jun 09 07:52:49 Ashiren: Sorry, I hadn’t added permissions in themanifest file. Jun 09 07:56:29 This is the new error log - it says the takePicture function is failing - http://pastebin.com/bhCVvV49 Jun 09 08:01:31 add some initial delay on timer or try with simpler example - take picture after pressing button Jun 09 08:02:10 the camera/surface hasnt been fully initialized and startPreview() hasnt kicked in yet - this is required for taking pictures Jun 09 08:03:23 Ashiren: What do you mean by adding additional delay? Jun 09 08:04:01 Ashiren: Should I be releasing the camera object - could that be the error? Jun 09 08:04:33 timer.schedule(....,5000,1000) Jun 09 08:06:57 Ashiren: Yes I did that. I saw my face for 5 seconds and then the app crashed again. Jun 09 08:07:31 then see again in your log what happened... Jun 09 08:08:11 hint: at the end of onPictureTaken write mCamera.startPreview() Jun 09 08:09:42 hello any opensource application for learning like plaid and io Jun 09 08:09:59 What happens if you call the wrong super for lifecycle methods? Jun 09 08:10:26 Ashiren: java.lang.RuntimeException: Method called after release() Jun 09 08:10:27 probably IllegalStateException Jun 09 08:11:18 akshitkumar1: release camera only if you dont need it Jun 09 08:12:56 Ashiren: I am not releasing the camera. Jun 09 08:15:56 dunno then. some silly mistake then or camera released indirectly by something else :? Jun 09 08:20:41 Ashiren: In the timer function itself, should I get a camera, take a picture and release it again? Jun 09 08:20:56 inside the run() function? Jun 09 08:22:04 no. open and release camera only once in activity's lifetime Jun 09 08:23:15 Ok Jun 09 08:38:07 Ashiren: I am able to take one picture and then it crashes. Jun 09 08:39:02 Ashiren: I updated the MyCamera.java file - https://github.com/AkshitKumar/cameraApp/blob/master/app/src/main/java/com/akshitk/cameraapp/MyCamera.java Jun 09 08:39:35 Could you tell me where I might be going wrong? Jun 09 08:48:47 When I click an image does the lifecycle of the activiity go to pause? Jun 09 09:24:31 <_0xbadc0de> hi guyz Jun 09 09:24:54 <_0xbadc0de> is there any way I can enforce the user to utilize a password based pin? Jun 09 09:25:02 <_0xbadc0de> instead of a numerical one? Jun 09 09:42:44 So my app is failing on the android play store due to vulnerable trust manager. I am using retrofit 1.9 with okhttp and picasso. Is it one of these packages that is causing the problem? Jun 09 09:43:08 what do you mean? if it's in your app you can.. if youre talking about the device itself then probably not without your app being a device admin Jun 09 09:44:21 _0xbadc0de: that was for you btw Jun 09 09:56:11 <_0xbadc0de> what channel can i use to discuss iOS stuff Jun 09 09:57:04 _0xbadc0de: Come over to #iphonedev Jun 09 09:57:33 and #iphonedev-chat if you like to get offtopic Jun 09 11:03:35 What would be the Java equivalent of JSON.stringify Jun 09 11:59:39 hello Jun 09 11:59:52 new to site. Jun 09 12:01:12 anyone here from London UK? Jun 09 12:05:57 hi Jun 09 12:06:16 how i can Convert Photoshop files to Vector Drawable with AS 2.2 preview 3? Jun 09 12:40:36 does you guys use Jenkins with Android studio? Jun 09 12:43:20 people Jun 09 12:43:33 how to check from intentService if fragment is opened Jun 09 12:43:58 ? Jun 09 12:44:05 shredprefs? Jun 09 12:49:49 content provider? Jun 09 12:52:35 i need to know if chat fragment is opened when push message arrives Jun 09 12:53:43 <_kw> What's the best way to communicate between services and my mainActivity? I want to request some info from a service, and my service to notify my mainactivity when things happen etc Jun 09 12:55:18 is it bound service? Jun 09 12:55:33 in general for this you could use some local broadcastReceiver Jun 09 12:56:03 or maybe use some library implemeting Event Bus Jun 09 12:57:05 <_kw> hmm yeah, I've been looking at LocalBroadcasts Jun 09 12:57:41 _kw: EventBus Jun 09 12:57:55 <_kw> think that might be the way to go.. The service I'm working on atm is a FirebaseInstanceIdService Jun 09 12:58:24 <_kw> I want my mainActivity to retrieve the token from it when it wants, but also the service to notify my mainactivity when the token refreshed Jun 09 12:58:56 <_kw> EventBus looks to be third party? Jun 09 12:59:12 It is Jun 09 12:59:14 i.e. otto event bus Jun 09 12:59:56 isnt otto event bus being replace by RxJava? Jun 09 13:00:35 <_kw> the company I work for is dead set on not using 3rd party libraries of any kind if it can be avoided, so I think EventBus is out Jun 09 13:00:46 <_kw> but LocalBroadcastManager seems promising Jun 09 13:02:04 3rd party libs are aawesome I dont understand why they dont want to use them as it saves u time and they are well tested Jun 09 13:03:52 with EventBus it's really simple to communicate beetweeeeen services, sctivities, fragments n shit Jun 09 13:05:03 <_kw> I get that, and agree to some extent, but they won't, so there's no point considering it really ;) Jun 09 13:05:17 LocalBroadcastmanager seems to be providing roughly the same funcitonality. Jun 09 13:06:53 If you ever want to try to convince your boss, the easiest way to do that is talk in terms of money. X lib will save my Y time resulting in saving Z monies Jun 09 13:07:07 <_kw> yeah, think so, just trying to figure out how to use it to direct and filter traffic so that each listener knows what's intended for them Jun 09 13:07:48 Define some static numbers/strings, and put it in a pre-defined field in the Intent which is passed around Jun 09 13:08:39 <_kw> yeah, as the action parameter in the Intent constructor right? Jun 09 13:08:43 In the bundle inside the Intent i mean Jun 09 13:08:44 or register/unregister in activity lifecycle Jun 09 13:08:53 so it will get only if needed Jun 09 13:08:56 <_kw> and then when receiving the broadcast check for the action to see if it was meant for you Jun 09 13:09:49 Something like -> intent.putExtra(ACTION_KEY, ACTION_VALUE) Jun 09 13:10:01 <_kw> ahh that would be neater yeah, thanks :) Jun 09 13:12:41 <_kw> hmm what about if I register the receiver with an IntentFilter? Jun 09 13:12:57 <_kw> and then make intents to broadcast which follow that action Jun 09 13:14:01 <_kw> i.e. LocalBroadcastManager.registerReceiver(msgReceiver, new IntentFilter("BLAH")) and when I want to send something to that one, use new Intent("BLAH") and then send Jun 09 13:14:06 <_kw> (pseudo-code obviously) Jun 09 13:15:38 I have no experience with IntentFilters, but they sound like they can replace manually checking every intent for the right action. Jun 09 13:15:55 If they can be used for that, I'd go for it Jun 09 13:16:38 <_kw> :) Jun 09 13:16:45 <_kw> thanks, I'll give it a go, see what happens :D Jun 09 13:16:55 I'm working on an app at them moment and need to create an account registration system for it. Am i right in thinking that Android doesn't directly support using SQL and connecting to the database? Jun 09 13:17:46 <_0xbadc0de> guys Jun 09 13:18:01 <_0xbadc0de> there is no public-domain licensed software such as sqlcipher right? Jun 09 13:18:26 hi, trying to use in-app services from within a dialogfragment, but the onActivityResult doesnt seem to get called Jun 09 13:18:29 _0xbadc0de: what exactly are you asking? Jun 09 13:18:43 android supports directly querying sql i think but you are better off using content provider Jun 09 13:18:44 <_0xbadc0de> sqlcipher has a license that is not public-domain like Jun 09 13:19:05 its the standard way of queryingd data Jun 09 13:19:08 <_0xbadc0de> I need something similar but whose license is public -domain Jun 09 13:19:16 <_0xbadc0de> droidace: encryption. Jun 09 13:19:22 <_0xbadc0de> I need db encryption support Jun 09 13:19:31 it's BSD Jun 09 13:19:35 which is free for use Jun 09 13:19:46 <_0xbadc0de> but you need to place something in the about button Jun 09 13:19:55 <_0xbadc0de> that you used sqlcipher Jun 09 13:19:56 even better, it's apache 2 Jun 09 13:20:28 oh wait, no Jun 09 13:20:31 it's BSD Jun 09 13:20:46 what's the problem with having a BSD license in your app? Jun 09 13:21:23 <_0xbadc0de> you have to refer it Jun 09 13:21:29 so? Jun 09 13:21:34 just have it in your source Jun 09 13:21:45 also, unless you're modifying it there shouldn't be an issue Jun 09 13:21:58 just point out that you're using it in your website Jun 09 13:22:02 or about Jun 09 13:22:05 <_0xbadc0de> afaik you also should distribute notice that you have used it in the binary Jun 09 13:22:22 <_0xbadc0de> (usually in the about button) Jun 09 13:22:48 If you really need sqlite encryption, building a popup and an about button isn't really too much work, is it? Jun 09 13:23:31 _0xbadc0de: that is not an issue Jun 09 13:23:42 and it seems like it's not required to be in a popupo Jun 09 13:23:59 greendao has it and there is no real popup or anything else required Jun 09 13:24:00 http://greenrobot.org/greendao/documentation/database-encryption/ Jun 09 13:24:09 unless you are changing the code there is no issue Jun 09 13:24:16 the code needs to maintain the same license Jun 09 13:24:18 <_0xbadc0de> okay. Jun 09 13:25:08 https://redd.it/oon73 Jun 09 13:25:10 Popup is not neccesary, was just an implementation suggestion. The app has to reproduce the copyright in some way. Jun 09 13:25:11 here is some more Jun 09 13:30:17 Is there any library to multicast files Jun 09 13:30:25 hi Jun 09 13:34:13 hi Jun 09 13:39:45 hithere Jun 09 13:39:47 aaargh :( Jun 09 13:40:12 I have ClassA where is private variable X Jun 09 13:40:50 there is metod M where is X being set Jun 09 13:41:53 method M sets stableArrayAdapter to ListView everytime it is called Jun 09 13:43:34 X is set upon some conditions (two of them) for each condition new stable array adapter instance is created and ListView filled with data Jun 09 13:43:54 stableArrayAdapter has for thos two conditions different aproach for touches(clicks) Jun 09 13:44:09 ona has setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); and .setMultiChoiceModeListener(multiChoiceModeListener()); Jun 09 13:44:25 the other one .setChoiceMode(ListView.CHOICE_MODE_SINGLE); .setOnItemLongClickListener(onItemLongClickListener()); .setOnItemClickListener(onItemClickListener()); Jun 09 13:45:02 when I show listView for condition C1 - it just only callse onAttachedToWindow and does nothing Jun 09 13:45:30 when I fill listView with data for C2 and than return back to listView showed for C1 Jun 09 13:45:37 If you can't fit your question in a single line you should probably pastebin it along with relevant code. Jun 09 13:45:56 Will make it easier when you need to ask it again in 30 minutes because noone can follow your ramblings Jun 09 13:45:59 SimonVT, I know it is long - but few rows Jun 09 13:46:29 SimonVT, good point - will finish it than will create pb Jun 09 13:47:13 Or stackoverflow, that's very good for questions like that Jun 09 13:48:26 ... clicking on listView for C1 behaves like if there were listView for C2, including touches and returned data for clicked row, furthermore X set as if it were in C2 cond, but method M was not called Jun 09 13:49:14 SimonVT, probably yes - just trying than I will apply to stack - just trying to sort out my thoughts Jun 09 13:49:32 Please don't do that in this channel. Think your question through before asking anywhere Jun 09 13:51:37 SimonVT, sure - btw - any idea? :) Jun 09 13:53:47 does anyone know what is the recommended way of doing CoordinatorLayout/scrolling appbar behavior and fragments? Jun 09 13:54:08 should you put the appbar in your fragment layout or is there a way to make it work with the toolbar in the activity layout? Jun 09 13:54:13 Sounds like you could just shorten the question down to "when I set C1 nothing happens" Jun 09 13:54:36 Probably caused by the same mistake Jun 09 13:55:10 (because of CoordinatorLayout's requirement that any coordinating views are direct children of it) Jun 09 13:55:45 Put CoordinatorLayout, Toolbar, etc, in your fragments layout Jun 09 13:56:56 alright Jun 09 13:56:58 thanks Jun 09 14:29:09 SimonVT, it happens what should happen until user touches that listView than it behave like if it were in C2, but user sees C1 Jun 09 14:36:12 <_0xbadc0de> what is bouncy castle's license type? BSD as well? Jun 09 14:38:42 Is there a sane way to do the equivalent of String.Trim on a SpannableStringBuilder? Jun 09 14:39:56 I'm trying to write a native android plugin for Unity. It works fine on desktop platforms when compiled as a windows dll. I compiled it using ndk-build and it spit out the lib no problem. When I try to call functions from it on the unity C# side though it says EntryPointNotFoundException: testFunc. The function was declared wrapped in extern "C" {} and as far as I know all symbols are exported Jun 09 14:39:56 with a .so. I used objdump to check the .o files and the symbols are there as expected. I know this isn't a unity channel but figured I'd try here anyway to see if I'm missing any steps regarding building a lib with ndk? Jun 09 14:45:39 ndk is a standard toolchain, use objdump Jun 09 14:45:45 <_vaibhavingale_> can I change the cursor to some other cursor when I connect mouse to android? Jun 09 14:46:00 pfn : sorry? I don't follow Jun 09 14:46:13 I used ndk to compile, then used objdump to check the intermediate files for symbols Jun 09 14:47:42 didn't sound like what you said Jun 09 14:47:45 * pfn shrugs Jun 09 14:53:27 meta-data android:name="com.lge.theme" android:value="Theme_LGE_White" ...what this should be used for? Jun 09 14:56:21 Since upgrading to new version of Andoid Studio, $APPLICATION_HOME_DIR$/gradle/gradle-2.10 keeps getting replaced with full file path, which works, but causes issues since this won't work for other developers on the project Jun 09 15:09:23 why the hell does it reconnect me >=( Jun 09 15:09:46 til "android programming" ia an anagram for "no drama romping gird" Jun 09 15:23:10 i think if anyone asks me what to start learning when first going into android Jun 09 15:23:15 im gonna tell them to learn gradle Jun 09 15:23:21 such a useful skill Jun 09 15:27:35 Is there any way to performance tests app in an external manner without using something like Android studio? Tools that can be externalized/scripted/automated? Jun 09 15:28:52 well there ui testing with espresso but i dont think thats what your asking about.. Jun 09 15:31:06 run gradle Jun 09 15:31:50 and you mean profiling? Jun 09 15:32:09 can use traceview during tests Jun 09 15:33:42 <_kw> I'm trying to broadcast messages inside my app between MainActivity and FirebaseInstanceIdService, but they don't seem to be arriving.. Is the getApplicationContext() inside the service the same as the getApplicationContext within MainActivity? Jun 09 15:34:02 yes Jun 09 15:34:16 unless they're different processes Jun 09 15:35:03 <_kw> I'm starting the service from my androidmanifest, both that service and the MainActivity are inside the same so I assumed they'd be the same Jun 09 15:36:33 <_kw> I assume that means they're in the same process right? Jun 09 15:36:49 <_kw> or rather, the same application.. meaning that call would still work Jun 09 15:47:01 <_0xbadc0de> I am trying to use adb and fastboot util Jun 09 15:47:58 <_0xbadc0de> and... when I do adb devices Jun 09 15:48:07 <_0xbadc0de> I can't actually see the devices Jun 09 15:54:43 How can I center the widget in relative layout? Jun 09 15:58:52 http://www.recode.net/2016/6/8/11883518/app-boom-over-snapchat-uber Jun 09 16:03:38 time to find new work Jun 09 16:05:57 pfn i saw a week ago scala ~ 20% pay boost Jun 09 16:07:11 think it was this http://www.payscale.com/data-packages/job-skills Jun 09 16:07:34 that's because smart people do Scala Jun 09 16:07:40 smart people get paid more Jun 09 16:10:42 is there a way to permanently disable the stupid notification every time i open up strings.xml "edit translations for all locales in the translation editor" Jun 09 16:10:55 yes Jun 09 16:11:00 adq halp Jun 09 16:12:08 http://tools.android.com/recent/non-translatablestrings Jun 09 16:12:21 or maybe disable the lint warning Jun 09 16:12:33 oh i expected to be able to disable under prefs/appearance/notifications Jun 09 16:12:47 there is also a way in the root node resource i don't remember Jun 09 16:13:28 hmm tools:ignore="MissingTranslation" Jun 09 16:13:31 maybe this one Jun 09 16:30:43 hmm, I wonder who rents nitrogen tanks and vacuum pumps Jun 09 16:32:23 Guys in my manifest, I'm getting a warning called "App not indexable by google search" Jun 09 16:32:36 is there some way I can trigger a click event in my app in an x,y top down fashion, instead of having to isolate a view specifically ? (without a rooted phone) Jun 09 16:32:41 I'm making a game, so how will google search index my game? Jun 09 16:33:57 pfn: welding supply shop for a nitrogen tank Jun 09 16:34:12 or a bar/brewing supply shop, but it’ll be more expensive there Jun 09 16:34:31 looking for hvac equipment for an ac install Jun 09 16:35:35 welding supply shop, then Jun 09 16:35:45 do you guys use baas for the server, or program something yourself Jun 09 16:36:02 they’d be able to hook you up with the tank, and might be able to steer you toward an HVAC shop Jun 09 16:39:42 kael03, i was using parse.com Jun 09 16:40:02 firebase Jun 09 16:40:03 appengine Jun 09 16:40:35 i was playing around with baas stuff, but i kind of want to program my own server, and wanted to know how to get started. i don't really know where how to, or where to begin, or what to expect Jun 09 16:41:01 look at either Ruby with Rails or Sinatra, or Python with Django or Flask. Or PHP Jun 09 16:41:15 like, is it possible to create a asp.net web app api, deploy that to a server, and just use that? Jun 09 16:41:23 of course it's possible Jun 09 16:41:30 out of scope for #android-dev Jun 09 16:43:38 what's the difference between firebase and app engine anyway Jun 09 16:45:35 firebase is the DB/persistence stuff. No real logic at all Jun 09 16:46:19 App Engine is code/logic in the cloud Jun 09 16:53:17 is there a way to check if a device has 4g network capabilities? Jun 09 16:54:02 thepoosh: http://stackoverflow.com/a/18583089/1026805 Jun 09 16:54:17 SHC: that is for current network Jun 09 16:54:22 not a general thing Jun 09 16:54:43 ah, no clue then Jun 09 16:55:10 thanks Jun 09 16:59:14 g00s: here? Jun 09 16:59:24 hey thepoosh Jun 09 16:59:27 sup? Jun 09 16:59:54 thepoosh reading http://www.latimes.com/opinion/op-ed/la-ol-silicon-valley-california-voting-election-primary-20160608-snap-20160608-snap-story.html Jun 09 17:00:14 its about silicon valley, solving real problems, etc Jun 09 17:00:30 whats going on over there ? Jun 09 17:00:30 electronic vote is dangerous Jun 09 17:00:46 I agree with adq Jun 09 17:01:03 Guys in my manifest, I'm getting a warning called "App not indexable by google search" Jun 09 17:01:05 I'm making a game, so how will google search index my game? Jun 09 17:01:16 any clue? Jun 09 17:01:31 deep-linking? Jun 09 17:01:36 you will need to do that manually Jun 09 17:02:07 yes Jun 09 17:02:10 SHC: https://github.com/firebase/quickstart-android Jun 09 17:02:18 I think AS added something to generate app indexing automatically recently. That warning probably came along with it. Jun 09 17:02:23 I mean, what is that deep linking, and how that works with games? Jun 09 17:02:23 even better: https://github.com/firebase/quickstart-android/tree/master/app-indexing Jun 09 17:02:25 adq thepoosh yeah - but you can still throw paper ballots in the dumpster too Jun 09 17:02:36 ErnestG: there is an option to quick add it Jun 09 17:02:43 no, if it is counted by many ppl at same time Jun 09 17:02:47 + registration count + etc Jun 09 17:02:50 g00s: in Israel, everyone has photo ID Jun 09 17:02:56 adq did you hear about the NYC primaries ? Jun 09 17:02:56 and is required to walk around with it Jun 09 17:02:59 anyway, wrong channel for voting topic Jun 09 17:03:03 and present it when voating Jun 09 17:03:41 g00s, nope but every countries got their flaws, here there were once a scandal about making the dead ppl vote Jun 09 17:03:58 * thepoosh agrees Jun 09 17:04:08 i wonder if blockchain can solve this Jun 09 17:08:02 <_0xbadc0de> guys Jun 09 17:08:12 <_0xbadc0de> I have an htc android device Jun 09 17:08:14 <_0xbadc0de> I have root Jun 09 17:08:23 <_0xbadc0de> and I have developer options enabled Jun 09 17:08:28 <_0xbadc0de> in addition, Jun 09 17:08:49 <_0xbadc0de> I also have usb debugging enabled Jun 09 17:09:07 <_0xbadc0de> but when I try to connect it to the computer Jun 09 17:09:26 <_0xbadc0de> >.\adb.exe devices shows zero devices attached Jun 09 17:09:49 <_0xbadc0de> what am I possibly doing wrong? Jun 09 17:11:07 win usb drivers? Jun 09 17:11:32 <_0xbadc0de> yeah Jun 09 17:11:41 you obviously need to go into your "device manager" Jun 09 17:12:07 i'm using "android composite ADB interface" for most devices i have on win Jun 09 17:12:38 only a few weird devices force me to use their proprietary drives or enable things in fastboot or something i don't remember cause i did it long time ago Jun 09 17:13:00 _0xbadc0de, also be sure you don't enable mounting your device as a drive or something Jun 09 17:13:44 I'm planning on getting into android dev but only knowing C/C++ I'm not sure what path to take Jun 09 17:13:58 maktm learn java Jun 09 17:14:00 this is not the easiest path if you never dev on android Jun 09 17:14:03 On one hand I can learn Java and on the other I can use the NDK (despite being warned that not every API is exposed) Jun 09 17:14:42 you'd better start swimming in a regular app with java and then plug yourself into the ndk Jun 09 17:14:42 maktm if you have a project you can do 100% ndk thats great, but if you are 'getting into android dev' you must know java Jun 09 17:14:50 lot of things with android dev has nothing to do with code Jun 09 17:14:56 but the environment around Jun 09 17:15:14 So I guess Java is a must at the end of the day? Jun 09 17:15:19 I was only wondering because of the ton of articles on MSDN Jun 09 17:15:35 The ones talking about developments in Android dev using C/C++ Jun 09 17:16:30 hello. I come into a little problem. I have a main activity that stores a picture's path and loads it into an imageview. I have a 2nd activity that can be called to display the information about the picture from the main activity. my problem is that when i come back to main activity, it has no more saved data despite it has overwritten onSaveInstance. how could I resolve this ? Jun 09 17:17:20 <_0xbadc0de> adq but windows recognises my device as an htc device Jun 09 17:18:41 dude, if you know c/c++, just learn java. i came from the same background (well, i also knew c#), but learning java was easy Jun 09 17:19:37 _0xbadc0de, well i have an htc device too i don't use their drivers and the bloatware they ask you to install Jun 09 17:19:49 just the regular "android composite ADB interface" shipped with the sdk Jun 09 17:20:18 kael03, I know it's a generic question (and relative to each person) but how long did it take you to understand the syntax? Jun 09 17:22:16 mmm, i dove straight into android app development tutorials with android studios without knowing java. it probably took 2 weeks to get familiar with the syntax Jun 09 17:23:36 i was studying like, 14 hours a day though. but it's really no that hard. Jun 09 17:26:40 and the android studio ide is really nice too Jun 09 17:27:24 Yeah I've messed around with it before Jun 09 17:27:24 Thanks for the info Jun 09 17:28:34 hey, my google fu sucks, i'm trying to use the drawable from the soft keyboard's delete button (I have to implement a custom keyboard). For whatever reason it's not on the material design icons list Jun 09 17:28:42 anyone know the id of that drawable? Jun 09 17:34:52 <_0xbadc0de> adq Jun 09 17:35:02 <_0xbadc0de> I have installed Android Studio Jun 09 17:35:21 <_0xbadc0de> does that also have a "android composite ADB interface"? Jun 09 17:35:39 whats gravity for? Jun 09 17:36:54 gravity? for xml? Jun 09 17:37:49 _0xbadc0de, yes it should be in "[...]extras\google\usb_driver" Jun 09 17:37:52 of your sdk Jun 09 17:37:56 in the event that this channel is indexed, i found the answer to my question: "@android:drawable/ic_input_delete" Jun 09 17:43:05 anyone used jitpack for a private repo b4? Jun 09 17:48:55 when i click on button application crashes why Jun 09 17:49:11 not doing anything with button Jun 09 17:49:11 you’re gonna need to give a LOT more detail Jun 09 17:49:28 like, stack traces and stuff Jun 09 17:49:47 where can i find them? Jun 09 17:49:56 in logcat Jun 09 17:49:58 logcat Jun 09 17:50:44 could be a reminiscent onClick in the xml of the button Jun 09 17:51:00 but you need to check your stacktrace anyway Jun 09 17:51:04 oh i found the window Jun 09 17:51:21 should i click on button and check it? Jun 09 17:51:32 yes Jun 09 17:51:45 i guess in debug Jun 09 17:52:01 or works in run too? Jun 09 17:52:45 just let it crash, you should see error logs appearing Jun 09 17:52:48 don't be afraid Jun 09 17:54:18 i get a long red line says fatal exception Jun 09 17:55:05 need more info Jun 09 17:55:13 java.lang.IllegalStateException: Could not find method sendMessage(View) in a parent or ancestor Context for android:onClick attribute defined on view class android.support.v7.widget.AppCompatButton with id 'button_send' Jun 09 17:56:02 that means you need to make a sendMessage(View v) method in the java file Jun 09 17:56:06 could be a reminiscent onClick in the xml of the button Jun 09 17:56:22 but i don't want to do anything with button Jun 09 17:56:24 ^ open the xml where your button is, remove android:onClick Jun 09 17:58:17 removed android:onClick="sendMessage" Jun 09 17:58:41 oh yes it worked Jun 09 18:21:55 Espresso Test Recorder is the best thing Google has ever added to Android Studio Jun 09 18:21:58 It bring a tear to my eye... beautiful... Jun 09 18:22:01 :') Jun 09 18:22:15 <_Atom_> what's that liuwenhao Jun 09 18:22:39 It got added in AS 2.2 preview 3 yesterday @_Atom_ Jun 09 18:22:47 automatically writes UI tests for you as you use your app Jun 09 18:23:01 It's not perfect but it's really really good Jun 09 18:23:16 oh it's up? niiiice Jun 09 18:23:46 https://youtu.be/csaXml4xtN8?t=1360 Jun 09 18:23:53 Yeah, I just used it for the first time after updating Jun 09 18:24:09 Only problem I've had is that its incredibly slow when inputting text Jun 09 18:24:17 But once the test is written it executes fine Jun 09 18:24:22 Its just the recording that's slow Jun 09 18:24:55 I never did much Espresso testing since it was such a pain to write Jun 09 18:25:01 (before) Jun 09 18:26:27 i'm looking forward to ConstraintLayout Jun 09 18:26:39 * g00s hopes 2.2 is stable soon Jun 09 18:27:05 sounds the new layout editor is too buggy still Jun 09 18:27:30 I don't know if they updated it in preview 3 but in preview 2 its still screwy Jun 09 18:27:40 liuwenhao yeah they updated it Jun 09 18:28:04 I would try it again but I'm scared of wasting 30 minutes messing around with it when it's probably still not good to go Jun 09 18:29:12 UI for the app i'm currently on is almost finished anyways, so no need I guess Jun 09 18:29:24 Why does "android list sdk -u -e" report that "Revision 31" of "Android Support Repository" is available when "23.4.0" is definitely the latest revision according to https://developer.android.com/topic/libraries/support-library/revisions.html Jun 09 18:30:06 yiati 31 is just a monotonically increasing int Jun 09 18:30:14 its not the support lib version, its the repo version Jun 09 18:30:21 Yeah, there have been 31 releases Jun 09 18:30:25 They changed the naming Jun 09 18:30:26 yeah i wish they would just get rid of this downloaded repo shit Jun 09 18:30:51 Ah, like a version code :P yeah Jun 09 18:31:00 would be nice if it was all maven Jun 09 18:31:09 Android Support Library, revision 18 (July 2013) Jun 09 18:31:09 Android Support Library, revision 13 (May 2013) Jun 09 18:31:13 I like how they just skipped 5 versions Jun 09 18:31:58 g00s: How can I see what int matches which version "name" Jun 09 18:32:04 question mark Jun 09 18:32:23 yiati i just go into the downloaded m2repository and look at the version # Jun 09 18:32:51 Hmm okay, thanks Jun 09 18:33:12 yeah it would be nice if the SDK manager had better descriptions of things Jun 09 18:33:27 i need java to write android apps? Jun 09 18:33:51 lol how many times is this going to be asked Jun 09 18:33:52 thecha: yep Jun 09 18:34:05 do you people even google any more ? Jun 09 18:34:50 no, apparently it’s easier to make us answer things Jun 09 18:34:56 this one is special Jun 09 18:34:59 Never heard of Google, I'll look it up on my Nexus real quick.... *OK GOOGLE, WHAT IS GOOGLING?* Jun 09 18:36:17 hello Jun 09 18:37:27 thecha: technically no, practically yes Jun 09 18:38:19 ty Jun 09 18:38:23 tyall Jun 09 18:38:54 i am trying to compile, deploy and test asus provided kernel source. Jun 09 18:39:05 but, it is not booting? any ideas? Jun 09 18:39:20 try #android-root Jun 09 18:39:29 sorry, we’re not really kernel hackers here Jun 09 18:39:44 we’re app developers Jun 09 18:39:57 ok thanks Jun 09 18:41:20 do you guys even read topic any more ? Jun 09 18:41:40 i don't, it never changes Jun 09 18:41:43 lol Jun 09 18:42:22 shouldn’t it pop up when you join the chat? Jun 09 18:42:35 so romain guy is working on some kind of PSD import to AS ... i can't get excited about that, because IMHO PSD driven design is an anti-pattern Jun 09 18:44:25 i don’t think it’s anywhere near of an anti pattern as people make it out to be Jun 09 18:57:19 What's so bad about it @g00s? All the UI designers I've worked with just send me PSDs so it seems like it'll be a pretty nice feature to have Jun 09 18:58:00 Would much rather work with that then have to use Sketch Jun 09 18:58:18 liuwenhao i think that is shifting. not just the file format / PSD itself, but the idea of drawing pixel perfect designs and handing them down. Jun 09 18:58:21 https://www.thoughtworks.com/radar/techniques/nopsd Jun 09 18:58:39 wait, what’s wrong with sketch? Jun 09 19:00:10 Nothing wrong with Sketch, but I try to stay out of UI design as much as possible and just stick to coding Jun 09 19:00:20 It's way faster for me to extract assets in Photoshop Jun 09 19:00:32 but that's probably because I've been using it for 15 years Jun 09 19:00:38 liuwenhao you are limiting yourself though ... Jun 09 19:00:40 and Sketch for like... 6 months Jun 09 19:00:45 being able to do UI/UX is valuable skill Jun 09 19:00:50 the days of being a consumer software developer not having to deal with UI are long since over Jun 09 19:01:44 so when people ask whats difference between engineer / programmer, this is what comes to mind. the engineer can gather requirements, and that could mean ethnography and UI prototypes Jun 09 19:02:29 the designer may help with assets, typography, grid systems, and polishing stuff Jun 09 19:02:50 they may have UI / UX but thats not a guarantee either Jun 09 19:03:04 so its best if you have UI/UX so you can at least communicate and challenge ideas Jun 09 19:03:35 Don't get me wrong, I'm fine working with UI, I would just rather focus on animations and user experience rather than trying to figure out how rounded a corner should be or what font to use Jun 09 19:03:47 Or maybe I'm just lazy :) Jun 09 19:05:59 "NoPSD is a movement to integrate design activities into the iterative feedback cycles required to build great software. The name aims to dislodge the PSD as the final canonical design artifact rather than taking a dig at the Adobe software." Jun 09 19:06:18 I don't think I've ever worked with a designer who expects the finished Android app to be a 100% clone of the psd Jun 09 19:06:20 it's just a nice format Jun 09 19:06:46 actually PSD is hell format Jun 09 19:06:58 decades of undocumented crap Jun 09 19:07:10 maybe you mean, nice medium Jun 09 19:09:40 many tools that try to interop by importing PSD lose something in translation Jun 09 19:10:46 amg, day two of trying to get one flipping line of ASP Classic code to work has me ready to punch a puppy Jun 09 19:13:08 hey g00s Jun 09 19:13:14 heya Napalm Jun 09 19:13:35 i just got back from Bletchley Park Jun 09 19:13:44 that place is awesome Jun 09 19:13:51 :O Jun 09 19:15:04 any good site for android freelancer i am looking for work.. Jun 09 19:16:26 never? Jun 09 19:16:34 designers typically expect stuff to look about 100% identical Jun 09 19:16:54 tell that to the bazillion bug reports I get :P Jun 09 19:25:22 uh quick simple question: if I have a library that uses another library, like lets say its using Realm, and that library exposes a method that returns a RealmObject (a class in the realm library), would the application that implements my library need to also add Realm as a dependency? Jun 09 19:27:14 iirc dependencies are transitive, so if A depends on B and B depends on C, A can use C Jun 09 19:27:31 Does any of these errors look like Android errors or Cordova specific ? -> http://stackoverflow.com/questions/37733593/cordova-fails-with-installing-org-apache-cordova-xapkreader-for-android Jun 09 19:27:53 but i don't remember if you need to explicitly tells A depends on C Jun 09 19:28:06 hmm Jun 09 19:58:42 hmm, deep one kassadin is a limited skin? Jun 09 19:58:46 oops Jun 09 20:21:55 Can you change the text/cell background color for single days in a datpicker? Jun 09 20:21:57 date* Jun 09 20:32:52 is there a first-class way of testing an IntentService these days? Jun 09 20:40:43 joshkovach: thats what "adb shell am" is for Jun 09 20:41:00 joshkovach: lets you craft and send intents from the command line Jun 09 20:41:41 I'm talking automatic testing. Junit/espresso. Jun 09 20:54:04 have anyone recompiled opencv for android? Jun 09 20:59:48 So google Play Games Services is uencrypted!!?? Why? How would you implement your own security on top of that? Jun 09 21:00:18 has anyone ever heard of issues of using a library that itself depends on a native library? Keep getting NoClassDef errors or the native shit Jun 09 21:00:27 if you dont anyone could just manipulate the packages right? set a bit in a mask thats means he finished the game! Jun 09 21:01:25 orbyt_, works fine. Jun 09 21:02:26 ventura, opencv has their own java bindings that work on android, bytedecode also has javacv that works well on android Jun 09 21:02:33 bytedeco Jun 09 21:02:46 but opencv's own bindings are shit to install Jun 09 21:02:50 bytedeco is so easy to use Jun 09 21:02:54 pfn: thx, for answering :-) Jun 09 21:03:22 weird. the library build fine and i've tried distributing it as a local .aar, .jar as well as providing it with jitpack but when running will throw errors about the native part Jun 09 21:03:26 pfn: the problem it that neon is not default for the arm7a and hyperthread for intel atom Jun 09 21:03:36 how much internal space is reasonable for an app to occupy? 300kb, 3MB, 30MB? Jun 09 21:03:37 @ Mavrik ^ Jun 09 21:03:41 huh? Jun 09 21:04:06 dccdss, when installed or before? Jun 09 21:04:07 depends on the app Jun 09 21:04:24 pfn: i am having a huge framedrop when i am using GaussianBlur inside onCameraFrame Jun 09 21:04:36 Doh. Jun 09 21:05:03 You're just using one of the slowest blur algorithms available and expecting to process large images < 16ms ? :P Jun 09 21:05:17 pretty much, blurring algorithms are incredibly slow Jun 09 21:05:36 decrease the frame size Jun 09 21:05:40 or use a different blur Jun 09 21:06:13 orbyt_, not sure what kind of answer do you expect. Native libs in AARs work well. You didn't provide any info that would allow people to help you. Jun 09 21:06:36 also decrease resolution (downscaling is actually a blur by itself) Jun 09 21:06:40 Use a split kernel Jun 09 21:06:45 And process it multithreadedly Jun 09 21:06:54 Mavrik: Well the current error is ClassNotFoundException: didnt find class on DexPathList Jun 09 21:07:00 But in any case, running blur on CPU on realtime camera preview will usually be too slow. Jun 09 21:07:04 Use OpenGL ES shaders. Jun 09 21:08:28 what odd is the project works correctly if i run the project using the local modules as dependencys Jun 09 21:08:57 but as soon as i try to compile it into the project any other way i start getting issues Jun 09 21:09:37 Mavrik: I had no idea about it. i am trying to detect control points at the images (just like a qr code), and using gaussian blur is a requirement before calling findContours Jun 09 21:10:17 I doubt using >>gaussian<< blur is a requirement. Jun 09 21:10:26 blur is never a requirement for find countours Jun 09 21:10:34 Any blur without significant artifacting will do for dimensionality reduction. Jun 09 21:10:47 pfn, it's pretty much a mandatory preprocessing step if you want usable data. Jun 09 21:10:51 I guess Jun 09 21:10:51 Mavrik: After installed. Like I have levels that are about 60 levels=30kb so 600 levels 300kb, fine right? but what if i 10 times more, 6000=> 3MB, still OK? Jun 09 21:11:26 ok, i am gonna remove it and see the resuts. thx! Jun 09 21:11:59 Mavrik, I think something like using k-factors and dilating/eroding is sufficient Jun 09 21:12:02 dccdss, you're unlikely to have an app < 3MB by default. Jun 09 21:12:10 er, kmeans Jun 09 21:12:10 pfn, yeah, that works too Jun 09 21:12:17 pretty much anything that wipes away detail Jun 09 21:12:36 Usually averaging works well as well and it's significantly faster than gaussian Jun 09 21:12:50 (Or whatever the english name for the algo is) Jun 09 21:13:45 Mavrik: well the app is like 8MB, but what could be ok to take in storage for level files? Jun 09 21:23:50 So google Play Games Services is uencrypted!!?? Why? How would you implement your own security on top of that? Jun 09 21:23:56 if you dont anyone could just manipulate the packages right? set a bit in a mask thats means he finished the game! Jun 09 21:24:06 you’re being paranoid Jun 09 21:24:12 can you add TLS/SSL on top of it? Jun 09 21:24:14 So what if he does? :P Jun 09 21:24:23 Mavrik: well he cheats Jun 09 21:24:28 And? Jun 09 21:24:35 you all consider it unlikely to happen? Jun 09 21:24:45 who cares if they cheat? Jun 09 21:24:51 other users... Jun 09 21:25:28 if people pay money for a game i think they demand and deserve not to be cheated, dont you? Jun 09 21:26:03 why does not google at least provide the option, i dont have a time critical game so i dont mind the overhead Jun 09 21:26:20 but should you use TLS on top of it? encrypt your msg? Jun 09 21:26:31 is this a multiplayer game? Jun 09 21:28:01 fucks sake: If I have an app which depends on a library module, and thats works, then if I build a .jar or .aar out of that library and manually add it to the apps /libs directory and add the appropriate lines in gradle, it **should** still work right? Jun 09 21:28:38 s73v3r: it has both single and multi Jun 09 21:28:44 orbyt_, yep Jun 09 21:28:49 for single player, no one gives a shit Jun 09 21:28:51 It just won't download transitive dependencies. Jun 09 21:28:58 ok Jun 09 21:29:00 for multiplayer, you should never be trusting the input you get from the players Jun 09 21:29:02 then maybe thats the issue Jun 09 21:29:08 Mavrik: why wont it Jun 09 21:29:09 orbyt_, which means that if your AAR is depending on other libraries, you need to add dependencies yourself. Jun 09 21:29:12 your server should be validating all of that, and it should be the source of truth Jun 09 21:29:23 orbyt_, *shrug* No POM to read from I guess. Jun 09 21:29:36 Mavrik: it is, it uses retrofit/realm as well as that native library from earlier Jun 09 21:29:50 so is that the issue? Jun 09 21:29:59 s73v3r: but i plan to use google play game services so then i dont write a server (right?)... Jun 09 21:30:19 no Jun 09 21:30:42 google play game services doesn’t mean you can’t have your own server logic Jun 09 21:32:05 so, what the hell do i need to do Jun 09 21:32:23 i remember trying {transitive = true;} though i dont think it worked Jun 09 21:36:11 So google Play Games Services is uencrypted!!?? Why? How would you implement your own security on top of that? << uh! i thought it was, did you sniff the traffic? Jun 09 21:36:31 -_-" Jun 09 21:40:06 s73v3r: it is me, sdsds or whatever i called myself, again. Jun 09 21:40:19 Bu you dont need a server if you use GPGS right? Jun 09 21:40:37 it makes no opinion on whether you have one or not Jun 09 21:40:41 anyway you twist it you run the risk of a man in the middle attack right? Jun 09 21:40:48 but if you’re doing multiplayer, it would be much better for you to have one Jun 09 21:40:55 why? Jun 09 21:41:03 like I said, your server should be the source of truth Jun 09 21:41:07 i am using s73 so i dont have to... Jun 09 21:41:11 sorry gpgs Jun 09 21:41:16 you should not be trusting the input from the playersx Jun 09 21:41:24 i am using gpgs so i dont have to write a server Jun 09 21:41:46 s73v3r: yes that is my point. but whats the point of gpgs then? Jun 09 21:41:59 it has a bunch of other services that you can use that you don’t have to write Jun 09 21:42:05 stuff like matchmaking, leaderboards, etc Jun 09 21:42:07 it does all these things but unencrypted and thus not trustworthy Jun 09 21:42:22 have you sniffed the traffic? Jun 09 21:42:25 s73v3r: but is that hard to implement yourself Jun 09 21:43:06 don’t know Jun 09 21:43:12 if i have to write my own server then i dont see the point of GPGS to much, i only need a subset of its features Jun 09 21:43:26 the two are not incompatible Jun 09 21:43:51 i would use your own server for the game logic, and GPGS for everything else Jun 09 21:44:20 although you might want to get an opinion from more gamedev focused people Jun 09 21:44:21 the game logic is nothing. Jun 09 21:44:39 if the game logic is nothing, then there’s not really a way for people to cheat Jun 09 21:44:55 i mean the game logic on the server would be next to nothing Jun 09 21:45:11 doesn’t matter; it’s still protected Jun 09 21:45:26 but a player could catch his own outgoing packets, maniupulate and send finished! BEFORE HE IS FINISHED Jun 09 21:45:37 plus, doing it on the server means you can do some stuff to change/balance if needed without having to push an update Jun 09 21:45:46 1, why the fuck would any loser do that? Jun 09 21:46:00 s73v3r: yes that is one possibility. Jun 09 21:46:01 2, that’s why you use your server, and make sure you validate the input Jun 09 21:46:19 s73v3r: are yous erious, ofc there are cheaters... Jun 09 21:46:36 if they say finished, but you know they can’t be finished, then your server won’t tell the opponent they are finished Jun 09 21:47:12 but i dont know if they are...well i could know if i move that logic to the game server :) Jun 09 21:47:19 exactly Jun 09 21:47:36 ok thanks for your input, always good to have someone to discuss with Jun 09 21:48:03 like i said, you might want to talk with more gamedev focused people for another opinion Jun 09 21:48:10 also, if in the future i want to kigrate from gpgs i need a backup of all the player data bc it seems it is not accessible to fetch Jun 09 21:48:24 from gpgs Jun 09 22:30:56 What's meant by "dimensionality reduction" in the discussion about blurring, above? Jun 09 22:31:12 Plain-old resize? Jun 09 22:32:36 Is there a need for a strong, resize algorithm, there? Jun 09 22:33:00 s/strong,/strong, fixed-scale / Jun 09 22:36:07 (possibly one with a cut-off somewhat lower than nyquist if it's intended for some kind of analysis) Jun 09 22:37:04 woo dsp Jun 09 22:38:08 if you downsample, you would need to cut-off with a low-pass near nyquist Jun 09 22:38:18 It can be lower. Jun 09 22:38:18 that all i can tell you, to avoid aliasing Jun 09 22:39:10 Yeah. I think somebody wanted to blur an image prior to downsampling it, which usually implies throwing away a heap of pixels you only just did complex calculations for in the previous pass. Jun 09 22:40:45 But I'm not aware of any high-quality image reduce algorithm, let alone one that lets you put the cutoff a bit lower than nyquist to leave headroom for further processing. Jun 09 22:41:03 Not aware of one in a library for Android. Jun 09 22:42:08 there are many way to blur on android, it was almost hyped too much Jun 09 22:42:13 glad ppl calmed down on that Jun 09 22:42:35 There's bicubic in Renderscript, but that's more suitable for upscaling. Jun 09 22:42:56 Blur seems to be very hip at the moment. Apple are doing it all over the place. Jun 09 22:43:18 yeah RS was promoted partially with blur algo, since it can process the blurring in parallel and not on the java side Jun 09 22:43:40 so it provides decent performances (when it works, and when the device supports it and when [insert many conditions lol]) Jun 09 22:44:00 500px had a great class for blurring over dynamic views Jun 09 22:44:03 worked fantastic Jun 09 22:44:14 used RS i believe Jun 09 22:45:08 * sh1 googles and finds an animation which is not only blurred but also has a weird frosted-window effect. Jun 09 22:45:36 Oh. It's not a frosted window. It's a GIF encoding artefact! Jun 09 22:45:56 wat Jun 09 22:46:28 Some windows have a macrscopic texture which gives a kind of stipple to things you can see through it. But the image I'm looking at is just an 8-bit GIF. Jun 09 22:46:46 s/windows/panes of glass/ Jun 09 22:48:56 you cannot really play with header of pic file format in real time with android, like altering the dictionnary of a jpg to create glitch effect Jun 09 22:49:19 well, you can, everything is possible, but it's really not supported, almost everything is very bitmap-centric Jun 09 22:50:13 for example: http://csh.bz/gifmelter/melt.html?http://25.media.tumblr.com/tumblr_m484w0Oldp1qzw1qyo1_500.gif Jun 09 22:50:19 good luck to do that in real-time Jun 09 23:17:24 adq: Hm. I have two functions which implement something a bit like that with different effects. Jun 09 23:18:15 That's just nearest-neighbour quantisation of the source vector, right? Jun 09 23:19:03 I don't think I'll be able to find my code; but I got two interesting effects by doing that quantisation after a specific dither function. Jun 09 23:19:41 play game services isn't for avoiding writing a server... Jun 09 23:20:29 x and y dither were random values between -0.5 and +0.5; but every column used the same x dither, and every row used the same y dither for one effect, and swich row/column for the other effect. Jun 09 23:21:54 (0.5 of a pixel width, that is) Jun 09 23:26:39 no idea sh1 Jun 09 23:35:41 Ok, noob question, should I dismiss ProgessDialog in onPause/onStop? I do it manually in every Activity and don't even remember why, maybe it's a good habbit I read about some time ago, maybe just do it intuitively, but maybe I shouldn't do it at all? Jun 09 23:36:15 I mean, does it die and get GCd with Activity destruction? Jun 09 23:36:34 If I don't dismiss it myself Jun 09 23:41:22 How can I debug a parse error: There was a problem parsing the package on a built apk? Jun 09 23:41:49 it runs fine in a emulator but after I build the apk and try to install it on 2 different devices that is what I get Jun 09 23:47:22 jexmex: what exact error do you see in console? Jun 09 23:48:04 I am not seeing any error in console. I guess maybe I don't know what I am doing Jun 09 23:48:26 I have my phone connected to PC now, can I try to do the install on my phone with through AS somehow? Jun 09 23:48:33 I am very new to this still Jun 09 23:48:40 been stumbling along as I go Jun 09 23:50:55 jexmex: so you're saying you're not building your app in AS or using some other tool, but just installing it to your device? Jun 09 23:51:37 I built it and have tested in AS on a emulator, it was only after I do a build and saved the apk to my phone when I started having problems Jun 09 23:52:36 Well, this channel is about develpment and related stuff, so until you provide any debug information I guess it'll be hard to help you in any way. Jun 09 23:53:57 trying now. I am helping out a buddy with a app that was written by another developer and the dude disappeared. I rewrote the SQLite code, and fixed the issues, it might be a issue because of signing Jun 09 23:54:05 I might need to look up more information on that Jun 10 00:13:57 figured it out Jun 10 00:14:00 signing problem Jun 10 02:30:12 evening all. quick question to anyone who may know...Sometimes when searching for an app in the Play Store, if I type most of the apps name, the exact match of the app I'm searching for with its icon will appear at the top of the search dropdown. What do I need to do to enable that to happen with my app? Is that part of Google's Deep Link indexing? Jun 10 02:34:32 b1ackcat, i don't think it's related to deep linking (which is for indexing your app content) Jun 10 02:34:36 see http://www.theverge.com/2016/1/18/10787388/google-android-app-install-search-results Jun 10 02:34:39 Hello Good Morning... Jun 10 02:35:16 looking for tutorial on calling IntentService from Fragment.... Jun 10 02:35:24 plz help Jun 10 02:35:29 advx_ lol, startSevice() Jun 10 02:35:47 Thanks adq. yeah I'm not 100% sure, and I'm having trouble finding the right phrasing to search for :s Jun 10 02:36:02 thanks, but when calling fragment from mainactivity it hangs... Jun 10 02:36:10 have added in manifest file.... Jun 10 02:36:16 b1ackcat, the funny thing is I also can recall a time where i was able to see the banner of the app i searched and it does not work "here" anymore too Jun 10 02:36:29 i also tried with few official google apps, none of them show a banner Jun 10 02:36:34 (using chrome on desktop atm) Jun 10 02:36:51 I'm talking about in the play store app itself, but yeah supposedly this is supposed to happen in google searches on pc too Jun 10 02:37:01 advx_ getContext().startService() should work fine ... Jun 10 02:37:07 but like right now in the play store I type "facebo" and facebook with the fb icon is top item in the dropdown Jun 10 02:37:09 that's what I want Jun 10 02:37:22 oh sorry i misread, well no clue then Jun 10 02:37:29 b1ackcat: I suspect it's largely a function of popularity Jun 10 02:37:34 g00s, hmm, well I was using getActivity(), will try out getContext() Jun 10 02:37:46 advx_ that should work fine too Jun 10 02:38:19 it just shows a box with text for me here: http://imgur.com/SlppoYC Jun 10 02:38:35 g00s, ok, thanks..., any good sites where we can learn professional quality code writing... Jun 10 02:38:47 g00s, for android Jun 10 02:39:56 g00s, what shall I replace "this" with in fragments Jun 10 02:40:42 advx_ how strong is your java ? Jun 10 02:43:30 g00s, quite versed, Jun 10 02:43:39 I noticed java has a toURL() and toURI() but it's not in android Jun 10 02:43:50 n e ways, Thanks for help, meet laters, time to leave... Jun 10 02:43:56 good day... all... Jun 10 02:44:20 so to convert a URI to URL I would use uri.toString() ? Jun 10 02:44:34 shmoooz maybe grab apache commons :P Jun 10 02:45:52 hmmm eclipse should have automatically suggested it Jun 10 02:45:57 shmoooz, https://developer.android.com/reference/java/net/URI.html Jun 10 02:46:06 ^ Absolute URIs always have a scheme. If its scheme is supported by URL, you can use toURL() to convert an absolute URI to a URL. Jun 10 02:46:15 Relative URIs do not have a scheme and cannot be converted to URLs. If you have the absolute URI that a relative URI is relative to, you can use resolve(String) to compu [...] Jun 10 02:46:35 adq: thanks, that's cool I only use absolute uri's **** ENDING LOGGING AT Fri Jun 10 02:59:59 2016