**** BEGIN LOGGING AT Wed Jun 10 02:59:59 2015 Jun 10 03:07:03 <_genuser_> ugh dependency injection Jun 10 03:17:59 Is there any advantage to putting Keywords in a Google Play app description? For example: the app i'm looking at just has a string of random words at the end of the description Jun 10 03:18:34 words relevant to the app but not in the actual description that is Jun 10 03:29:16 liuwenhao dont, called keyword stuffing Jun 10 03:30:18 groxx, gitignore all of .idea Jun 10 03:31:47 liuwenhao https://medium.com/@hfuecks/11-app-ranking-factors-8e4a8debdc67 Jun 10 03:32:52 Hello everyone. I have opened a project in android studio and i am following a tutorial on Udemy, the thing is it's in Eclipse and im trying to relate that over to Android studio. When i open the structure panel for the same program he's talking about it shows nothing yet his outline panel does. Do you know what problem im dealing with? Jun 10 03:35:54 anyone here understand charles proxy? questions regarding it and okhttp and android-async-http. basically trying to move from android-async-http. But my network calls are failing. trying to see why they worked before. I jump on charles and can see exactly what I'm sending up with okhttp, but then I switch to my branch with android async http and the network call I'm trying to debug (login) just doesn't get tracked... Jun 10 03:38:14 Blue_Sapphire: You might have to define "it" and "nothing" in "it shows nothing". (Or you could define "structure panel".) Jun 10 03:44:53 The maker of the video is using Eclipse, I've downloaded the same program that was provided in the description but I've imported it into Android Studio. After importing the program as a non-android studio file I can access the folders inside such as main, res, and layout. As I was watching the tutorial the guy opened his outline panel in Eclipse and i found out online that the structure panel in Android Studio is similar to the Ou Jun 10 03:44:55 tline panel in Android Studio. The problem is his outline folder has a file in it while my structure folder does not. Does that help TacticalJoke ? Jun 10 03:45:57 my bad, the structure panel in Android Studio is similar to the outline panel in Eclipse Jun 10 03:46:27 Do I have cause to worry? Jun 10 03:46:57 whats a better pic format for android, png or jpg? Jun 10 03:47:23 depends on the task Jun 10 03:47:30 Thanks g00s, reading the article now. Jun 10 03:48:14 Blue_Sapphire: You might have to post a screenshot. I have no idea what you're referring to; sorry. Jun 10 03:48:22 p_l what if the task is showing an image Jun 10 03:49:18 TacticalJoke, ok. I should post the screenshot of the tutorial screen along with my screen right? Jun 10 03:50:06 NateRiver: then the question is what kind of image it is - if you need lossless, PNG is a must, otherwise JPEG will have better quality/size ratio Jun 10 03:50:07 I guess so. Jun 10 03:50:13 ok Jun 10 03:51:45 p_l its iust gonna take up half the screen Jun 10 03:52:23 the size is irrelevant, the *use* of the image is important Jun 10 03:52:37 anyway, other than the size/quality stuff, it doesn't matter to android Jun 10 03:52:40 not today Jun 10 03:52:49 (used to mean something in 1.5) Jun 10 03:55:59 <_genuser_> png !! Jun 10 03:56:27 <_genuser_> alright, I gotta force myself to finish my web portal so I can get back to coding android stuff against it, calling the restful api. Jun 10 03:57:31 looking for a working example of using flatmap from RxJava to map some emitted items onto many threads in parallel Jun 10 03:59:44 This is the outline panel in Eclipse, this is what was opened in the tutorial: http://imgur.com/ft1LOjf,0SVVo2G#0 and this is the panel I opened in Android Studio, the structure panel: http://imgur.com/ft1LOjfJun 10 08:28:45 thepoosh has the pace of things calmed down now, that the google deadline has passed ? Jun 10 08:29:21 barq: Why are you using AsyncTask? Jun 10 08:29:30 I suspect the answer is "Because I don't know how else to do concurrency". Jun 10 08:29:36 If that is the answer, it's better to just learn stuff. Jun 10 08:29:57 AsyncTask might solve your problems (perhaps via AsyncTask.publishProgress), but it's just weird. Jun 10 08:30:49 TacticalJoke: I use the AsyncTask in order for the View to appear sooner than when running everything on the mainThread. Instead a progressDialog is shown once the View appears. Jun 10 08:31:34 What View to appear sooner? Jun 10 08:31:37 you are barq ing up the wrong tree :) Jun 10 08:31:38 barq, there's "runOnUiThread" for when you need to do some operations on main thread - that way you don't have to chain AsyncTasks Jun 10 08:32:28 g00s: sorry, went to qa Jun 10 08:32:30 back now Jun 10 08:32:44 we do have a lot of execs and I'm not one of them as can be seen Jun 10 08:32:45 :P Jun 10 08:33:29 TacticalJoke: My Activity has a bunch of Spinners that need to be initialized when I click the button on the previous Activity.I use the AsyncTask in order for the second Activity to appear sooner. Jun 10 08:34:06 sounds like a flawed design Jun 10 08:34:12 Mavrik: How does runOnUiThread differ from running the code from onPostExecute within the Activity's AsyncTask? Jun 10 08:34:36 What are you doing in AsyncTask.doInBackground? Jun 10 08:34:45 thepoosh: How would you do it instead? Initialize everything without backgroundTasks? Jun 10 08:34:49 barq, it doesn't, except that you don't have to chain another additional asynctask Jun 10 08:35:09 TacticalJoke: I initialize the Spinners of that Activity. Jun 10 08:35:19 Initialize them from what? Jun 10 08:35:26 thepoosh: how are you going to stream 50 live videos? Jun 10 08:35:49 you can only play one at a time Jun 10 08:36:00 you will need a webserver, I can't imagine of what bandwidth Jun 10 08:36:06 we have that Jun 10 08:36:09 it's huge Jun 10 08:36:20 it is cloud? Jun 10 08:36:26 we have a dedicated cluster of servers and cdns on AWS Jun 10 08:36:26 Initialize them by fetching data from the database and from an Object. Jun 10 08:36:42 amazon isn't a cloud afaik? Jun 10 08:36:53 it is american hosting company? Jun 10 08:37:00 what? Jun 10 08:37:11 aws Jun 10 08:37:24 Amazon-Web-Services Jun 10 08:37:32 that's american, isn't it? Jun 10 08:37:32 TacticalJoke: ^ Jun 10 08:37:37 world wide Jun 10 08:37:42 no way? Jun 10 08:37:46 but amazon are based in the US Jun 10 08:37:55 but our servers are all over the world Jun 10 08:38:00 yes, they don't have world-wide cloud Jun 10 08:38:05 barq: Can't you just read all the data in AsyncTask.doInBackground and return *one* result? Jun 10 08:38:37 thepoosh: so you run your own unix server? Jun 10 08:38:55 squ: they have servers all over the world Jun 10 08:38:55 TacticalJoke: Yes, I could remove one layer of AsyncTasking to simplify things for a start. Jun 10 08:39:05 and we (not I) run our own server code Jun 10 08:39:26 how streaming happens? from server to android? Jun 10 08:39:34 barq: do you need to do things in parallel? Jun 10 08:39:45 squ: yes, we have our own encoders and decoders Jun 10 08:39:49 and we stream the data Jun 10 08:39:59 how? Jun 10 08:40:28 thepoosh: No, the only reason this is done is to have the View appear sooner. Otherwise when clicking the button in the previous Activity the user would have to wait until everything is initialized before the Activity appears. Jun 10 08:41:02 so you can just post messages to a Handler in the background and then post the results Jun 10 08:41:10 RX style Jun 10 08:41:21 squ: that is our value proposition Jun 10 08:41:44 how does meerkat work? Jun 10 08:42:14 this type of service is your innovation? Jun 10 08:42:29 what values is in it? how does it work? Jun 10 08:43:28 is it already working (streaming 50 live videos to 1 device) to many users Jun 10 08:43:30 i think squ is looking to invest! Jun 10 08:43:52 I can't imagine how this will work Jun 10 08:44:00 it is youtube multiplied to many users Jun 10 08:44:11 it already works ... Jun 10 08:44:20 squ: it's already working, the app has been live for the past 2.5 years Jun 10 08:44:29 orly :) Jun 10 08:44:35 ? Jun 10 08:44:55 but they have to find a way to convince investors the business is better than sustainable Jun 10 08:45:22 specs state they have $30 M of fund Jun 10 08:45:46 that will go quick Jun 10 08:45:50 The underlying problem is that I initialize several Spinners and also set some default entries. But because the onItemSelectedListeners are called several times, once during initialization and once when the data is filled, the selections set previously are lost. Jun 10 08:46:10 to amazon hosting eats most of it Jun 10 08:46:33 thepoosh: is it database somehow, a custom api ? Jun 10 08:46:39 ? Jun 10 08:46:47 barq: You can just not set the position until they're loaded. Jun 10 08:47:43 TacticalJoke: That's what I've been doing using postDelayed, but I wanted to get rid of that hack. Jun 10 08:48:45 NO!!!! Jun 10 08:48:52 postDelayed is a bad idea Jun 10 08:49:00 you're breaking the state machine Jun 10 08:49:31 Yes, I know it's bad. But haven't found a working alternative so far. Jun 10 08:54:29 Hello, if my main app package is `de.bps_tec.userfoo.myblackjack2` should my unit test files define their package as the same or should it be `de.bps_tec.userfoo.test`? Jun 10 08:54:56 Same. Jun 10 08:55:17 Hi all. I'm looking for something to change the blue color (theme) for a Listview when scrolling to the top / bottom. I knew there was a lib for it but I can't find it anymore Jun 10 08:56:00 I think the XML attributes are overScrollHeader and overScrollFooter Jun 10 08:56:07 I initialize the listeners and then setPosition of the spinner. However, the onItemSelectedListeners are called after the setPosition. Why is this the case? Jun 10 08:56:31 TacticalJoke: are you sure? I'm getting a lot of mixed info on this. For example, in a Google video they named the package "test": https://www.youtube.com/watch?feature=player_detailpage&v=2I6fuD20qlY#t=175 Jun 10 08:59:05 SpaghettiCat, it can be anything really Jun 10 08:59:13 SpaghettiCat, since the tests are uploaded as another APK Jun 10 08:59:25 which then has that package name Jun 10 09:00:18 Mavrik: these unit tests run on the local JVM and gradle runs them Jun 10 09:00:32 ah, the JUnit tests Jun 10 09:00:39 right Jun 10 09:01:20 SpaghettiCat, in that case, your tests are just code Jun 10 09:01:56 Mavrik: so which package should they be under? The main "myblacjack2" package? Or a new "test" package? Jun 10 09:01:59 SpaghettiCat, and they act the same - if you have them in different package, you won't have access to package private classes and methods Jun 10 09:02:09 it doesn't matter. Jun 10 09:02:10 Yes that's right, I'm forced to import them Jun 10 09:02:41 If it doesn't matter then I'll keep the tests under the "myblackjack2" so I don't have to import everything.... Jun 10 09:02:44 To ease testing of package private stuff, it's easier to put tests in the same package as the classes you're testing in are Jun 10 09:02:51 *shrug* Jun 10 09:02:51 Right, thank you :) Jun 10 09:03:02 SpaghettiCat: you should put that in the same package so you can get access to package private Jun 10 09:03:07 and.. Mavrik was first.. Jun 10 09:03:20 sorry :( Jun 10 09:03:41 And where should the test source files go. If my main source files are under "MyBlackjack2/app/src/main/java/de/bps_tec/userfoo/myblackjack2", where should the test source files go? In "MyBlackjack2/app/src/test/java/de/bps_tec/userfoo/myblackjack2" ? Jun 10 09:03:57 yes Jun 10 09:04:41 Thank you. I spent so much time already trying to get unit testing set up properly Jun 10 09:05:33 Note that you get a lot of results with this: https://www.google.com/search?q=java+unit+test+package Jun 10 09:05:45 These are just JVM unit tests. Nothing Android is happening here. Jun 10 09:05:52 lol, that discussion from some time ago, about "my" naming... :p Jun 10 09:06:15 You get a lot of mixed info, I spent at least 6 hours on this... Jun 10 09:06:51 some days* Jun 10 09:07:36 Using a different package name is just a bad idea, IMO. Then you can't access package-private stuff. Jun 10 09:08:06 It also gives you nothing (if you're using proper test-class names {e.g., something like FooTest[s]}). Jun 10 09:09:59 can someone bring me Bill Gates Jun 10 09:11:32 Sure. What should we tell him? Jun 10 09:11:54 stupid windows auto update messed up my IDE, now it won't compile no more Jun 10 09:13:06 how can windows update mess up your IDE i highly doubt this Jun 10 09:13:11 don't think that's Gates' responsibility anymore Jun 10 09:13:24 oh nvm, restarting cleaning and then restarting again did the trick Jun 10 09:13:42 try factory resetting windows Jun 10 09:13:45 ie format c: Jun 10 09:13:45 :p Jun 10 09:13:55 when Auto update kicks in it doesn't matter how important what you're doing is Jun 10 09:14:11 is it win10? Jun 10 09:14:25 and this stupid 'Get Windows 10' icon which you can't say NO to is getting on my nerves as well Jun 10 09:14:29 Bill is just encouraging you to move to Android Studio. :D Jun 10 09:14:30 in any other case, pretty sure autoupdate can be turned off easily Jun 10 09:14:37 no it's Win7 Jun 10 09:14:53 none of my win7 have that icon or force me to autoupdate Jun 10 09:14:59 Win7 Home Jun 10 09:15:10 yeah... Jun 10 09:15:17 maybe you should try using an OS instead Jun 10 09:16:21 wakelock: I couldn't implement the user override feature, but I did make it auto scroll or user scrollable as a user choice from settings Jun 10 09:16:35 the auto update can be only removed be deinstalling the KB patch it came with Jun 10 09:16:42 but then its gon, i dont recall the number Jun 10 09:16:47 the media info bar textview that is ... Jun 10 09:16:53 right Jun 10 09:16:55 took me a moment Jun 10 09:17:04 that should be good enough for now Jun 10 09:18:47 either way Bill Gates needs a beating Jun 10 09:18:52 Hello friends. I had a project where I downloaded less than 200 items and show the result in a list with lazy downloading images. Normally my list is less than approximately 50 items. So 200 items is very rare. But for another project I want to implement an infinite list. I can implement it myself, but if someone made a good library for this purpose, I rather use a well designed and reviewed code than implementing it my self. Do Jun 10 09:18:53 es anyone knows a good "infinite list" example or custom Listview class for that purpose? Jun 10 09:21:15 Number5: I started with an example called LazyList, search for it on google Jun 10 09:25:37 if (mobilenumber >= 8) FragmentedUser.SaveMobile(mobilenumber); Jun 10 09:25:37 java.lang.string can not be applied to android.widget.editText - Is the way to easely convert this. I think ToString is not the right way. Jun 10 09:33:51 could the jdk download be any slower :( Jun 10 09:36:12 So if im storing audio on parse do i just do .put to get a soundclip from internet Jun 10 09:39:18 I found something like this: https://github.com/commonsguy/cwac-endless Jun 10 09:39:51 hi Jun 10 09:41:38 Testing is working in AS now! God I love unit tests :D Jun 10 09:42:34 So when your first puttting data on Parse.com do you just drop it in like your uploading to email? or do you have to use JSON code to get it in Jun 10 09:46:57 Datasmurfen: Do what now? Jun 10 09:57:41 I just realised the icon of AS looks very similar to that of the Freemason cabal. how paranoid should I be? :) Jun 10 09:58:30 lol Jun 10 10:07:20 Hey I am trying to do this tutorial on how to get images from a different source and display them in a custom adapter layout...but the images does not want to load. Here is the class with Images as URL strings -- > http://pastebin.com/K6qQRkQh Jun 10 10:07:32 At the moment it does bring up the ListView Jun 10 10:07:59 with lines that I can scrll through but it does not display the pictures inside Jun 10 10:09:36 TacticalJoke : http://stackoverflow.com/questions/30751402/save-user-mobilenumber-can-not-be-applied-to-edit-text - is the same as this topic Jun 10 10:13:45 I've got Activity B with up navigation that is first called in Activity A. Later it is called in Activity C. The problem is that when it is called from Activity C and you press the up navigation it goes to Activity A because that's the parent in the manifest. Any way to make it go back from B to C when pressing the up navigation when it's called from C? Jun 10 10:13:46 Surely you mean something such as `fragmentedUser.put("mobile", mobilnummer.getText().toString());`. Jun 10 10:15:49 Ah, got it. I can override onOptionsItemSelected and check whether it's android.R.id.home. Jun 10 10:16:22 Yes TacticalJoke Jun 10 10:17:18 Muchoz: You could probably just handle the Up press with `finish();` (and forget the parentActivityName thing). Jun 10 10:17:31 TacticalJoke, ya I'm using that now. Jun 10 10:17:36 cart_man: It seems to be a problem relating to ImageDownloader, whose code we can't see. Jun 10 10:18:16 TacticalJoke, currently I've left the ParentActivity in the manifest, it's a bit more clear to see the navigation in the manifest, does it matter? Jun 10 10:18:46 Meh, I'll just remove it, It's never called anyway. Jun 10 10:25:14 cart_man: preferrably use a layoutinflater to inflate an xml which contains an ImageView. And preferrably use Picasso library to populate listviews with images Jun 10 10:26:01 cart_man: your new ImageView() does not really say anything about how high/wide it should be. for now you should just hardcode it in the layout xml like android:width="48dp" or sth Jun 10 10:26:26 How do i start my app when usb-otg is connected? Jun 10 10:27:32 Anyone? Jun 10 10:28:17 ctrlshftn: adb shell am start -n com.package.name/com.package.name.ActivityName Jun 10 10:30:13 bhans No not that way. When a USB drive or something is connected , how do I start my app automatically? Jun 10 10:34:20 Ok so here is all of it Jun 10 10:34:25 TacticalJoke, -- > http://pastebin.com/3BLzXd5r Jun 10 10:34:39 Its quite allot though but I have layed out the classes with comments Jun 10 10:36:09 On a side note, comments such as "@param url The URL of the image to download." are worse than useless. Jun 10 10:36:30 lol Jun 10 10:36:39 TacticalJoke: you remind me of the immortal Jun 10 10:36:49 i++; //increments i by one JuJun 10 10:56:36 You need to check your privilege. Jun 10 10:56:45 haha and this is how I demand interWebzies -- > ... INETERNET ! I NEEDS THEM INTERNET Jun 10 10:58:15 and behold ... my demands where met Jun 10 10:58:29 Sound like a dude in South Africa Jun 10 11:04:13 is there a way I can make the ViewGroup class Crop a picture? Jun 10 11:04:43 You can use ImageView's scaleType thing. Jun 10 11:09:24 cart_man: ViewGroup is basically a view type that can hold child views in it Jun 10 11:09:35 like LinearLayout aetc. Jun 10 11:09:38 *etc. Jun 10 11:10:35 “A ViewGroup is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers. This class also defines the ViewGroup.LayoutParams class which serves as the base class for layouts parameters.” Jun 10 11:10:42 "http://developer.android.com/reference/android/view/ViewGroup.html Jun 10 11:23:21 Do you guys break the project into modules or keep it as one big "app" module? I have broken down the project into things like chat, accounts, core-res, core-widgets etc. What is the standard? Jun 10 11:24:06 Are you asking about modules or subpackages? Jun 10 11:24:33 Modules, in AS. not subpackags Jun 10 11:24:37 WantToCode: I usually only break it up if I know I can/will use it in another project Jun 10 11:25:31 Like in the beginning I had two packages, app and chat. because chat was taking long time to make, it contains the ChatActivity basically and the other stuff. Jun 10 11:26:19 What advantage would multiple modules bring you? Jun 10 11:26:22 But it needed fab, so did the app modules, so I made core-widgets and transferred all the fab, scrimFrameLayout etc Jun 10 11:28:45 Also, I moved all the colors, strings, dimens,styles to core-res which helped in keeping all the res consistent with all the modules. Jun 10 11:29:38 I am liking this but I don't know if this is against any standard or not? Jun 10 11:30:35 Hi. Does onSaveInstanceState save the views that are (programmatically) added to the root? If not do you guys have any suggestions on how to properly save them? Jun 10 11:30:51 WantToCode: Just be aware that whatever package-name you give your libraries/modules will have it's own R class. So lets say you have core-res with package "foo.bar" and your main project's package-name is "baz.qux". Then all the fields in "foo.bar.R" will be copied to "baz.qux.R" Jun 10 11:31:00 asimas: Some properties are persisted (though you need to set IDs). Jun 10 11:31:04 Making your method/field count rise quickly Jun 10 11:31:10 Not everything (e.g., visibility) is persisted. Jun 10 11:31:31 WantToCode: My experience with having multiple APKs is that it makes it a lot harder to communicate between the different APKs when you need to. I.e. you need to use IPC. Jun 10 11:31:59 In retrospect I would not do this again. Rather separate UI and Services into different APKs. Jun 10 11:32:25 WantToCode: What benefits do you hope to achieve by splitting your app up? Jun 10 11:32:32 TacticalJoke, is there some kind of a list of what's persisted? Jun 10 11:32:46 Nah. Jun 10 11:32:50 It's basically insider knowledge. Jun 10 11:32:52 barq, not splitting the apk, but the code. Jun 10 11:33:06 You can read the source of various widgets and find out. :D Jun 10 11:33:11 WantToCode: Split the code into several apks? Jun 10 11:33:11 Or try. Jun 10 11:33:33 Hmm.. that has me wondering if the design library has a bunch of unnecessary copies of field names from appcompat. Haven't used the design library yet. Jun 10 11:33:39 Split the code into various modules, and then app dependencies to others Jun 10 11:33:42 TacticalJoke, lol. Do you have any suggestions on how I should save a layout with a bunch of children? I also need their visibility.. Jun 10 11:34:06 Make sure they have an ID, and save their visibility values in onSaveInstanceState. Jun 10 11:34:12 meh.. I cant get my head around regexp. I need a regexp that returns anything before ( and the four last digits before ) . Help please :) Jun 10 11:34:35 surf2b1, the concern is only for the R file. then? Jun 10 11:34:37 WantToCode: Oh, so still one apk, just several what would be called "projects" in Eclipse? Jun 10 11:35:16 Quacked: Can you give an example of something that matches? Jun 10 11:35:22 That works fine. Jun 10 11:35:23 barq, I am 90% sure, yes. Havent used Eclipse in over and year Jun 10 11:35:29 TacticalJoke, Conspiracy (TV Movie 2009) - IMDb Jun 10 11:35:29 *an Jun 10 11:35:49 WantToCode: That works fine if the output is still one apk. Jun 10 11:35:52 WantToCode: I think so. Again, I would only break it up if I knew the code could be used in another project/app I would work on. Jun 10 11:36:04 Quacked: "Conspiracy " and "2009"? Jun 10 11:36:12 Yeah Jun 10 11:36:38 but this could also be a match, "Californication" The Apartment (TV Episode 2009) - IMDb Jun 10 11:36:53 oh sorry, nevermind Jun 10 11:37:09 surf2b1, it is also helping me in dev. For example, while developing chat modules, I made a chat-demo modules which would be just one activity which would create an intent and start the ChatActivity in the chat modules. Just to mock the onClick from the main app. Jun 10 11:37:11 That's not too bad. This is a good site for it: http://www.regexr.com/ Jun 10 11:37:16 TacticalJoke, im there :D Jun 10 11:37:43 Otherwise it would have been 8 UI steps to open the Chat Jun 10 11:38:02 TacticalJoke, thats where Im testing things, but I cant find it out Jun 10 11:38:25 surf2b1, I typed modules in place of module in the above comment at several places :P Jun 10 11:38:46 WantToCode: Yes, you can do that. I don't understand your use case exactly, but I have done something similar when mocking a server. Jun 10 11:38:56 Having the mock server as a separate module. Jun 10 11:41:31 I was creating from scratch, so was trying different ways to start the chat, like should I use sessionId or chatId, or userId. So for all the scenarios, I created separated activities, made them all visible to launcher. Everyone was calling one ChatModule.java (with diff arguments), which would carry operation accordingly Jun 10 11:42:06 i have been using otto from square in my app and was wondering if an event comes through when a configuration change happens, will the event be missed? How can I resolve this issue? Jun 10 11:42:09 This made the chatmodule kind of a presenter. This helped me in deciding what would be the best approach Jun 10 11:42:51 After I had decided, I just copied the code from one of the activity to the main app. Jun 10 11:43:20 WantToCode: If you only use on approach at a time to test and in your final versino you only want to have one approach I would not split this into modules. You can just use a different Activity or comment the other bits out. Jun 10 11:45:50 Quacked: Are you completely stuck? Jun 10 11:45:56 yeah, hehe Jun 10 11:46:10 barq, hmm yeah, I am doing essentially the same thing. But I dont know..I feel this has made the project cleaner. there are no deep packages in any module. I don;t have to look deep in a package for a class. Just go directly to the module. Its like taking source packages to the app level.. Jun 10 11:46:19 Yo Jun 10 11:46:24 Something like this probably works: ([^\(]+)\([^\d]+(\d{4})\) Jun 10 11:46Jun 10 12:47:19 That actually does nothing at all. Jun 10 12:48:03 barq: never dealt with that before. Are you using the first answer that uses reflection to set the position? If so, I would just put the reflection code into a method Jun 10 12:48:43 surf2b1: Yes, emmby's answer. Jun 10 12:50:59 barq: so maybe this would work: http://pastebin.com/xFAumGPb Jun 10 12:53:23 Hello, is it bad practice to create layouts programatically? I have a with 5 objects which show the 5 cards of the dealer. I want to re-use this layout to show 5 cards of the player. Should I then create a function that creates this layout? Jun 10 12:55:06 SpaghettiCat: You can sue include in your xml. Jun 10 12:55:13 use* Jun 10 12:55:16 Hey, I'm currently implementing RSA key generation in my android application. I've been warned by multiple people that there are issues with the random number generator. I was wondering how severe these issues are and if I can just use the KeyPairGenerator Jun 10 12:55:31 Bit more text explaining the issue at hand: https://github.com/Pushjet/Pushjet-Android/issues/3 Jun 10 12:55:44 SpaghettiCat: Or maybe create a fragment and reuse that. Jun 10 12:55:54 barq: But the player cards are not exactly the same as the dealer's, they use a different image so I can't use Jun 10 12:56:20 Hmm a fragment to show a row of cards? I'll look into that, thanks Jun 10 12:56:49 Today when i run the app on my Samsung S5 connected to Android Studio it takes forever. The message "Gradle Executing Tasks | Asemble debug" is stuck for allmost 10-15 min before it loads on my phone. Does anyone have any clue on how to solve this? Jun 10 12:57:03 SpaghettiCat: The holders for the cards are still the same, you can then set the contents programmatically. Jun 10 12:57:50 Ah I see, so set the `android:id="@+id/imgDealerCard1"` part programatically Jun 10 12:59:26 SpaghettiCat: No, reuse the id and set the contents programmatically. Jun 10 13:01:10 I think this is something i'll figure out when I try it. I thought that each card should have a unique ID so that I can refer to it from code. If I re-use the same ID I can't refer to one specific card Jun 10 13:01:45 surf2b1: I tried that approach calling just the reflection bit, doesn't have any effect, unfortunately. Jun 10 13:02:06 SpaghettiCat: The id of the card and the id of the placeholder are two different things. Jun 10 13:11:50 could someone please quickly help me with a way to resize some .jpg`s Jun 10 13:11:51 ? Jun 10 13:14:52 cart_man: Don't ask to ask. Jun 10 13:16:07 any ideas on how to solve this problem? - http://stackoverflow.com/questions/30627223/views-not-wrapping-content-inside-card-view Jun 10 13:16:15 barq: So I tried out the answer you are using. Calling the method I first pasted plus spinner.setSelection(-1) worked Jun 10 13:17:20 could anyone suggest a free mapping software that supports 3D objects in android? ive looked into open science maps and HelloWorld3D but i cant find a library for either Jun 10 13:18:07 surf2b1: Thank you, that works! Jun 10 13:19:19 http://pastebin.com/3BLzXd5r --> I dont know how I can resize the pictures that eventually gets inserted into the list View toe Fit the PARENT Jun 10 13:19:25 OR just Crop Jun 10 13:19:54 is it bad to open a socket inside a broadcastreceiver? Jun 10 13:22:19 barq ^^ Jun 10 13:32:28 Hey everyone, I have another Android bluetooth problem, would be great if someone could take a look at my sources Jun 10 13:32:49 Bluetooth Fragment: http://pastebin.com/Jy41pzKr Jun 10 13:32:49 MainActivity: http://pastebin.com/GqkJjDjc Jun 10 13:33:02 well Jun 10 13:33:14 whats the problem Jun 10 13:33:22 The problem is that the bluetooth fragment will check for data constantly Jun 10 13:33:41 ah you are here again, you already predicted the problem yesterday! I just didnt test it thoroughly enough! Jun 10 13:34:04 the problem is that, once Android receives data, and I change screen orientation, the app crashes :D Jun 10 13:34:09 like you said it would Jun 10 13:34:24 is there any EASY way to fix this? Jun 10 13:34:39 I will supply a logcat shortly! Jun 10 13:35:06 cart_man: You could steal my code for resizing images if you want Jun 10 13:35:12 well it should 'check' for data all the time, shouldnt it? Jun 10 13:36:53 its in thread anyway Jun 10 13:36:57 yes it should check all the time Jun 10 13:37:04 this is the error once I rotate the device Jun 10 13:37:07 Activity com.bavilo.braumeister.MainActivity has leaked IntentReceiver com.bavilo.braumeister.BluetoothTab$4@76e0511 that was originally registered here. Are you missing a call to unregisterReceiver()? Jun 10 13:37:46 you should register receivers in onResume() and unregister them in onPause() Jun 10 13:38:00 as they will happen everytime you rotate device Jun 10 13:38:12 if someone built a twrp-flashable rom straight from a factory image, can you get OTAs from google while on that rom? Jun 10 13:38:44 is it even correct to do this: Jun 10 13:38:44 IntentFilter filter_connected = new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED); Jun 10 13:38:45 IntentFilter filter_disconnected = new IntentFilter(BluetoothDevice.ACTION_ACL_DISCONNECTED); Jun 10 13:38:45 getActivity().registerReceiver(mReceiver, filter_connected); Jun 10 13:38:45 getActivity().registerReceiver(mReceiver, filter_disconnected); Jun 10 13:38:50 this is in onCreateView Jun 10 13:39:08 its fine but it should be in onResume Jun 10 13:39:26 but this is not the only problem if you rotate Jun 10 13:39:45 the entire fragment will be recreated meaning youll lose all the variables Jun 10 13:39:51 http://imgur.com/8gyKj71 Jun 10 13:39:53 :S Jun 10 13:40:08 ok one moment Jun 10 13:40:25 look for fragment's setRetainInstance Jun 10 13:40:36 thepoosh, classy :D Jun 10 13:40:47 that was very helpful Jun 10 13:41:24 thats like those 1 star ratings: "if you add , i will give 5 stars" Jun 10 13:41:26 well, afaik in germany '1' is best grade Jun 10 13:42:05 in germany 1 is indeed the best grade Jun 10 13:42:30 yeah. but in germany you dont get stars as grad ;) Jun 10 13:42:49 ok I added register in onResume, and unregistering in onPause Jun 10 13:42:55 on screen rotate I got another crash Jun 10 13:42:58 Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference Jun 10 13:42:58 at com.bavilo.braumeister.BluetoothTab$1.handleMessage(BluetoothTab.java:69) Jun 10 13:43:24 right here: Toast.makeText(getActivity().getApplicationContext(),sensor0, Toast.LENGTH_SHORT).show(); Jun 10 13:43:59 and where is that code Jun 10 13:44:04 in onreateview? Jun 10 13:44:17 yes Jun 10 13:44:34 inside the bluetoothInputStream Handler Jun 10 13:44:40 which is inside onCreateView Jun 10 13:45:13 Maybe use pastebin.com, Bavilo :) Jun 10 13:45:21 oh my Jun 10 13:45:32 sorry, yes I will, I have posted the sources on pastebin Jun 10 13:45:42 do you receive data from the bluetooth all the time (the toast shows all the time)? Jun 10 13:46:04 the toast is just for debugging purposes Jun 10 13:46:08 but I will receive ALL the time Jun 10 13:46:43 ok, this might be it - during rotation you receive data, but in meantime getActivity() would be null Jun 10 13:47:21 hmm ok yes you are right Jun 10 13:47:29 I replaced the toast with a Log.v Jun 10 13:47:37 it works fine even after rotation Jun 10 13:47:54 you would need to refactor most code i oncreateview Jun 10 13:47:56 so it crashed because for a brief moment getActivity() was null? Jun 10 13:48:15 refactor most code? what do you mean? Jun 10 13:49:28 well rotate the screen few times and see the logs Jun 10 13:50:08 ok one moment Jun 10 13:51:00 works fine, I get data every second Jun 10 13:52:11 btw, is there a limit on how fast I can send the data? Jun 10 13:52:17 1000ms from arduino to android works fine Jun 10 13:52:20 10ms does not Jun 10 13:53:01 100ms also works fine Jun 10 13:54:41 well you would need to check into bluetooth specification Jun 10 13:55:18 ok Jun 10 13:55:20 anyway my point fragment is recreated everytime. but the thread inside the fragment is kind of 'attached' to it Jun 10 13:56:01 right, is it a big problem to do it like this? Jun 10 13:56:28 that would lead to some leaks because fragment isnt garbage collected. second thing it calls the handler, which is attached to old fragment as well, therefore getActivity() would be always null Jun 10 13:56:40 the fragment is dead man, and you trying to keep it alive Jun 10 13:56:58 I see...:( Jun 10 13:57:00 one way would be to add setRetainInstance in constructor or onAttach Jun 10 13:57:24 Ill read up on that in a sec Jun 10 13:57:55 and move all the bluetooth initialization off the onCreateView, thats not the right place Jun 10 13:58:03 ok so the fragment will never be killed then? Jun 10 13:58:33 hmm where else would I put it? Jun 10 13:59:40 i.e. fragment's onCreate Jun 10 14:00:11 ok so I can leave onCreateView to just inflate the view, and add onCreate with all the bluetooth stuff? Jun 10 14:00:28 if retain instance is true it will call onCreate just once Jun 10 14:00:29 yes Jun 10 14:01:41 ok one moment Jun 10 14:05:30 hmm ok, I'm just having a problem with findViewById Jun 10 14:05:45 btn_connect = (Button) findViewById(R.id.btn_connect); Jun 10 14:05:45 cannot resolve method Jun 10 14:06:03 no, the view thing shoud stay in onCreateView Jun 10 14:06:19 ah ok, yea because I was getting the view from that Jun 10 14:07:30 even the setOnClickListeners ? Jun 10 14:07:40 ah nvm, yes ofcourse Jun 10 14:08:31 ok so that works, looking up setRainInstance Jun 10 14:08:34 retain* Jun 10 14:09:22 so basically setRetainInstance(true); in onCreate is all that is needed? Jun 10 14:09:34 to retain the fragmet across config changes? Jun 10 14:09:53 eeyup Jun 10 14:10:23 nice Jun 10 14:10:54 ok so, everything works for now! Jun 10 14:11:18 thanks again for your help! Jun 10 14:11:40 I wish I would have gotten into programming way earlier Jun 10 14:12:00 it's pretty difficult to get the hang of this :( Jun 10 14:12:03 at least you still have social life Jun 10 14:12:45 you most likely do to! but you can also programm :) Jun 10 14:13:53 does anyboudy use ListFragment without setListAdapter()?, when I do so app shows progress indicator -> exactly the same http://stackoverflow.com/questions/21385827/rotating-android-screen-causes-listfragment-to-show-progress-indicator Jun 10 14:14:18 yes Jun 10 14:14:36 it shows that untill you set an adapter wich tells the fragment that the list is loaded Jun 10 14:14:36 Hi guys, which library is popular and up to date for downloading data with http protocol? I've seen HttpClient and HttpURLConnection. But maybe you guys know a good library like ActionBarSherlock for Actionbars. Jun 10 14:15:16 Guys, if I want to restart my activity, is it safe to call onCreate from within the activity? Jun 10 14:15:26 drose379, no Jun 10 14:15:30 no Jun 10 14:15:39 Ok, best option? Jun 10 14:15:48 what do you mean by restart Jun 10 14:15:50 startActivity(); finish() Jun 10 14:15:57 or make a better design Jun 10 14:15:58 Finish before start? Jun 10 14:16:02 finish;startActivity() Jun 10 14:16:26 I just need to make an intent for it Jun 10 14:16:31 you should design your app in a way that this is not needed Jun 10 14:16:39 you can send intent without restarting Jun 10 14:16:47 OK Jun 10 14:16:59 thats what onNewIntent is for Jun 10 14:17:12 Yeah, this shouldnt be necessary though Jun 10 14:17:18 Gotta design it better Jun 10 14:17:37 Thanks guys Jun 10 14:17:51 danijoo, thats what i thougth, i need to point to my own listView in xml so i did "mListView = (ListView) getActivity().findViewById(R.id.results);" and then mListView.setAdapter(myArrayAdapter); - it works (shows progress, or two overlaping lists) when I extend ListFragment, when I extend Fragment it says "android.view.InflateException: Binary XML file line #14: Error inflating class fragment" Jun 10 14:18:22 bolovanos, change the the id of your listview to android.R.id.list Jun 10 14:18:56 this will make the fragment recognize it as its listview for setAdapter(), getList() etc Jun 10 14:24:27 danijoo, you mean id in layout.xml - or pointing like this "mListView = (ListView) getActivity().findViewById(R.id.list);"? Jun 10 14:24:38 any ideas how should I auto-center the item that's closest to center of my horizontal scrollview? Jun 10 14:24:47 I have tried first option http://pastebin.com/BZ66bB4P Jun 10 14:24:54 bolovanos, http://developer.android.com/reference/android/app/ListFragment.html Jun 10 14:24:57 without result Jun 10 14:27:25 Number5: OkHttp Jun 10 14:28:14 JakeWharton, I just found out yes. Thank you my friend, I'm a fan of you :) Jun 10 14:31:20 danijoo, even "android:id="@+id/android:list"" does not work. Can you please look at my layout if it applies to what is written in reference (btw - already been there, and still am...) Jun 10 14:32:23 bolovanos, if its a listfragment, why do you call getActivity? Jun 10 14:32:30 just call getListView() Jun 10 14:32:42 or even more simple: setAdapter(myAdapter) Jun 10 14:33:17 yes I was calling setAdapter(myAdapter) earlier - it worked Jun 10 14:33:28 whats your prob then? Jun 10 14:33:38 than I needed to change something on the ListView - but I did not have id of it Jun 10 14:33:50 the id is android.R.id.list Jun 10 14:33:57 but you dont need that Jun 10 14:34:02 getListView() will do the work Jun 10 14:34:04 back - I did not have definition of it from xml - there were only Jun 10 14:34:06 What emulator do you guys recommend? Jun 10 14:34:50 so? Jun 10 14:35:28 I would like to set for example color of divider from within xml so i did what you can see in http://pastebin.com/BZ66bB4P Jun 10 14:35:30 genymotion ~ Jun 10 14:35:55 i told you that you must set the id to android.R.id.list Jun 10 14:35:59 you still didnt do it Jun 10 14:36:11 sry - old version Jun 10 14:36:22 Ashiren, the free version decent? Jun 10 14:37:03 ^ I have "android:id="@+id/android:list"" in layout Jun 10 14:37:15 is that what you mean? Jun 10 14:37:26 bolovanos, did you look at the link i posted? Jun 10 14:37:54 chrisaardal: yes Jun 10 14:37:54 danijoo, of course, but they do not use Jun 10 14:38:11 oh wait Jun 10 14:38:14 now i see it Jun 10 14:38:18 what are you doing Jun 10 14:38:25 you cant use fragment like that Jun 10 14:39:08 Hi, I'm having problems building my project in Android Studio. Seemed to work fine before today. Just gets stuck on "Gradle: Build" with no obvious output. There was a message about gradle versions, and I clicked the link to fix it, but it didn't help. Any ideas? Jun 10 14:40:17 danijoo, ough, so how can I use it? - btw it is from here http://developer.android.com/training/basics/fragments/creating.html#AddInLayout Jun 10 14:40:33 fragments have their own layout Jun 10 14:40:38 you cant nest it like a linearlayout Jun 10 14:41:47 emorris: what did you change today that it stopped working? Jun 10 14:42:39 nothing, I literally started Android Studio, connected my dev tablet, clicked run, and it got stuck on Gradle: assembleDebug. Now it gets stuck on Gradle: Build Jun 10 14:42:52 gradlew clean Jun 10 14:43:16 danijoo, than what would you suggest? I would like to do some animation with ListView... Jun 10 14:43:23 SpaghettiCat, ^^ ; I've also just running gradle commands on the command line; got "Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain" Jun 10 14:43:28 bolovanos, use fragments correctly Jun 10 14:43:44 emorris, you don't have the gradle/ directory Jun 10 14:45:13 pfn, gah, I renamed it for testing. I'll feel very stupid if it works now I've put it back... Jun 10 14:45:17 Hi everybody! I start ScheduledExecutorService for running a repeating task (once every 30 minutes) when application starts but it hangs my application almost entirely. Documentation says " If any execution of the task encounters an exception, subsequent executions are suppressed" - Can it be the cause of UI hanging? Jun 10 14:45:49 AlexBerdnikov, there's only 1 thread Jun 10 14:45:52 AlexBerdnikov, you're blocking the thread Jun 10 14:51:52 pfn, but... doesn't it start a separate thread? Jun 10 14:52:06 it should, but dunno what you're doing Jun 10 14:54:35 Does someone know how to set the color a not-selected icon in the TabLayout like I did here (this is a mockup): https://i.imgur.com/KkcgZdW.png Jun 10 14:54:56 Currently that heart is white and I can't find anything on changing the color of it. Jun 10 14:55:32 colorfilter or replace the image Jun 10 14:56:53 pfn, In my home activity I start it with scheduleAtFixedRate(Runnable(... ... ...), 0, 30, TimeUnit.MINUTES). Inside Runnable I have runOnUiTherad() call with another Runnable but in it as well, but there are no really much operations and they should run fast... Jun 10 14:57:10 lol Jun 10 14:57:16 danijoo, perhaps a custom view? Jun 10 14:57:31 Muchoz, perhaps a colorfilter or replace the imageview Jun 10 14:57:46 maybe selector Jun 10 14:57:54 danijoo, but how do I select those that's my question. Jun 10 14:58:11 How do I target the tabs? Jun 10 14:58:18 you can try if selectors work in tabs Jun 10 14:59:08 AlexBerdnikov, why do you use a sheduler if you then post back to mainthread. makes no sense at all.. Jun 10 14:59:19 and obviously they are not fast Jun 10 15:00:44 danijoo, Depending on some checking I do in scheduler I might need to start another activity Jun 10 15:14:37 Get a value (number) from sharedPref, and display inside a EditText view. What am i doing wrong: http://pastebin.com/HyFzTjbh ? :) Jun 10 15:14:57 danijoo, as I thought that still requires 2 different drawables if you don't set the color filter. Bummer. Jun 10 15:16:22 I'm trying to create transitions in my application and it looks bad since the background color of my "android:windowBackground" (white) is flashing for a few ms when I change activity. Managed to remove it with the Translucent Theme (parent="android:Theme.Translucent.NoTitleBar"), but Translucent does not seem to be an option when using the Material theme. Is there any way to combine those themes? Jun 10 15:17:17 Muchoz, yep Jun 10 15:17:57 I'll do it with color filters then since I don't want to change Jun 10 15:18:13 my SVGs every time (accidentally pressed enter) Jun 10 15:18:38 Muchoz, if you target 21 you can set tint Jun 10 15:19:17 danijoo, it doesn't work with drawable I tested. Jun 10 15:19:37 If I use a StateList with a drawable and a tint, the tint is ignored. Jun 10 15:21:41 I never used tint. cant tell you much more than that it is there ^^ Jun 10 15:27:03 Ugh, after moving a project from Eclipse to Android Studio, I absolutely cannot get the LicensingService from LVL to bind… I’ve wasted hours on Google and trying to debug… thinking about moving my assets to S3… Jun 10 15:31:45 Is you come across a techincal article do you guys try to implement or read the code samples or generally try to get the sense of the article and save it? Jun 10 15:31:52 If you... Jun 10 15:32:06 zambo: did you come here just to complain or to get support? Jun 10 15:32:53 SpaghettiCat: I would love help, but it’s also a huge complaint. I really don’t think this library and it’s documentation are where they should be for a mature platform like Android… Jun 10 15:36:57 If you have any suggestions as to how to figure out why it doesn’t bind, I’m all ears. I’m currently trying to find a sample project or something on github that uses LVL succesfully with the latest build tools and API 22. Jun 10 15:39:09 AFAIK LVL is not actually a part of android. also, isn't it abandonware now? not that it ever worked too well, from what I hear Jun 10 15:39:39 You need it if you want to have an expansion file or use the billing library… so it’s a pretty key part of Android if you want your app on Google Play. Jun 10 15:40:37 google play != android Jun 10 15:40:42 google play == google Jun 10 15:40:53 very true Jun 10 15:44:29 but not very helpful Jun 10 15:45:21 dunno, never used it, no plans to ever use it, and others say it's crap Jun 10 15:45:29 that's all I know Jun 10 15:46:52 I've setup some custom logging in my Application class. I also have multiple build types (beta, debug, release). What's the best way to overwrite that cusom logging for each build type without having to subclass a version of it for every build type? Jun 10 15:47:45 currently i've got a subclass of my Application class for each build type and it's getting a bit annoying to maintain that Jun 10 15:48:32 alexfu: I usually set up product flavors, and then you can make a resource file with your configurables in it for each flavor. Jun 10 15:48:53 you could set up a resource with the log level you want, and set it to what you would like for each product flavor. Jun 10 15:49:50 wrap all your calls to Log.d/Log.e in a custom logging class that checks the log level before printing anything Jun 10 15:51:07 timber is nice: https://github.com/JakeWharton/timber/blob/master/timber-sample/src/main/java/com/example/timber/ExampleApp.java Jun 10 15:51:28 i already use timber Jun 10 15:54:42 zambo: wouldnt this resource file have to exist in the main source as well? Jun 10 15:56:18 unless you're selling your app for like $15+, who caresa bout LVL Jun 10 15:56:28 not worth the effort Jun 10 15:56:38 https://plus.google.com/+AndroidDevelopers/posts/4a51oVb59H6 Jun 10 15:58:47 pfn: I want to use the expansion library Jun 10 16:14:22 gusy, question ... can I modify the layout of the items in a listview before the cursor uses it? and by that I mean that I have a "universal" layout that I use in 2 different listviews. It has everything I need in both listviews but in one of them I dont need some of the textviews. How can I modify and setVisibility(GONE) for some of the textviews before the SimpleCursorAdapter uses them to populate the listview? any suggestions? Jun 10 16:18:38 can product flavors have their own dependencies? Jun 10 16:19:12 lookg like they can Jun 10 16:20:45 anyone know the intention/difference between selectableItemBackground vs activatedBackgroundIndicator Jun 10 16:23:10 luci1093: you can modify your views to be displayed in the ListView by overriding the bindView() in SimpleCursorAdapter. Jun 10 16:24:37 but razzledazzle, how exactly do I do that? I've looked around and find something about that but they usually override it in a class... I use the SimpleCursorAdapter in a function ... how should I do it? :S Jun 10 16:26:02 luci1093: you have to write a class by extending the SimpleCursorAdapter, there you can override that method. Jun 10 16:27:10 so I basicly need to make my function into a class and overide the bindView and then populate the listview in that class? Jun 10 16:27:31 *basically Jun 10 16:27:36 luci1093: read this https://thinkandroid.wordpress.com/2010/01/11/custom-cursoradapters/ Jun 10 16:27:57 yes, sort of Jun 10 16:29:06 well okay Jun 10 16:29:10 thanks a lot :) Jun 10 16:30:26 is there a destructor or something for threads? it won't let me override stop() Jun 10 16:37:40 i hate listviews. how does android do a list item with a switch tied to it Jun 10 16:38:01 using selected, activated or checked? Jun 10 16:42:56 Hi Jun 10 16:43:11 I'm running android x86 on virtualbox Jun 10 16:44:49 mhm Jun 10 16:48:11 is it normal for the preview to look so much different than the app in the emulator? Jun 10 16:51:24 yes Jun 10 16:51:32 preview is just a rough look Jun 10 16:51:35 nothing more Jun 10 16:51:52 did someone here use google app engine for a backend? Is it worth the effort? Jun 10 16:52:11 of course it's worth the effort Jun 10 16:52:16 seems like it autogenerates android client code which is nice Jun 10 16:52:18 it's free/cheap hosting Jun 10 16:52:26 I don't use the untegration Jun 10 16:52:37 yeah i mean if the integration is worth using Jun 10 16:52:50 since now i always build the client code myself Jun 10 16:54:11 wow, pretty interesting http://andrewchen.co/new-data-shows-why-losing-80-of-your-mobile-users-is-normal-and-that-the-best-apps-do-much-better/ Jun 10 16:54:43 i just looked at the example and it seems like i can let the system do all the work for me. I just wonder if its any good Jun 10 16:56:29 pretty impressive Jun 10 16:56:34 even top aps only retain 20% Jun 10 16:57:02 only 20%? Jun 10 16:57:18 people are idiots. you can't fight that Jun 10 16:57:33 huh Jun 10 16:58:21 i dont think so. Its just that a lot install to see how it is and then leave Jun 10 16:58:22 well after a while, do you still have angry birds installed Jun 10 16:58:37 its like a test drive with a new car Jun 10 16:59:11 when you're forced to implement a listview inside a scrollview......... Jun 10 17:00:14 is there a way to share a file between test and testDebug ? but not have it in main? Jun 10 17:01:08 Ashiren, angry birds? Jun 10 17:01:30 ah, i remember pigs and stuff Jun 10 17:01:40 no i do not Jun 10 17:01:42 it sucks Jun 10 17:13:45 huh, new play service has battery drain problem again ? Jun 10 17:14:13 i remember last year waiting months for that fix, guess they messed it up again Jun 10 17:15:06 hi all Jun 10 17:15:07 i have a file on /mnt/internal_sd of 44952 bytes, it's inode size is 4819255296, now i would calculate a inode size of a file of 50000 bytes, do you know how ? Jun 10 17:15:29 g00s: was there a posting about it or are you just seeing your battery drain? Jun 10 17:15:36 I thought I read something about it but I can't find the link anymore Jun 10 17:16:22 ibfrog posting Jun 10 17:16:44 can you post the link? Jun 10 17:17:08 one sec Jun 10 17:18:25 ibfrog https://code.google.com/p/android/issues/detail?id=165558 Jun 10 17:18:31 awesome, thanks Jun 10 17:20:03 Is there any easy way to determine the amount of time since a function was last run? Jun 10 17:25:57 Hi Jun 10 17:27:55 good evening Jun 10 17:30:19 I'm trying to add a jar to a project in Android Studio. Everything seems to work fine in the IDE, but on startup I get an error about a class from the jar not being found. Jun 10 17:37:54 FlyingJester: do you have this line in your dependencies? `compile fileTree(dir: 'libs', include: '*.jar')` Jun 10 17:38:40 It's not in a directory called libs, though. Jun 10 17:39:07 it can be changed. but you need to tell gradle that it's a dependency Jun 10 17:39:54 I do have an entry for it in the dependencies, section. But the autogenerated output for it was `provided project(':project_directory')` Jun 10 17:40:48 I get the same issue if I change that to `compile files('jmercury/json.jar')` Jun 10 17:54:39 not sure, sorry :/ and somewhat limited in my ability to search, horrible train internet connection :| Jun 10 17:56:39 I'm getting a crash on slow devices/devices doing a lot of things in the background. Is there anyway to force "a lot" of things to go on on another device? Like a moto g? O essentially anyway to artificially slow down an Android device? Jun 10 17:58:56 Eghdk_: You could create a very weak emulator to run your app on Jun 10 17:59:46 How would one create a weak emulator? Just low ram? I thought that's all you could really customize? Jun 10 18:00:18 the emulator has this Jun 10 18:00:24 'feature' by default Jun 10 18:00:40 Lol Jun 10 18:01:01 is this ram issue? Jun 10 18:01:09 or slow cpu Jun 10 18:02:44 CPU or possibly io. Like shitty slow launching phones because they had shit ram on them so they slowed the fuck down Jun 10 18:03:54 if phone has dd you could do something like dd if=/dev/urandom of=/dev/null bs=100000000 via adb shell Jun 10 18:04:31 is there a cpu stress test app that runs in the background out there? Jun 10 18:06:08 Do? Jun 10 18:06:12 Dd? Jun 10 18:07:02 daring do Jun 10 18:08:36 Ashiren if my phone has daring do? Jun 10 18:10:17 dd'ing into /dev/null should use basically an entire core until it is done. Reading from /dev/urandom or /dev/zero should never finish on its own. Jun 10 18:20:28 Hey guys. This is my first time making an android app and I'm having an issue with sockets Jun 10 18:22:00 When I run my app (https://github.com/jacobmillward/kettlecontrol) the logcat shows it blasting through all the ip address instantly before I get a "Connected to null" toast Jun 10 18:22:11 The code it should be running is here https://github.com/jacobmillward/libkettlecontrol Jun 10 18:22:46 That library works perfectly with Java on my laptop, why not with android? Jun 10 18:22:54 Hello, Jun 10 18:23:27 Fenaer: do you have the internet permission requested in the manifest? Jun 10 18:23:35 ibfrog: I do Jun 10 18:24:37 I'm trying to use a custom LinearLayout class inside an xml layout but I keep getting the error that the class cannot be found while the class really does exist. Using the following tag: Jun 10 18:25:06 How often google updates statistics on google developer console, its been 2 days since release and they still didnt update it Jun 10 18:26:04 https://play.google.com/store/apps/details?id=com.push.game.android\ Jun 10 18:26:06 do you get a logcat error about trying to do network on the main thread? Jun 10 18:26:15 ibfrog: What else would be causing this? Jun 10 18:26:42 ibfrog: No I don't - I specifically re-wrote my classes to offload all networking to seperate threads Jun 10 18:26:53 uh... wait sorry, trying to read through all of the code Jun 10 18:26:56 missing parts Jun 10 18:28:18 ibfrog: with libkettlecontrol, making a Kettle object creates a KettleConnection that handles sending data, and a KettleListener that listens for messages. Both those secondary classes are on separate threads. Jun 10 18:29:20 ibfrog: What parts am I missing? Jun 10 18:29:21 is InetAddress.getLocalHost() returning what you expect when you run it on android? Jun 10 18:29:48 ibfrog: Ah no! I just noticed - It's returning the loopback address Jun 10 18:30:18 I would guess the ip address of the device would need to be pulled from a system service on android but I haven't tried it Jun 10 18:30:37 I'd expect getlocalhost to return loopback Jun 10 18:31:15 dragorn: That isn't the behaviour of it on desktop Jun 10 18:31:44 why AS performs gradle build whenever I click 'run' button? if there is no change after last build, why not just run it? Jun 10 18:32:23 Because it needs to check if there are changes Jun 10 18:32:26 which launcher icon generator do you use? i`ve just tried android asset studio but my icon looks always a lil bit smaller than others. i dont have any borders around my image, i use a 512x512 image and copy them in the correct folders... Jun 10 18:34:06 Is it possible I have a mismatch in Java versions in my jar and my Android project? Jun 10 18:34:24 SimonVT: isn't it easy to check if it is dirty or not, rather than build the whole thing again? Jun 10 18:35:58 It has to run each task to know that Jun 10 18:36:11 You'll see that a lot of the tasks reports UP-TO-DATE Jun 10 18:36:24 Basically means nothing has changed and it's not doing anything Jun 10 18:36:39 i am getting no such column at line 5 here is the little code any body guide me ? http://paste.ubuntu.com/11691672/ Jun 10 18:37:52 You're checking that the value of the column "COLUMN" is equal to SqliteHelper.COULMN_UPLOAD Jun 10 18:37:52 SimonVT: it is counter-intuituive to do this again with almost 2 minutes. eclipse will just run instantly because it is just a matter of checking a dirty flag. Jun 10 18:38:33 Not really Jun 10 18:38:43 FlyingJester, no Jun 10 18:38:44 AS doesn't know what gradle does Jun 10 18:38:54 You might have added some extra tasks that changes stuff Jun 10 18:39:25 AS can't decide if nothing has changed, gradle does that Jun 10 18:40:11 SimonVT: of course AS can check if dirty or not. Jun 10 18:40:26 SimonVT: that is what Eclipse does Jun 10 18:40:39 maybe you should become an AS contributor ;) Jun 10 18:40:46 pfn No, as in that would not be an issue? Jun 10 18:41:54 Eclipse has its own build system, so eclipse decides when nothing has changed Jun 10 18:42:02 AS delegates building to gradle, so gradle decides when nothing has changed Jun 10 18:42:38 make sure you have the gradle daemon enabled that speeds up that check a lot Jun 10 18:42:59 * wakelock still wonders why isn't the gradle daemon enabled by default Jun 10 18:43:06 wakelock: how? Jun 10 18:43:17 How do you define "nothing has changed"? When no source of resource files has changed? What if you have a + dependency, when do you check that? What if I have a custom task that does X, how does AS decide that "nothing has changed"? Jun 10 18:43:29 rrr, I don't know but apparently you know better than AS authors, so... Jun 10 18:43:56 I agree it's slow Jun 10 18:44:14 But they're trying to resolve that by making gradle faster, and the various tasks faster Jun 10 18:44:16 rrr, point is, eclipse's build system is blazing fast, but also almost trivially simple compared to AS/gradle Jun 10 18:44:35 reason being, eclipse doesn't support a lot of the things gradle does Jun 10 18:44:38 Watch the tools talk from IO, it looks promising Jun 10 18:46:24 * wakelock much rather prefers eclipse and its build system, but understands why things are the way they are Jun 10 18:46:50 yeah me too Jun 10 18:51:09 Hm. So now I am getting the error `com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)` about a class in my external jar when I try to build. Jun 10 18:51:10 AS/grade just sucks in build performance and why the hell it is pushed/advised by many as standard but not ready to do so yet! it wasted my time many Jun 10 18:51:58 what might "Performed 6 layouts in a row. Skipping" mean? Jun 10 18:52:41 or "!!! FAILED BINDER TRANSACTION !!!" Jun 10 18:53:44 tried googling? Jun 10 18:55:01 yep Jun 10 18:55:04 can't find much Jun 10 18:56:42 gonna get the full log output Jun 10 18:58:09 here's my log output when the crash happens: https://gist.github.com/anonymous/737fcac2037590557978 Jun 10 18:58:48 aha, "The application may be doing too much work on its main thread." Jun 10 18:59:22 I believe my app is choking on certain characters Jun 10 18:59:49 which are being loaded from a TypedArray within strings.xml Jun 10 19:01:16 I'm not sure exactly, because I'm not sure how to analyze this data, or analyze the bytes of the characters I'm loading, but... I believe most characters are standard UTF-8 size, and I think some are UTF-16, and I believe the UTF-16 characters are causing the app to barf Jun 10 19:01:52 has anyone here used opensciencemaps before? it looks like an open source android mapping software and im trying to figure out how to implement it into my own project Jun 10 19:03:04 Can Gradle not handle setting the version explicitly to Java 8? Jun 10 19:06:50 Android doesn't support java8 Jun 10 19:07:06 nickenchuggets: "6 layouts, skipping" basically means you called requestLayout() _during_ layout. after it re-lays-out a second (or more) time, it typically just drops the attempt, renders a frame, and tries to continue after that. Jun 10 19:11:05 so there's a recursive call to requestLayout()? Jun 10 19:11:58 recursive would cause stack overflow probably. but e.g. in onLayout, you may be changing layout params, or some other detail that's causing re-layout. Jun 10 19:13:47 And I assume there is no simple way to make a Java 8 jar work then ;/ Jun 10 19:13:56 FlyingJester: retrolambda maybe Jun 10 19:14:04 but no, it definitely won't work unmodified Jun 10 19:14:06 Anyone have any experience with the Wikitude SDK/ Jun 10 19:14:10 I'm pretty sure it's an issue with a very specific character Jun 10 19:14:13 I can't tell if I'm stupid as fuck or if their docs are bad Jun 10 19:14:23 or some delightful combo of the two Jun 10 19:14:25 in my strings.xml Jun 10 19:14:28 But if I don't have the source to the jar... Jun 10 19:14:35 when I remove this one character, there is no crash Jun 10 19:14:39 mdeboard: read the source code maybe? docs are generally bad. Jun 10 19:14:57 FlyingJester: doesn't matter, retrolambda works on the compiled code Jun 10 19:15:24 so, perhaps this specific character is causing re-layout? Jun 10 19:15:35 Read?!?!? SOURCE CODE!??!! Can't I just get people to spoonfeed my answers Jun 10 19:16:00 mdeboard: ah, dang. it's an AR sdk? might be native code? Jun 10 19:16:27 nickenchuggets: ¯\_(ツ)_/¯ are you doing any custom layout / have any on-layout listeners? Jun 10 19:16:59 nope, not really Jun 10 19:17:13 groxx: Yeah it's not open source, so docs are really the only resource I've got. I'm probably just not reading hard enough. Jun 10 19:17:47 mdeboard: yeah, no clue. looks like they have samples? but otherwise /me returns to work :) Jun 10 19:17:53 hehe Jun 10 19:18:26 ACTION  Jun 10 19:18:29 I have this list of 214 Japanese symbols, with variants in parentheses. They're stored in elements in my strings.xml file. Most of the 214 Japanese symbols render correctly, and do not cause an app crash. However, every single time one specific character, e.g. the 18th character, is set to render... the crash happens with the log output I posted. Jun 10 19:19:06 And that character is double-wide Jun 10 19:19:16 Oh oh Jun 10 19:19:19 I think I just read about this. Jun 10 19:19:25 nickenchuggets: how are you storing them? as literal 日本語 characters, or as \u01239 escapes? Jun 10 19:19:30 literal Jun 10 19:19:53 hm. double wide - which character? Jun 10 19:19:54 not escaped Jun 10 19:20:00 if I have a bluetooth beacon, and my phone enters its zone, how long should it take for my phone to recognize that? Jun 10 19:20:06 would it be pretty much instantaneous? Jun 10 19:20:11 𠆢 Jun 10 19:20:13 does it depend on the beacon tech? Jun 10 19:20:18 iirc beacons only broadcast every minute or so? Jun 10 19:20:29 what does iirc stand for? Jun 10 19:20:41 I know i've seen some that only do once every 5 minutes, which gives them like 10 year battery life Jun 10 19:20:46 "if I recall correctly" Jun 10 19:21:07 http://www.fileformat.info/info/unicode/char/201a2/index.htm Jun 10 19:21:13 hmm but thats not great for my use case. I want a really short range, but fairly constant broadcast Jun 10 19:21:19 like 2-3 inches Jun 10 19:21:36 but a phone that gets put into that range immediately gets notified Jun 10 19:21:39 http://thenextweb.com/apple/2015/05/27/the-bug-that-can-crash-iphones-with-a-single-message-is-back/ Jun 10 19:22:09 nickenchuggets: There is some blog post related to ^ I am trying to find that explains these sorts of things Jun 10 19:22:22 perhaps I need a font that supports these characters? Jun 10 19:22:48 nickenchuggets: if your font doesn't, it should fall back to one that does, or show a "[]" character or something Jun 10 19:22:53 automatically Jun 10 19:23:37 well, I might try that anyway, because there are some rendering issues Jun 10 19:23:40 in addition to crashes Jun 10 19:23:46 nickenchuggets: What's the escape sequence for that character anyway Jun 10 19:24:14 can dumpsys tell me which activities / fragments are bound to a service ? Jun 10 19:24:27 mdeboard: this neat website will give you all the escape sequences: http://www.fileformat.info/info/unicode/char/201a2/index.htm Jun 10 19:25:26 I just wonder if the sequence of characters leading up to and including that character cause the crash Jun 10 19:25:34 try changing the order, or putting that character first or something? Jun 10 19:25:57 totally speculative :) Jun 10 19:26:11 g00s: hm. good question Jun 10 19:26:11 I'm gonna try using this font: http://en.wikipedia.org/wiki/Code2000 Jun 10 19:28:09 doing so might fix another issue I'm having in addition to app crashes Jun 10 19:28:10 g00s: typically I find out things like this by setting it up in code (e.g. just bind in some TestActivity), using just `adb shell dumpsys` to get everything, and then searching in the file :| Jun 10 19:28:21 some characters don't render at all, they just show up blank Jun 10 19:28:27 the organization of what data is in what service isn't always obvious Jun 10 19:28:33 and sometimes a character will cause the app to crash Jun 10 19:28:45 dumpsys has a lot of flags, i often mess it up Jun 10 19:29:14 yeah :| and they're all different, and some tell you when you -h, some when you --help, some when you just `dumpsys ` Jun 10 19:30:52 more still if you read its source :p Jun 10 19:31:16 has anyone here used opensciencemaps before? it looks like an open source android mapping software and im trying to figure out how to implement it into my own project Jun 10 19:31:34 doesn't it come with instructions? Jun 10 19:31:48 not really for implementing it as a library to use its tools Jun 10 19:32:18 at least that work for me, ive tried at least installing their example application on my android device but it crashes, im assuming it has something to do with gradle there Jun 10 19:32:56 what's the crash? Jun 10 19:32:57 i found a post where someone had to mess with the gradle files to be able to implement it into their own project but he didnt explain how Jun 10 19:33:22 id need to pull it up again to get the logs but its a crash on start up, i believe having to do with java linker Jun 10 19:35:18 man, at the job is so different than at home Jun 10 19:35:28 it is? Jun 10 19:35:33 how so? Jun 10 19:35:41 we all know it is, but at home even if you are *pushing* yourself, it isnt like at work Jun 10 19:35:51 at work you are pushing yourself and others are pushing you, lol Jun 10 19:35:54 yeah i agree Jun 10 19:35:57 it's at least twice the pressure Jun 10 19:36:05 id say i just have more motivation at work Jun 10 19:36:12 at home i wanna sleep or play games :P Jun 10 19:36:27 nah we're talking about constant motivation Jun 10 19:36:32 Odaym: Newton would probably say it's the same, since when you push yourself, you push yourself back, with equal and opposite force Jun 10 19:36:53 you're just as excited here and there, but over there you suddenly feel much weaker than at home cause it isnt everything in your own Trello, there's other agendas Jun 10 19:37:21 how long have you been doing what you do at work? Jun 10 19:37:31 the stuff you take for granted like designing some page, these get asked about Jun 10 19:37:42 I think it is a font issue Jun 10 19:37:51 "what about this button?" Jun 10 19:37:56 "DUDE I GAT DIS!" Jun 10 19:39:26 "oooohhh, what's this button do??" Jun 10 19:40:03 like some fucking algorithm man, you want to get the latest geopoints from the server and use them to compare them with the older points to get the distance, if its under some threshold, do something Jun 10 19:40:04 haha, damn, it's still crashing Jun 10 19:40:21 even though I'm using a font purported to support the character I was talking about earlier Jun 10 19:40:24 so i start thinking on 2 arrays, old and new, but each time I get an array of several users, and sometimes a user drops out of the array Jun 10 19:40:32 found it so difficult Jun 10 19:40:54 nickenchuggets: i don't think I've seen the crash, btw. have a pastebin somewhere? Jun 10 19:41:57 got a new one coming up Jun 10 19:42:10 you got crash fashion? Jun 10 19:42:14 new crashes for Summer 2015 Jun 10 19:42:24 https://gist.github.com/anonymous/126b1df246a223d2d36b Jun 10 19:42:45 seems like there should be something before that? Jun 10 19:43:02 "Process cf.bitdigital.kanji has crashed too many times: killing!" lol, I haven't seen that one before Jun 10 19:44:02 yawn Jun 10 19:44:04 * wakelock crashes Jun 10 19:44:10 don't kill me please Jun 10 1Jun 10 19:57:52 https://code.google.com/p/android/issues/detail?id=64892 Jun 10 19:58:07 question Jun 10 19:58:10 hey guys. working with kotlin; I'm trying to figure out how to use SAM literals for things like Runnables. that's easy enough; Jun 10 19:58:21 would there be any advantage in pooling maybe 3 webviews for the whole app, rather than removing/re-creating them? Jun 10 19:58:38 something like view.animate().withEndAction{ doThingHere() } Jun 10 19:59:10 but i'm struggling to get the syntax right when the SAM has more than one parameter, forexample an OnEditorActionListener() Jun 10 19:59:15 anybody know how that works? Jun 10 20:00:17 sigmabeta: with { (a,b) -> xxx } Jun 10 20:00:26 Might need type annotations for a and b Jun 10 20:00:50 where does the function body go in that? is that what xxx is? Jun 10 20:01:07 xxx is the body Jun 10 20:01:18 sigmabeta: with { (a,b) -> println(a,b) } Jun 10 20:01:18 so where does the return type go? or is it implicit? Jun 10 20:01:29 Inferred most of the time, but you can add it Jun 10 20:01:48 i see. yeah my problem is i thought the -> always indicated return type. Jun 10 20:01:52 nickenchuggets: yeah, I think we've had to deal with that too. I forget how we handled it though. Jun 10 20:01:55 if i were to add it, where would it go? Jun 10 20:02:18 sigmabeta: with { (a,b) : String -> “a” } something like that Jun 10 20:03:34 nickenchuggets: ha. sweet, I left myself a comment. we just encoded it as \u escapes in java :| Jun 10 20:03:49 hahaha Jun 10 20:03:54 any idea why R.drawable.pictureB is not accesible (location drawable-xhdpi) and R.drawable.pictureA is (location drawable-hdpi & drawable-mdpi)? Jun 10 20:04:13 groxx: I saw that suggestion somewhere, I may have tried it too Jun 10 20:04:24 android studio normally suggest pictureA but not pictureB Jun 10 20:04:43 can you put \u escapes in XML though? Jun 10 20:04:59 nickenchuggets: in principle, yes, but it also doesn't work :| Jun 10 20:05:10 -.- Jun 10 20:05:35 someone suggested using NewStringUTF I think Jun 10 20:06:03 and calling String.getBytes("UTF-8"), and passing the bytes to NewStringUTF Jun 10 20:06:06 both are PNG, bot are functional - I am able to open them in picture viewer Jun 10 20:07:00 jaana, looks like that syntax is deprecated, and it's not too happy about me trying to "return true" whether i specify the return type or not Jun 10 20:07:14 also, there's this: http://developer.android.com/training/articles/perf-jni.html#UTF_8_and_UTF_16_strings Jun 10 20:08:03 lol, there's an encoding called WTF-8 Jun 10 20:08:12 nickenchuggets: I don't think you really get the chance to do that though, since /res xml files are run through the framework's parser. possibly there's a way around it, I don't think I looked too deeply after discovering that it works (as two \u escapes) in java Jun 10 20:08:42 sigmabeta: About returns: https://confluence.jetbrains.com/display/Kotlin/Returns+and+jumps Jun 10 20:08:46 well, I have a bunch of characters though Jun 10 20:08:53 sigmabeta: ah wait old page Jun 10 20:08:59 look up how non local returns work in kotlin Jun 10 20:09:02 I guess I'll try to hack it Jun 10 20:09:08 jaana, yup, got the new version up Jun 10 20:09:49 that's gonna suck though, because I'm gonna have to do that for probably more than just one character Jun 10 20:10:28 so i need to label the function literal i'm using as my EditorActionListener()'s SAM, and then tell it to return that label? Jun 10 20:12:15 hm, that seems oddly inconvenient Jun 10 20:12:22 i guess it's not much of a big deal though Jun 10 20:13:17 it says "Error:(54, 40) error: cannot find symbol variable pictureB" Jun 10 20:13:22 on run... Jun 10 20:13:52 Thanks jaana Jun 10 20:14:33 sigmabeta: Figured it out? Jun 10 20:14:52 has anyone using the TextInputLayout from the design support library had the problem where running setError("whatever") causes it to push everything below it down a bit to fix the text? Jun 10 20:14:59 every new added picture cannot be seen with R.drawable - is there any other way than restart to change it? Jun 10 20:15:29 s/fix/fit Jun 10 20:15:58 if your studio is stuck "attaching" a library file to a java class should you try reattaching or does it normally take longer than five minutes? Jun 10 20:16:26 jaana, looks roughly like this after IntelliJ got done telling me about deprecations http://hastebin.com/xejifuwiwu.coffee Jun 10 20:16:33 bobbiejim1, what do you mean by "reattaching"? Jun 10 20:16:46 bolovanos: like, closing out of studio and trying again Jun 10 20:16:50 and what should take longer than five minutes? Jun 10 20:16:54 sigmabeta: looks good. By the way, there’s a #kotlin Jun 10 20:17:02 the attaching of the library file to the java class that it relates to Jun 10 20:17:09 bolovanos, no - it is ok, but i need history... Jun 10 20:17:43 jaana, good to know, thanks again Jun 10 20:18:14 if i open a specific class it says "decompile .class file, bytecode version: 50.0 (Java 6) and then gives me the option to download or choose source of the library Jun 10 20:18:20 is NewStringUTF a C level call only? Jun 10 20:18:23 i mean speed is ok, not fast, but surely faster than 5 minutes, but i need be able do some undos... Jun 10 20:19:33 oh theres no undos involved, im trying to implement a mapping software into my project and using their library but thats what im stuck on Jun 10 20:19:48 bobbiejim1, and suggesting is even faster, just it says that existing picture is not there..., like android studio cant see that picture Jun 10 20:19:52 i havent changed anything, im using the "Nutiteq HelloWorld3D Jun 10 20:20:03 I have an idea Jun 10 20:20:04 :p Jun 10 20:20:40 sigmabeta and jaana: Does `return@setOnEditorActionListener` work there? (Just curious, and I missed most of this conversation.) Jun 10 20:20:51 + ` true` Jun 10 20:21:06 bolovanos: im confused haha. do we both have problems we are trying to solve? Jun 10 20:21:32 gonna try this: text = new String(text.getBytes(), "UTF-16"); Jun 10 20:21:37 it seems too easy though Jun 10 20:21:47 bobbiejim1, :) guess we have problems we are trying to solve, but probably we cannot help each other Jun 10 20:22:06 bolovanos: looks like it :) Jun 10 20:22:14 TacticalJoke, does not appear to work Jun 10 20:22:21 Unsupported Encoding, awesome Jun 10 20:22:38 bobbiejim1, but at least we did a willow to each other Jun 10 20:22:53 "Pizza Hut Debuts Hot-Dog Pizza in Push to Boost Sales" gross Jun 10 20:23:44 hey guys Jun 10 20:24:18 does anyone know if LeakCanary (Hi Jake) has a problem with ViewServer? That it, false reports of leaks Jun 10 20:24:56 there has to be a way Jun 10 20:25:00 to convert the bytes Jun 10 20:25:09 from item.getBytes() Jun 10 20:25:15 to a renderable character Jun 10 20:27:07 hey guys, any ideas on how to dumb usb traffic? Jun 10 20:27:21 I'm given a drawable path that looks like this: "res/drawable-xhdpi-v4/my-image.png". Does anyone know why it is so infuriatingly convoluted to turn a path like this into a resource ID? Jun 10 20:27:24 dye it blonde? Jun 10 20:27:40 dump Jun 10 20:27:41 sorry Jun 10 20:27:50 is there not a way to convert item.getBytes() to a \u escape Java string? Jun 10 20:27:50 to what purpose? Jun 10 20:28:15 Chainfire, trying to reverse engineer a device Jun 10 20:28:27 so I can use it with a desktop PC Jun 10 20:28:35 is it necessary to do it on the Android? Because I've been there, and using usbtrace on a PC is much easier :) Jun 10 20:28:55 right then, usbtrace. Jun 10 20:29:05 cool, thanks Jun 10 20:29:12 I'll look into it Jun 10 20:29:16 g00s: in a similar vein, I was once treated to this "cannot unsee" KFC monstrosity: https://twitter.com/Groxx/status/559993800546729985 Jun 10 20:29:45 groxx ugh yes, cant unsee Jun 10 20:30:19 groxx and thats all doctored up for a picture, imagine in real life Jun 10 20:30:28 noooooo! Jun 10 20:30:32 don't wanna! Jun 10 20:31:25 Chainfire, got a link or something? googling for android usbtrace doesn't seem to come up with useful links Jun 10 20:32:28 that's because its a Windows app Jun 10 20:32:42 ah, then you misunderstood me Jun 10 20:32:53 it's also not android-specific Jun 10 20:32:57 the device I want to figure out how it works has an app only for android Jun 10 20:33:04 ahhh Jun 10 20:33:05 for windows it doesn't even have a driver Jun 10 20:33:28 well, do you know if it uses native libusb or Android's Java USB layer? Jun 10 20:33:42 you can replace/hook either :) Jun 10 20:33:42 Chainfire, no clue Jun 10 20:33:59 in that case - replace/hook both :p Jun 10 20:34:12 nah, figuring out which one it uses will probably be less work :P Jun 10 20:34:29 you do need a rooted phone and ample knowledge Jun 10 20:34:39 I have ample knowledge Jun 10 20:34:54 and Chainfire has lots to offer in terms of rooting :p Jun 10 20:34:56 not of android devices tho :P but I'm sure I can adapt Jun 10 20:36:03 are there readily compiled versions of the USB drivers available for this specific task or would I have to compile them myself? Jun 10 20:36:21 my issue: Cannot Resolve Symol GoogePlayServicesClient <- i added GooglePlayServices through the SDK.. its in the gradle file also. help? Jun 10 20:36:32 well if you have full control of your phone in theory you can rip out the framework, put in hooks, and place it back. it might be easier to write an xposed modules that traces the Android/Java USB calls. libusb.so you can just replace with your own version if that is used. The app might even have its own version included. Jun 10 20:37:01 no, aside from you and me, this is something probably only a handful of people have ever bothered to do Jun 10 20:37:12 I see Jun 10 20:37:40 thanks, then I'll start digging :) Jun 10 20:37:44 if there's a CyanogenMod or Omni version available for your device, that could be a great starting point as you can build everything from source and just hook/log whatever/whenever Jun 10 20:38:01 the end-goal is reverse engineering the protocol, not having the phone run well, isn't it ? :) Jun 10 20:38:07 :) Jun 10 20:38:09 anyone here Jun 10 20:38:09 Chainfire, hehe Jun 10 20:38:11 yeah Jun 10 20:38:12 help me with my probbie? Jun 10 20:38:45 jadew also you could look into decompiling the current app Jun 10 20:38:54 which device are you trying to reverse, if you don't mind me asking ? Jun 10 20:39:03 (just curious) Jun 10 20:39:18 get back Jun 10 20:39:20 Chainfire, thought about that too Jun 10 20:39:28 Chainfire, not at all, it's the seek thermal camera Jun 10 20:39:33 dblclicked<- Jun 10 20:39:38 can someone help me with an algorithm? Jun 10 20:39:57 Put value from SharedPref in EditText returns inside field: android.widge**** ENDING LOGGING AT Thu Jun 11 02:59:59 2015