**** BEGIN LOGGING AT Mon May 02 02:59:58 2016 May 02 03:41:33 jython works on android May 02 06:50:37 hi all, can someone help? i got this error when trying to build any HTC kernel: http://pastebin.com/NbhJmDrR May 02 06:52:58 Yerac, did you read the channel topic? ;) May 02 06:53:25 this is app development. go to #android-root May 02 06:53:54 thanks! i am new to this and i didn't know about root channel May 02 06:54:06 thats why its in the topic :p May 02 07:00:51 hey there! I am trying to resize a page in a WebView. I want it to zoom out quite a lot (the page has a huge image in it). May 02 07:02:03 I tried with setting the zoom with ‘webView.setInitialScale(1);’ but that seemed to be very much zoom out May 02 07:10:27 geeting problem with notification using pending intent. May 02 07:11:52 anyone here May 02 07:11:54 .... May 02 07:14:28 maybe describe your problem May 02 07:14:57 we're not psychic May 02 07:15:11 Zharf: I am! May 02 07:15:23 devp: have you tried an anonymous function? May 02 07:15:43 -.- May 02 07:17:16 let me rephrase May 02 07:17:24 have you tried registering an Observable? May 02 07:21:05 so, is there a way to zoom out a lot on a WebView? May 02 07:21:25 the browser can zoom out to 10%, can I do that in Android? May 02 07:21:27 N3sh108: yes May 02 07:22:01 @thepoosh: how? I tried with webView.setInitialScale(1) but it’s not enough May 02 07:23:16 N3sh108: oh myyy, first google result: http://stackoverflow.com/a/7172165/1056359 May 02 07:23:53 oh, young padawan, thepoosh, I wish it was that easy May 02 07:24:10 your first google result and it doesn’t work properly on my Android TV May 02 07:24:39 so refine your search May 02 07:24:40 also, that is for pinch zoom May 02 07:24:58 thepoosh, so you are telling me that your way to help me is to tell me to refine my search? Really? May 02 07:25:17 how can you even assume that I didn’t try all the solutions mentioned in SO and other related forums? May 02 07:25:31 I just doesn’t seem to zoom out as much as I need on an Android TV May 02 07:25:49 It} May 02 07:25:57 N3sh108: sorry sensey for doubting you May 02 07:26:05 sensei} May 02 07:26:05 I'm too used to all the n00bs May 02 07:26:09 :P May 02 07:26:12 whatever May 02 07:26:15 :D May 02 07:26:15 hehe May 02 07:26:38 kanji for sensei always gets me, I'm like "what past life, what?" May 02 07:26:44 anyway, I’m setting to 1 but it’s not enough and my marketing guy doesn’t want to make the image any smaller :/ May 02 07:26:51 lol Zharf May 02 07:26:56 (seriously) May 02 07:27:15 N3sh108: so reject the ticket as a technical issue May 02 07:27:16 先生 - person born before another May 02 07:27:57 yeah, it's not hard to remember if I could get myself to read it out loud for myself before trying to understand what it means May 02 07:28:07 Hi all. I have multiple buildFlavors and I want to use signingConfigs in my build.gradle to sign my release builds. Currently I use the 'Generate Signed APK' in Android Studio. How can generate all apk for all my buildFlavors? May 02 07:28:57 Francescov: run in terminal "gradle build" May 02 07:29:15 Zharf: what will be the result of running test() -> https://drive.google.com/file/d/0B-GUumHFOft_bkpPX3JFZlRiZ0d5VTVQX1hUTUVKRnUySDdF/view?usp=sharing May 02 07:29:17 thepoosh: ok, thanks :) May 02 07:29:20 np May 02 07:33:00 getting problem with notification using pendingintent. Target activity shows a completly blank canvas May 02 07:33:40 gist CreateNotificationActivity https://gist.github.com/devprashant/b5575bb89536dd151da4ab91d17a36a7 May 02 07:35:57 thepoosh creating a simple notification and dont know why second activity opens blank on clicking notification May 02 07:36:44 1. why do you store the context in a separate viriable? May 02 07:37:00 2. what's in your activity_main.xml? May 02 07:37:34 3. where is the intent you set for the notification? May 02 07:37:54 pintent line 16 May 02 07:37:55 4. allow me to recommend using ButterKnife May 02 07:38:07 oh May 02 07:38:24 what happens in the receiver? May 02 07:38:29 sorry, missed that May 02 07:38:36 ok May 02 07:39:23 in activity_main only a button to create notification. May 02 07:39:49 onclicklistener for button on line 12 May 02 07:40:25 receiver activity thepoosh https://gist.github.com/devprashant/1d55f74cb6b4e71ac06014a05cc19bf2 May 02 07:40:44 argghh, I even tried to setScaleX(1) and setScaleY(1) and still nothing May 02 07:40:52 does the log get called? May 02 07:40:54 damn you Android TV May 02 07:41:02 N3sh108: just reject it May 02 07:41:03 no thepoosh May 02 07:41:15 how is this possible??? May 02 07:41:17 is it declared in your manifest? May 02 07:41:22 I wish I could reject it ;( May 02 07:41:33 say it's a technical difficulty May 02 07:41:40 and ask for better resources May 02 07:43:10 both activities are declared thepoosh May 02 07:44:50 devp: try using a smaller number for the number, you are probably getting a negative number due to overflow May 02 07:45:00 try hardcoding it May 02 07:46:03 where at PendingIntent.getActivity or NotificationManager.notify May 02 07:47:44 thepoosh did changed May 02 07:47:46 1.PendingIntent pIntent = PendingIntent.getActivity(context, 12, intent, 0); May 02 07:47:57 2. notificationManager.notify(13, noti); May 02 07:48:04 and? May 02 07:48:06 same issue May 02 07:48:13 how do i deobfustace google anlytics crash reports??? they looke like this IllegalStateException (@a:a:457) {AsyncTask #2} May 02 07:48:47 lxknvlk: the line numbers are usually still correct May 02 07:48:56 but there is retrace for that May 02 07:49:00 if you have the mapping file May 02 07:49:23 yeah i know how to do a retrace for a normal looking trace but it doesnt work on these May 02 07:51:59 thepoosh, what? logMyValue being called twice? May 02 07:52:15 the riddle is what will be printed in the logs May 02 07:52:39 it'll probably print test mBool = false\ntest mBool = true May 02 07:53:02 why? May 02 07:53:06 can you explain? May 02 07:53:18 it's a good interview question May 02 07:53:21 because B isn't constructed yet? May 02 07:53:44 I'm not intimately familiar with javas object construction May 02 07:53:49 see pics thpoosh https://drive.google.com/folderview?id=0B52sdb6BWXXNY1FuZDZtYV93TWs&usp=sharing May 02 07:53:52 just my guess May 02 07:54:20 http://www.javaworld.com/article/2076614/core-java/object-initialization-in-java.html?page=4 May 02 07:54:24 you are correct May 02 07:54:46 the method vtable is already initialized yet the variable stack is not May 02 07:55:10 so it calls B's logging method with the default value for boolean May 02 07:55:13 which is false May 02 07:55:20 yep May 02 08:26:14 thepoosh got the solution May 02 08:27:01 its PersistableBundle persistentState in onCreate in receiver activity. Just get rid of this and everything works May 02 08:28:26 guys. good day all! i have a question. how much time do i need to spend to become junior android developer? (prior: a little php, js knowledge and unix systems) i have 3-4 hour per day for learning May 02 08:29:00 is it real - become for 3-4 months in my case? May 02 08:29:08 wouldn't junior be the first stage anyway May 02 08:29:27 I was never a junior developer officially so I don't know what that means really :p May 02 08:29:35 Zharf, :) May 02 08:30:27 Zharf, well, let's it will be not official title, but level of knowledge. i mean - i will be create simple application without any problems May 02 08:31:12 honestly it'll depend on how fast you'll learn java properly May 02 08:31:22 Zharf, got it May 02 08:31:39 best way to learn is to write stuff though May 02 08:31:46 Zharf, got it. May 02 08:31:48 :) May 02 08:32:43 devp: then you should try using onNewIntent for that as well May 02 08:33:01 or just kill the activity with finish when you're done with it May 02 08:40:46 hi all, can someone help? i got this error when trying to build any HTC kernel: http://pastebin.com/NbhJmDrR May 02 08:42:43 Yerac: try android-root May 02 08:43:23 ah sorry, again wrong channel May 02 10:02:32 hi May 02 10:05:09 my gradle build stops on transformClassesAndResourcesWithProguard and freezes ? No idea it just on this step for 3 minutes. what did go wrong ? :) (no output) May 02 10:07:08 dang May 02 10:08:39 ok, --info for the rescue May 02 10:14:03 gordon_: what happened? May 02 10:14:14 btw, you can also run with --profile for later May 02 10:16:42 thepoosh: seems like... com.slidinglayer.SlidingLayer: can't find referenced method 'float sin(float)' in library class android.util.FloatMath ;) May 02 10:17:00 funny how I need to run command with --info or it doesnt come up May 02 10:24:02 gordon_: might be a proguard issue May 02 10:25:09 nah May 02 10:25:16 FloatMath was removed in api 23 May 02 10:25:40 well, that sucks May 02 10:25:53 hope I dont touch that part of library and I'm putting -dontwarn :D May 02 10:26:14 #ThugLife May 02 10:27:04 meh but sometimes it sucks when Math returns double and other things take float as input May 02 10:27:28 yeah, I'm not May 02 10:28:23 hi gang May 02 10:35:49 wyoung: HAI May 02 10:36:39 :D May 02 11:02:54 I'm creating an ImageView during runtime and adds it to the view. But how can I change the width/height of it before drawing on screen? Is it .setPadding? I would like to have a .setWidth etc really May 02 11:03:50 You set LayouParameters just like you'd set them with layout_width, layout_height, etc. in XML May 02 11:07:23 Mavrik: ah okey. But the idea of this ImageView is that it will be a movable object all around the screen. So it would need to be placed "on top" of everything else in the actual layout file. Should I create a LayoutParam for a RelativeLayout or something for that? May 02 11:24:09 Hey there. I'm looking for a good offline sync solution that meets the following criteria: Open source; Linux server; FOSS relational database backend (ideally MariaDB or Postgres); Designed for cross platform support. Any ideas? May 02 11:24:41 Researching online I find mostly stuff for windows/sql server (found an oracle solution too) May 02 11:29:20 I know this probably isn't the right channel, but here goes anyway... May 02 11:30:21 WHY THE HELL CAN'T I JUST HIDE AND SHOW THE SOFT KEYBOARD AS I PLEASE!? WHY DOES THE API IGNORE ME HALF THE TIME!? WHAT'S WRONG WITH THE PEOPLE AT GOOGLE WHO MADE THIS STINKING HEAP OF CRAP!?! GAAAAAAAAAAAARRRRRRRRRH!!!!! May 02 11:31:18 that felt all-right. May 02 11:32:36 Seriously though: Anyone familiar with a reason to why it doesn't work as normal developers expect? Why is there no simple Keyboard.hide() and Keyboard.show(View toHavFocus) ? It seems insane. May 02 11:33:23 imagine the application hiding the keyboard mid-typing May 02 11:33:32 because it's on a timer May 02 11:35:14 That would be a bug that I'd fix. May 02 11:35:42 Imagine I want to hide they keyboard because I want it to be hidden. =) May 02 11:36:07 That's in fact not very easy to fix. May 02 11:40:15 Anyone knows a simple way of moving around an ImageView with touch-drag ? May 02 11:42:18 Bernzel_: have a touch listener and change to location of the image May 02 11:42:40 https://thenewboston.com/forum/topic.php?id=2736 May 02 11:44:52 perfect, thanks thepoosh May 02 11:55:11 thepoosh: it has a nice feeling to it. But it's only dragging a "shadow" I need to update the actual ImageView's position to where the user drops the "shadow" , sorry if it's obvious but I can't get my head around it May 02 12:06:31 Brewster: you need to understand the code and implement it the way you want May 02 12:07:03 * Bernzel_ May 02 12:48:04 hi everbody May 02 12:48:21 I am trying to write my fits application that connects to a websie and uses their advanced search to return results May 02 12:48:36 Can anyone pint me to some documentation, tutorial or open source example of a similar application? May 02 12:48:57 I am struggling a bit May 02 12:49:06 Actually, I am striggling a lot May 02 12:52:06 Good morning folks. May 02 13:02:39 i have a ExpandableListAdapter with a with button in the child how can i update the group image? May 02 13:08:53 eeos, you're not giving enough information for anyone to help you. What sort of API does the website have? How far are you, etc? May 02 13:13:11 JOIN ##java May 02 13:15:39 Silvering why that they are telling me to go to here May 02 13:16:09 probably missed the slash :p May 02 13:19:27 azgul can you help me with that? May 02 13:25:23 azeam: no api .... they have an advanced search page but no api .... this is the issue! May 02 13:26:09 azgul: no api .... they have an advanced search page but no api .... this is the issue! May 02 13:26:49 azgul: if there was an api, the problem would be solved May 02 13:26:56 check jsoup out, and build your own client side api that parses their html May 02 13:27:06 or build your own wrapper around their website and call that instead May 02 13:28:39 azgul: straight above my head!!!! can you point me to some documentation / example ? I have been googling for days May 02 13:28:49 jsoup++ May 02 13:29:01 eeos: https://jsoup.org/ May 02 13:37:43 I have some problems trying to get a char to print correctly in a webview : I downloaded a JSON into a String which I used to get an array of objects. But the JSON had encoded character : "Ã~" instead of "Ø". Even though I specified the UTF-8 charset in my inputStreamReader and when I call loadDataWithBaseUrl I specified the UTF - 8 charset too but no matter what I do it won't decode the character… any idea? May 02 13:44:21 Silvering, what charset is the source using? you have to load it with the same May 02 13:54:08 does somebody use the play services to scan a qrcode? any throuble about the google-services.json file? May 02 14:53:43 is there anyway to improve AS performance on mac? I'm using 16gm of ram and an ssd and it still freezes a lot May 02 14:56:59 trudev, have you tweaked studio.vmoptions or studio64.vmoptions May 02 14:57:28 Zharf huh haven't heard of that. how do i go about doing that? May 02 14:58:07 the file is in the same directory as the binary for AS May 02 14:58:37 it has jvm switches like max memory May 02 14:59:49 thanks. i'll try that May 02 14:59:50 * pfn gives intellij about 2g,still not enough... May 02 15:00:07 I should try bigger May 02 15:00:08 here's mine http://eclipser.xmms2.org/idea64.vmoptions (for intellij but AS uses the same, just different filename) May 02 15:05:04 anyone here use sub-directories within their res/layout to group by feature? May 02 15:11:36 dsardari1, not supported May 02 15:14:17 pfn, I thought I saw an article that basically just included the sub-directories in the gradle file May 02 15:15:59 not subdirectories, no May 02 15:16:13 unless it's a gradle plugin to copy resources around May 02 15:17:30 <[ADAM]> What does it run a java server? May 02 15:17:44 was similiar to this: https://github.com/eskimoapps/ResourceNestingExample May 02 15:18:05 not sure if it works anymore though May 02 15:21:32 <[ADAM]> I ask for the dev bundle is too large for dl. May 02 15:24:23 hi May 02 15:25:37 I've got a rest api secured with google oauth. We're developing an Android app using this api. To use it, the app needs to get an authorization_token, send it back to the rest api, the api gets the access_token from this authorization_token and send the bearer to the android app May 02 15:25:48 do we agree on the workflow? May 02 15:26:05 if so, do the android app need something more than just the client_id to request the authorization_token? May 02 15:45:12 I'm not sure what to pass to make a request with a file in it May 02 15:45:48 I'm doing this: $client->request('POST', self::ROUTE, [], [file($imagePath)], [], json_encode($data)); May 02 15:45:59 but I'm not getting the file in the Request object May 02 15:54:04 it works if I pass an UploadedFile instance instead, but I'd like to test what the client will send, and the rest client won't pass an UploadedFile instance May 02 16:01:15 oh May 02 16:01:15 god May 02 16:01:17 wrong chan May 02 16:07:15 I got a crash log for a app I'm building with other devs May 02 16:07:20 http://pastebin.com/UHGhbHUv May 02 16:07:30 its a bettery checker app May 02 16:07:57 https://github.com/AviapploTech/notcrappybatterychecker is the source May 02 16:08:20 Any ideas what went wrong? May 02 16:10:52 naming something “Main2Activity” makes the baby Jesus cry May 02 16:11:38 anyways, have you checked your resources? May 02 16:12:15 really? its just generic thing used by Android Studio. and yes I checked my resources. its put there and referenced May 02 16:12:45 name things so that people have an idea what they are. May 02 16:13:00 Main2 doesn’t really say anything, other than someone might not know how to use version control May 02 16:13:48 Main2 says a lot, like, Main1 exists somewhere :D May 02 16:13:59 and possibly MainOld May 02 16:14:39 Main20160112Activity May 02 16:14:44 supersmilers: It says in your onCreate method, that you’re calling setText on a TextView with a bad resource May 02 16:14:46 or that someone hit new activity, and pressed next next next May 02 16:14:54 Ashiren lol May 02 16:16:35 is there anything else needed with Butterknife 8 other than Butterknife.bind() to bind views? Getting NPEs for some reason May 02 16:16:48 I renamed Main2activity to NavigationActivity May 02 16:17:04 Now is that better? May 02 16:17:16 a little May 02 16:17:37 anyways, your stack trace is pointing at your onCreate, at a setText call in there May 02 16:18:24 So is setText in onCreate crashing app? May 02 16:18:47 I wanted to let text view show battery stats May 02 16:19:50 setText itself isn’t doing it; it’s what’s being passed in May 02 16:21:33 so I coded wrong? what should I fix to get it show fancy battery stats. the app suppose to know the difference between a battery case and a charger May 02 16:22:06 how does the app know that? May 02 16:23:01 what does pService.getVoltage() return? A string? May 02 16:23:01 It suppose to calculate the voltage and change the info to corroponds to the one it has in the database May 02 16:24:17 pservice returns a voltage from the backend class May 02 16:24:22 what type May 02 16:24:35 if it’s not a String or something like that, then that’s your problem May 02 16:24:50 its integer May 02 16:25:02 that’s your problem. May 02 16:25:19 take the value you get from that, and put it in a string May 02 16:26:04 oh. so like output that into a string like paste it into string.xml? May 02 16:26:11 no May 02 16:26:47 read up on how to turn values into strings May 02 16:28:46 so like getVoltage() = i then String s1 = string.valueof(i)? May 02 16:28:56 something like that May 02 16:29:22 you might want to read up on basic Java programming while you work on this project May 02 16:36:59 I asked this earlier but it was quite early in the day so I'm repeating a second and final time for added exposure. I'm looking for a good offline sync solution that meets the following criteria: Open source; Linux server; FOSS relational database backend (ideally MariaDB or Postgres); Designed for cross platform support. Any ideas? May 02 16:37:24 Parse Server? May 02 16:40:43 s73v3r, I don't think that's what we're looking for, but thanks for the suggestion. May 02 16:41:32 it seems to check the boxes you listed. It’s open source, i’m not sure what backend DB it runs on, but it runs on Linux, and is cross platform May 02 16:45:33 make: *** No rule to make target `external/iptables/extensions/libxt_external/iptables/extensions/libxt_CONNMARK.c', needed by `out/target/product/generic/gen/STATIC_LIBRARIES/libext_intermediates/libxt_external/iptables/extensions/libxt_CONNMARK.c'. Stop. May 02 16:45:50 can someone help me with this error May 02 16:50:36 MrNewbie, What are you trying to compile? Is this android related? you may have more luck in ##c May 02 16:51:44 truckcrash: i am trying to compile AOSP for LG H850, but i guess the problem is from LG's side May 02 16:52:22 oh, I dont have a clue how to help you with that. sorry May 02 16:52:23 wrong channel, see topic May 02 16:52:50 oh APP-Dev Sorry May 02 16:53:26 np May 02 16:56:04 Hello, I want to open the context menu when options item is selected May 02 16:56:29 registerForContextMenu() and openContextMenu() ask for a "View" parameter May 02 16:56:31 what do i pass? May 02 16:58:32 Dattz: Use an AlertDialog May 02 17:06:50 Hello. Don't you know if android N or a newer version plans to add java.time apis, and/or java.nio.file? May 02 17:10:10 Unlikely. May 02 17:13:14 pff actually I do not see any real reason not to do at least the first, especially if they are using openjdk as their base now. copying java.time could even require no changes to it to work, I would say, depends on some things maybe but probably should not be so difficult May 02 17:20:57 Has anyone successfully used BottomSheets from the design support library in their app? May 02 17:25:38 offtopic whatsapp blocked in brazil May 02 17:31:46 bitkiller: you can tell which countries have shitty governments by the apps they block, if it has encryption you know the government is up to no good May 02 17:33:11 i think whatsapp just got encryption, i saw something about that a month or so ago May 02 17:33:57 i think we should ban religion instead, that'll do more for society than banning encryption May 02 17:34:21 and i'm off May 02 17:40:54 I almost got it but its not reading voltage May 02 17:41:23 it just stays at -1 and disconnected May 02 17:42:29 see here http://i.imgur.com/I5DaDR8.png May 02 17:43:39 any idea why? May 02 17:45:33 I was just checking in my "Standalong SDK Manager" (simply type "android" in your shell) and noticed "Android M (API 21 MNC preview)". What's that? Why is there a preview of an older API available? May 02 17:46:30 hello. I am new on mobile development and I need to build an app for a geolocation service. my coworker indicated me two services that I could use to make it. Sencha, for html5 development and PhoneGap, for deployment on android, windows phone and ios. May 02 17:46:48 are those services correct? May 02 17:47:05 for those who are wondering about my problem, the source is at https://github.com/AviapploTech/notcrappybatterychecker May 02 17:47:43 Ahiiru: You can use them, but everyone here will tell you not to bother and go native May 02 17:47:56 web apps shoehorned into phone apps suck large portions of ass May 02 17:47:57 s73v3r: what does that mean? May 02 17:49:20 is there a reson why my app doesn't read voltage? May 02 17:52:04 so is there a way to "preprocess" data returned via retrofit before onResponse() is called? May 02 17:52:23 eg if I needed to convert a data structure to another May 02 17:52:58 first thing that comes to mind would be an okhttp interceptor May 02 17:53:31 well im using that to send authentication data May 02 17:53:51 Anyone? May 02 17:53:57 but can it be used to intercept the data on the way back? May 02 17:54:52 take a look at their logging interceptor, it prints out the entire body May 02 17:54:57 so yeah it's definitely possible May 02 17:55:06 response body, sorry May 02 17:57:13 here it is https://github.com/square/okhttp/blob/master/okhttp-logging-interceptor/src/main/java/okhttp3/logging/HttpLoggingInterceptor.java May 02 17:57:49 azgul: interesting thanks May 02 17:59:52 hello? I need help with my app May 02 18:00:18 no idea supersmilers, maybe I joined late but I don't see that you provided any code May 02 18:00:53 or explanation of what you're trying to do other than reading voltage of whatever May 02 18:00:56 https://github.com/AviapploTech/notcrappybatterychecker is the source but somehow it doesn't read voltage May 02 18:01:43 its a git of app I built with other devs May 02 18:02:19 hm? May 02 18:02:39 It suppose to give voltage in numbers instead of -1 May 02 18:03:05 so why is your service returning -1 May 02 18:03:14 that’s what you need to look at May 02 18:03:51 PowerService pService = new PowerService(); does PowerService extend Service? May 02 18:04:28 idk why. but that's other dev put that in. most of powerservice is backend at /backend/ May 02 18:04:44 oh boy May 02 18:05:17 have you checked the values coming out of that service? May 02 18:05:18 you start service by context.startService(...) or by binding May 02 18:05:38 https://github.com/AviapploTech/notcrappybatterychecker/tree/master/app/src/main/java/io/getcoffee/sightglass/notcrappy/background is the back end area May 02 18:05:59 Ashiren yeah it does May 02 18:06:11 maybe it's not supported May 02 18:06:41 which is stick me as odd because battery library is there May 02 18:06:42 try to dump all the keys/values you got inside your intent May 02 18:07:02 i don't think all fields are supported depending on the version, rom, etc May 02 18:07:38 I'm trying to target min sdk of 5.0 with max sdk of 6.0 May 02 18:07:49 !!! May 02 18:08:01 um May 02 18:08:42 ummmmmmmmm May 02 18:08:48 sing along everyone ! May 02 18:09:29 * g00s awaits new monthly version stats May 02 18:11:37 which is odd. its in the docs but maybe its not used? May 02 18:13:04 ? May 02 18:16:10 whoops I killed the chat in here May 02 18:17:58 Whats up supersmilers May 02 18:18:53 drose379 I'm trying to figure out why my app didn't read voltage May 02 18:19:59 I posted a question and now no response since 13:09 May 02 18:20:59 the issue looks to be in your service. Unfortunately, it doesn’t seem like many people here have experience with reading power state May 02 18:21:34 doesn't look like the PowerAsyncTask which updates the voltage is instantiated at all when running your code May 02 18:21:40 so start looking at why that doesn't happen May 02 18:22:08 rick kazman's new book on software architecture is out http://www.informit.com/store/designing-software-architectures-a-practical-approach-9780134390864 May 02 18:22:16 yea. I wonder why. since the doc maybe that why? Ok so how to intialize that May 02 18:22:22 for those who understand architecture is more then MVP haha May 02 18:23:05 I mean how to initialize PowerASyncTask May 02 18:23:49 if you read your code the PowerService does that if the ChargingBroadcastReceiver receives Intent.ACTION_POWER_CONNECTED May 02 18:25:09 the service isn't declared in the manifest May 02 18:25:12 so I'd start there lol May 02 18:26:36 So like on launch, PowerAsyncTask or something? May 02 18:26:44 what May 02 18:26:49 http://developer.android.com/guide/components/services.html read that May 02 18:28:56 look here. :https://github.com/AviapploTech/notcrappybatterychecker/blob/master/app/src/main/java/io/getcoffee/sightglass/notcrappy/NotCrappyApplication.java it got service launcher May 02 18:29:23 read the link I posted May 02 18:29:34 one of the first things it mentions, is that a service must be declared in the manifest May 02 18:29:40 oh. that May 02 18:29:42 which it is not May 02 18:31:25 There. Added in manifest May 02 18:31:57 nope it gives -1 May 02 18:32:29 have you looked at the method documentation? It probably states under what circumstances it returns -1 May 02 18:33:31 oh it says the constant value in batteryManager returns 3 May 02 18:33:36 he's not getting that far May 02 18:33:57 you can't do new PowerService() and expect it to do anything May 02 18:34:45 really, Powerservice backed was someone else's work which he works on my app May 02 18:39:24 did you think about asking him how to use it? :P May 02 18:39:52 hey quick question May 02 18:40:11 when I use mockito doAnswer May 02 18:40:53 for example doAnswer(new Answer ...).when(...).methodCall May 02 18:41:01 how do I get the actual answer? May 02 18:43:13 oh, the service works fine supersmilers: https://i.imgur.com/XfJkO4R.png May 02 18:44:29 Oh good but it looks like it doesn't constantly read voltage May 02 18:45:55 is this course work or something? May 02 18:46:31 no. I'm starting actual app for play store May 02 18:49:44 okay May 02 18:50:03 I/PowerAsyncTask: Read voltage 3715 May 02 18:50:07 works fine though May 02 18:50:31 not with the current code tho :D May 02 18:50:43 so PoweASyncTask is proper one? May 02 18:51:16 the voltage is only being updated if BatteryManager.BATTERY_PLUGGED_USB (PowerService:107) May 02 18:51:34 but as you can see from my screenshot, it thinks it's using AC even though it's charging through USB on my PC May 02 18:51:40 so PowerAsyncTask never runs May 02 18:51:57 also you currently have no way of sharing the service data with your ui layer May 02 18:52:09 so you wouldn't be able to display anything until you fix those things May 02 18:52:17 Oh. that why? May 02 18:53:35 yep if you fix those two things you can start working on the UI that displays the voltage May 02 19:10:37 has anyone ever had the error: "could not find class 'android.app.SharedElementCallback' inside of one of their fragments? my group included 2 libraries (youtube player, picaso) but we didn't think they exceed 65k methods. any thoughts? May 02 19:12:25 Ok. I started PowerAsyncTask but its not doing anything May 02 19:13:03 /close May 02 19:13:27 supersmilers you're either not reading what I say or you don't know anything about Android or Java May 02 19:13:34 I give up :( May 02 19:13:55 I just know basic java May 02 19:15:19 Oh it's being used as launcher May 02 19:15:32 alright, so after you fixed what I pointed out in PowerService, the asynctask now runs? May 02 19:15:44 how do you share the voltage that is being set in the service with the activity now? May 02 19:15:46 you should read some of the books on Android development, or take the Google udacity course May 02 19:16:36 eBay refreshed their app to material design .... May 02 19:16:40 wow i thought i was late ! May 02 19:22:19 thats funny, its still pointing to old class in crash log May 02 19:23:37 hey May 02 19:23:56 I have 1 ANR that in the dev console, but the logcat output is absolutely unusable May 02 19:23:58 supersmilers probably instant run messing up, clean project and rerun May 02 19:24:04 I need a stack trace, which is located in /anr/traces.txt May 02 19:24:10 how can I access it? May 02 19:24:16 anyone? May 02 19:24:26 has anyone ever had the error: "could not find class 'android.app.SharedElementCallback' inside of one of their fragments? my group included 2 libraries (youtube player, picaso) but we didn't think they exceed 65k methods. any thoughts? May 02 19:24:28 unsigned_long do you have access to the device? May 02 19:24:41 no, I got the report exclusively in the dev console May 02 19:24:52 azgul: g00s the output looks exactly like that: http://stackoverflow.com/questions/6978964/anr-keydispatchingtimedout May 02 19:25:20 that (the thread dump) is the only thing I see in the dev console :// May 02 19:25:30 —> I'm unable to fix the issue (, am I?) May 02 19:25:31 FINALLY an answer: http://stackoverflow.com/a/17789187/2412477 May 02 19:25:43 unsigned_long you should probably have some analytics or bug reporting library :D May 02 19:26:16 g00s: great you name it, added this last version. Though, this report comes from an older version :p May 02 19:26:53 g00s: wait, do you mean Google Analytics or a specialized lib? May 02 19:27:16 anything. you can set up GA to catch exceptions May 02 19:27:50 okay, yep, that's what we did May 02 19:28:21 ok I just wonder why GOOG doesn't automagically upload the /data/anr/traces.txt in case of an ANR May 02 19:28:44 doubt you can catch ANRs with Analytics, not sure though May 02 19:29:42 I suppose in theory, the exception may have some private data in it [depending on how it was coded] May 02 19:29:52 the stackoverflow answer you linked says that it mainly happens due to heavy work in onCreate/onStart/onResume.. did you try to time all your implementations of those to check if any of them is taking relatively long? could take super long on a poor device then May 02 19:31:36 azgul: yep, that's the general problem :) Yep, I don't even know which Activity / Service I could start with. May 02 19:32:18 I will continue benchmarking all methods as you suggest May 02 19:32:42 would be easy to add it to all if you have a 'BaseActivity' implementation and just time before and after your call to super.onCreate etc May 02 19:32:52 What is the keyword that Android uses to call those notifications that are persistent? They cannot be swiped away until the underlying activity is killed (like a music player with a pause button). May 02 19:33:09 What do I need to do to get a licensed version of the google framework for my custom version of Android for PC May 02 19:33:56 azgul: I thought of TraceView May 02 19:34:09 Nope. it still points old class May 02 19:34:10 http://developer.android.com/tools/performance/traceview/index.html May 02 19:34:13 I am building it myself May 02 19:36:19 Better question, How do I get licensed to include google services in my custom Android OS for pc that I am building May 02 19:40:19 Great. it still references old classes in crash log And I cannot clean it May 02 19:44:19 Zup guys! Does anyone have a project with a common backend for both android and iOS I may have a look at or some other resources that migt help me? May 02 19:47:13 Rocket18: iirc, a minimum requirement is to pass the android CTS - your best bet might be to find a suitable partner program in Google and reach out to them maybe May 02 19:49:29 Rocket18: https://source.android.com/compatibility/ - see last section for contact address re: GMS May 02 19:50:26 @kbs thanks so much! I will look into it May 02 20:07:47 hi to all, what is the best way to have string with param and tag style? May 02 20:08:10 like You are at %1$s\n%2$s May 02 20:08:42 without params works, with params seams lost tag May 02 20:09:03 anyone here? May 02 20:09:46 tried wrapping it in CDATA? May 02 20:11:57 oh and are you formatting it before or after calling Html.fromHtml? May 02 20:13:49 azgul place.setText(Html.fromHtml(getString(R.string.nearIn, nearIn.getTitle(), nearIn.toString()))); May 02 20:14:19 azgul using cdata works but i want to know best method May 02 20:15:30 anyone? May 02 20:16:16 because you can't use special characters inside an xml string element May 02 20:16:29 so you either have to use cdata, or html escape them May 02 20:16:37 html escaping is so disgusting to read, so I prefer cdata May 02 20:16:48 xml escape May 02 20:17:09 xml escape any example? May 02 20:17:27 http://developer.android.com/guide/topics/resources/string-resource.html#StylingWithHTML May 02 20:20:28 something I have always wondered in the staged-rollout: If you do 10 % for version 1. Then You upload version 2 and do 10 % as well. May 02 20:20:37 will it be the same 10 % who now update from version 1 to version 2? May 02 20:20:55 or: is it a completely, uniquely random set of 10 % of people again May 02 20:21:16 uniquely different* May 02 20:21:16 azgul pfn thz May 02 20:26:19 azgul pfn using fromHtml "\n" doesent works i can use
? May 02 20:27:47 yes May 02 20:27:59 SimonVT: Thanks :) May 02 20:34:13 th May 02 20:34:15 thz May 02 20:50:36 anyone ever see this using Instant Run: W/ResourceType: Failure getting entry for 0x010804ca (t=7 e=1226) (error -75) May 02 20:54:30 g00s, not related to instant run May 02 21:03:50 If I get an IDE for app development on my android device do I still need the SDK? May 02 21:04:14 If I get an IDE for app development on my android device do I still need the SDK? May 02 21:04:40 Rocket18: why ask twice? May 02 21:04:41 Rocket18: why ask twice? May 02 21:04:55 Hi, May 02 21:05:18 Thought it might get lost May 02 21:05:31 Rocket18, for android dev, u need both IDE and SDK May 02 21:05:51 but this is about one of the IDEs on the android device May 02 21:05:57 SDK is the core and it contains all the apis and tools and other stuff May 02 21:06:03 Rocket18: I’m assuming you’re talking about AIDE or something? May 02 21:06:47 ohh, on android !! no u dnt coz those IDEs uses the inbuild apis from the phone or the andro device May 02 21:06:51 Yes May 02 21:07:10 AIDE should bundle everything you need May 02 21:07:48 @Agent47 @s73v3r Thanks for the answer! May 02 21:08:09 anytime bro... May 02 21:08:27 If you have ... this does not work. i'd like View1 to dictate the width of the parent, and also its sibling child. Any ideas? May 02 21:09:55 g00s: what? how could it dictate the parent if the parent is wrap_content May 02 21:10:01 it would have no size May 02 21:10:13 View1 is 280dp May 02 21:10:31 ok? May 02 21:10:32 View2 should be 'whatever view1 is' ... May 02 21:10:51 and the parent should wrap content. i guess i need relativelayout for this bleh May 02 21:10:51 i see May 02 21:11:44 silly that design lib didn't put nav drawer width as public attribute May 02 21:12:19 eff it, i'll just use @dimen/design_navigation_max_width even though its private May 02 21:12:34 guess i'll have to figure something else out when the tools actually enforce that :D May 02 21:16:05 * mrandroid is sooooo happy it's Monday. May 02 21:26:13 yey another build tool https://blog.twitter.com/2016/the-release-of-pants-10 May 02 21:27:12 is this a general one, or just for Android? May 02 21:28:07 looks general May 02 21:33:13 does anyone know how the tactile feedback hardware is called that make a little "tock" instead of a vibration? May 02 21:34:32 it is a speaker sound May 02 21:36:01 /close May 02 21:37:33 truckcrash, are you sure? did it fool me that well? haha May 02 21:38:03 yep. no special hardware involved May 02 21:38:05 mine does the speaker "tock" too, but a phone I had in my hands a while ago made the impression there was more May 02 21:38:27 It really felt like hitting back a little May 02 21:38:56 I know what you mean. I think I can "feel" it too May 02 21:40:06 well my moto-g 1st gen vibrates much to weak for everything... May 02 22:02:33 Ok, Tell me honestly, would you try android for PC with a full development environment intigrated into the OS? May 02 22:02:41 no May 02 22:02:47 Rocket18: No May 02 22:02:53 maybe May 02 22:03:37 if it’s meant to be a general use OS, there isn’t much value in bundling the dev environment May 02 22:04:30 most people wouldn’t get value out of it, and those that would are just as comfortable installing it as they choose. May 02 22:04:56 s73v3r: OSX probably wouldn't bootstrap itself into relevance without inclusion of Project Builder May 02 22:05:19 i don’t believe that was installed by default May 02 22:05:29 by default, no, but included, yes May 02 22:05:57 that’s what I’m saying: you don’t need to install it by default. Having it available is enough May 02 22:06:25 What features would make android for PC something you would install May 02 22:06:52 it wouldn’t. Android focuses on touch based interfaces, which is something that isn’t common for PC May 02 22:09:05 Android Games are gaining popularity, would you want to play them on a gaming PC? May 02 22:10:01 Android will onlt keep evolving and the coming evolution is with the PC May 02 22:10:33 meh May 02 22:10:57 i’m not too convinced of that May 02 22:12:50 meh May 02 22:13:23 market's self-destroying need for constant growth isn't the same as actual need May 02 22:14:05 in many ways, PC reached peak, and many previous buyers are devolving into passive consumers for whom TV + tablet + smartphone is all they need May 02 22:25:33 anyone can help me with this issue when running emulator on tools? mac os x - https://dpaste.de/AoFF May 02 22:31:44 Let me be clear, my OS works on tablets or any device with an arm or x86 processor. May 02 22:31:53 Not just PC May 02 22:32:38 hey do you guys know if there are any python wrappers for the android api? May 02 22:33:08 aleogen: What is wrong with Java? May 02 22:34:51 LunarEclipse120: arguably, nothing. However, I'm looking for a python wrapper. May 02 22:34:52 many things May 02 22:35:15 aleogen: I’ve heard Kivy I think it is? I’m not sure how good it is May 02 22:43:11 s73v3r: so much potential with python 2.7, but maybe I can port some things over to 3.5. Looks great otherwise! :D May 02 22:43:19 Thanks for the update May 02 22:59:55 anyone have experience with any of the main rich text editor libraries on githug and have any thoughts/concerns? May 02 23:02:23 can someone help me fix this error: "plugin is too old please update to a more recent version". i was using 'com.android.tools.build:gradle:2.0.0-beta5', and got the error so I tried changing it to '2.1.0' and I still get the error. Any ideas? May 02 23:03:13 this is in androids tudio by the way May 02 23:03:56 i do apktool b FolderName and it doesnt create the apk file? May 02 23:06:05 Im thinking about storing ApplicationContext in my presenters, instead of passing it when needed, thoughts? May 02 23:08:30 Then just setting it to null when the view disconnects May 02 23:08:39 Actually, do I have to set it to null? May 02 23:08:51 g00s: you would prob have some thoughts on this May 02 23:09:19 Storing applicationContext in presenter g00s May 02 23:10:29 Can applicationContext leak? May 02 23:19:04 drose379 no, it always exists May 02 23:20:04 OK, so its fine to store in a presenter and never set it to null May 02 23:20:26 jesus christ, fucking AS ... May 02 23:20:44 now its hanging when i start it, and culprit seems adb May 02 23:21:11 adb has to be the biggest pos May 02 23:25:53 clear May 02 23:25:59 tushigushi: ? May 02 23:26:09 clear! May 02 23:26:27 sorry May 02 23:26:31 you guys operating thetans ? :D May 02 23:26:32 better be May 02 23:26:40 it was supposed to be "/clear" May 02 23:27:05 on the other hand I see you guys are up for a chat. May 02 23:28:13 I want to make a push on/off button, so that when i oress and hold it audiorecord starts and when i release it i ends May 02 23:28:39 so curious if anybody here is going to i/o? May 02 23:28:54 is there a way (preferably easy) to do such thing? May 02 23:29:10 yes May 02 23:29:13 I'm just not sure what exactly to look for May 02 23:30:14 With the Android Annotations REST Service stuff how would I override the injected RestService with my own? May 02 23:33:05 Hey guys so its alright to store a reference to applications context and never set it to null right? Just wanna be sure May 02 23:34:21 https://github.com/excilys/androidannotations/wiki/Unit-test-your-application May 02 23:34:26 Hmmm... Looks like you just override it. May 02 23:36:53 I knew I would be laughed at for "clear" one day. May 02 23:40:17 I bet some of you guys work @ gugl. Call me the 'clear' guy from now on in Google headquaters.. May 02 23:40:29 nope, no one May 02 23:40:41 So any ideas hints about that button? May 02 23:41:01 muffin button? May 02 23:41:20 if it is what you call it then yes May 02 23:41:37 yes thats what we call them May 02 23:42:14 let me 'gugl' it May 02 23:43:26 gugl took it rather literally May 02 23:44:04 no wonder no one of you work @ gugl May 02 23:45:57 tushigushi: You'd want to have it such that on button down you start recording and then on button release you stop recording. May 02 23:46:07 yes May 02 23:46:55 You'll use View.OnTouchListener to tell when the user has pushed & released May 02 23:46:57 http://developer.android.com/reference/android/view/View.OnTouchListener.html May 02 23:47:23 And then do some sort of Audio Capture, which there's a good tutorial on May 02 23:47:23 https://developer.android.com/guide/topics/media/audio-capture.html May 02 23:48:56 yep it seems what i need, cheers for that! May 02 23:49:42 on the audio side i'm fine already, I'm doing audio transmission, but it more or less works already. May 02 23:50:29 thanks jessie! May 03 00:27:14 when trying to adb install file.apk - Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.appcomp.mobile.android.permission.MOBILE pkg=com.appcomp.mobile.android.live] May 03 00:27:20 any hint how to solve this? May 03 00:28:03 xnoxk: You fucked up permissions in the XML May 03 00:29:11 Im trying to reverse eng an app. I changed some stuff on the smali code, compiled it again and now I want to run it. I created some certs for it May 03 00:29:22 that's the unique error im having May 03 00:29:28 what are you trying to do that for? May 03 00:31:50 s73v3r: testing some new stuff only May 03 00:32:08 new stuff for what? May 03 00:33:03 personal knowledge, use May 03 00:33:05 whatever lol May 03 00:33:35 you’d be much better off doing that with your own app May 03 00:34:06 s73v3r: it's my friend app May 03 00:34:13 im just asking if there's anyway to bypass that error May 03 00:34:44 your friend should be able to help you fix it. there isn’t a way to ignore it May 03 00:35:24 xnoxk: at a guess, it sounds like you have another app with a similar permission defined, but with a different signature. You can uninstall the other app, if you know what this is. May 03 00:36:07 kbs: I did adb uninstall file.apk May 03 00:36:14 and then tried to install the new version May 03 00:36:21 but throwed the same error May 03 00:36:26 xnoxk: Change the XML May 03 00:37:19 xnoxk: as above, a _different_ app, not your own/your modified own; or pick a different permission name I guess as LunarEclipse120 suggests May 03 00:38:53 maybe http://stackoverflow.com/questions/27043933/install-failed-duplicate-permission-c2d-message might also help - beats me :) May 03 00:39:31 can someone help me with a nullpointerexception error i'm getting for my custom class that extends button? May 03 00:39:51 ilya: Pastebin the logcat? May 03 00:40:04 can i send you a stackoverflow link? May 03 00:40:25 ilya: Hey May 03 00:40:26 i made a post with all the informations May 03 00:40:29 ilya: Sure I mean May 03 00:40:31 * LunarEclipse120 is tired May 03 00:40:43 http://stackoverflow.com/questions/36989843/the-following-class-could-not-be-instantiated-rendering-problems-message-appea/36990102?noredirect=1#comment61534693_36990102 May 03 00:41:22 ilya: What is line 22 of segment class? May 03 00:41:48 it's a increment of a static member of the activity where the Segment class is instantiated May 03 00:42:09 ilya: Paste it May 03 00:42:29 (GameActivity.numSeg)++; May 03 00:43:15 * LunarEclipse120 has no idea May 03 00:43:22 ilya: What is before that? May 03 00:43:42 public Segment(Context context, AttributeSet attrs){ super(context, attrs); part = GameActivity.numSeg; (GameActivity.numSeg)++; //Segment.java:22 } May 03 00:44:00 Yep May 03 00:44:10 My very simple knowledge of Java has no idea May 03 00:44:26 how are you an android developer? May 03 00:44:39 if i can ask May 03 00:44:43 ilya: I have to get back into it May 03 00:45:11 ilya: It has been awhile. 75% of the reason I am here is so I can tell people that come to the wrong channel where to go May 03 00:45:20 25% is for very simple programming mistakes May 03 00:46:01 oookay May 03 00:46:20 lol May 03 00:46:42 is there anyone else here who is knowledgeable of android development who can help me? May 03 00:47:03 ilya: Alot of people May 03 00:47:11 where are they? May 03 00:47:14 * LunarEclipse120 is more of a custom ROM kind of guy May 03 00:47:43 ilya: I don't know. 360 users is abit though May 03 00:48:00 360 online users? May 03 00:48:15 can they not read this? May 03 00:48:32 and how are you doing this specific reply to me May 03 00:48:34 okay you know what May 03 00:48:46 ilya: You mean like this? May 03 00:48:54 kbs: when changning permission name ihave to change the entire XML file May 03 00:48:58 ilya: Well in this format. Most clients auto complete it if you press tab May 03 00:49:08 like everything need to start with com.appcomp. right May 03 00:50:32 I run CyanogenMod; I am not a developer May 03 00:56:11 LunarEclipse120: May 03 00:56:19 do you confirm what i asked to kbs above? May 03 00:58:04 xnoxk: I dont' know that much. I would say he is right May 03 01:03:09 kbs: are you around? May 03 01:04:05 xnoxk: right - see if changing the suffix to something else (for whatever permission you're (re)defining) will make a difference May 03 01:04:28 xnoxk: probably easier if you pastebin your manifest somewhere :) May 03 01:05:01 xnoxk: of course - it does mean that you'll need to probably update the smali code too - presumably it's going to use the "old" string etc. May 03 01:05:49 xnoxk ask your friend whats up with his app, this isn't the place for reversing May 03 01:14:53 kbs: last thing, i could compile again etc, but now when i launch the app it says Sorry, there was an unexpected error May 03 01:15:09 kbs: is it related to the app functionality or compilation mistakes May 03 01:15:09 etc May 03 01:32:24 ha, so true "If you use an editor instead of an IDE, then you are actively making the choice to waste time. Your editor may manipulate text better than an IDE. It may start up faster. But it can’t manipulate code as quickly as an IDE." May 03 01:59:27 Where you read that g00s May 03 02:00:33 http://www.amazon.com/Other-Road-Serfdom-Sustainable-Democracy/dp/1584659610 May 03 02:00:40 lol, oops May 03 02:01:07 drose379 http://arlobelshee.com/the-core-6-refactorings/ May 03 02:01:36 its towards the end "What if I don’t have an IDE?" May 03 02:02:04 * g00s needs to find OS X clipboard manager May 03 02:02:20 Haha May 03 02:02:49 i remember seeing a nice one that let you save a bunch of things at same time May 03 02:03:40 ah here it is, hm $7.99 May 03 02:04:58 Hey. Are MenuItems by default translucent? I want it to be solid white. but even when I do menu.getItem(0).getIcon.setAlpha(255) it's not fully opaque May 03 02:05:00 any idea? May 03 02:06:15 Mattx hm, probably best to look at the sources May 03 02:06:36 never mind, I just noticed lol May 03 02:09:55 the assets themselves are kind of transparent May 03 02:11:46 just in case anyone know. I'm applying a colorFilter to all my menu icons. I have a MainActivity, and I want to put that code there May 03 02:12:10 but onCreateOptionsMenu on the activity is called after the same function is called on its fragments May 03 02:12:28 so how do I access the menu icons from MainActivity? May 03 02:14:08 Mattx do you really have to do this dynamically ? O.o May 03 02:14:46 not for a real project. I'm learning about color filters and PorterDuff modes **** ENDING LOGGING AT Tue May 03 02:59:58 2016