**** BEGIN LOGGING AT Mon Jun 15 02:59:58 2015 Jun 15 03:06:52 ignorance stays bliss, idiocracy reigns supreme Jun 15 03:12:45 As far as I can tell, the cleanest solution for handling clicks in ListViews and figuring out which row was clicked (e.g., with multiple clickable Views) involves casting `parent` to AdapterView and calling AdapterView.getPositionForView. (And the same kinda thing applies to RecyclerView.) Jun 15 03:12:51 The only other way appears to be abusing the tag thing. Jun 15 03:13:02 Well, or maintaining a list of children ourselves (eww). Jun 15 03:15:07 anybody here use realm + rx? Jun 15 03:15:21 + retrofit Jun 15 03:26:47 I use retrofit+rx Jun 15 03:31:01 yeah, realm is the one causing some issue Jun 15 03:31:52 Doesn't Realm have crazy main thread requirements? Jun 15 03:32:13 yep Jun 15 03:32:14 lol Jun 15 03:35:51 I don't understand how that doesn't immediately disqualify Realm for any serious android app Jun 15 03:37:31 well, it's not main thread requirements Jun 15 03:37:47 objects just can't be passed through threads, so you just re-access the realm in the thread Jun 15 03:59:51 CedricBeust: I've found an opinion by computer PRO about new languages Jun 15 04:00:00 “if we can make a better language, we obviously should.” Jun 15 04:00:02 :) Jun 15 04:00:52 at the moment he is doing two new languages simultaneously Jun 15 04:01:26 one is googles dart, another newspeak http://www.newspeaklanguage.org/home Jun 15 04:01:36 You mean learning, not doing Jun 15 04:02:03 no, he worked to create java v2/3 Jun 15 04:02:13 now these two mentioned Jun 15 04:02:26 and the explanation is epic Jun 15 04:02:40 newspeak is kinda abandoned, Gilad moved on to Dart, pity he still sees so much value in dynamically typed languages. The Smalltalk curse. Jun 15 04:03:18 however later sentence he admits: “The costs of learning, tooling and interoperability argue <...>” Jun 15 04:03:31 CedricBeust is dynamic typing an anti-pattern :P Jun 15 04:04:16 what can you say about a guy who admits he is doing something wrong, but explains it as “we should” Jun 15 04:07:06 CedricBeust: realm has crazy single-thread requirements (aka, everything). you can't even pass "row" objects between threads. so every normal use still requires wrapper pojos Jun 15 04:08:15 ah, that was already covered. catching up :) Jun 15 04:08:20 that sucks Jun 15 04:09:01 groxx does it do something like detect if different threads are accessing an object (like android view hierarchy) ? Jun 15 04:09:59 groxx: like I said, I wonder why anyone would even bother using a framework with such absurd requirements when better approaches are widely documented and known Jun 15 04:10:18 g00s: dunno. not that I'm aware of, but I didn't try too hard Jun 15 04:10:24 g00s: yes, in 2015, I think there's hardly any reason to use a dynamically typed language Jun 15 04:10:25 CedricBeust: for fun Jun 15 04:10:25 :) Jun 15 04:10:41 really just wanted to test this out, but i dont think its working out Jun 15 04:10:50 CedricBeust i agree, but that /r/androiddev anti-pattern thing was funny :) Jun 15 04:10:59 link? Jun 15 04:11:11 although, meh so much data science uses python Jun 15 04:11:32 groxx http://www.reddit.com/r/androiddev/comments/39tq6t/event_bus_is_an_antipattern/ Jun 15 04:11:47 its like the community had an allergic reaction to something Jun 15 04:12:26 dont use "anti-pattern" in your titles :) Jun 15 04:12:34 python had lambas for 25 years now Jun 15 04:12:40 java 8 introduced them Jun 15 04:12:47 now answer me, why android choose java Jun 15 04:12:55 very simple question Jun 15 04:13:09 java is dynamically typed so i'm glad we didn't use it Jun 15 04:13:12 ugh Jun 15 04:13:16 *python ! Jun 15 04:13:20 ok Jun 15 04:13:50 they could have used D :) Jun 15 04:14:00 objc is much better than java Jun 15 04:14:04 D would've been interesting Jun 15 04:14:05 Yeah I commented on that Jun 15 04:14:14 oh gross ... objc? seriously ? Jun 15 04:14:15 g00s: Java is statically typed Jun 15 04:14:22 CedricBeust i made typo Jun 15 04:14:27 Java 8 has had lambdas since 1995 Jun 15 04:14:30 1996* Jun 15 04:14:50 Trying again: Java has had lambdas since 1996 Jun 15 04:14:57 Java 8 just adds syntactic sugar on them Jun 15 04:15:11 you mean anonymous classes Jun 15 04:15:51 can you honestly compare objc block syntax with java lambdas :) Jun 15 04:16:12 Semantically they're the exact same thing, just different syntax Jun 15 04:17:19 well, if you want to go down that rabbit hole, we can claim java == lisp because they're both turing complete. making something easier or harder has significant impact though. Jun 15 04:17:34 groxx: No, that's absolutely not the same thing Jun 15 04:18:17 it's pretty easy to make a lisp in java. you'd just have a crap-ton of levels of nesting Jun 15 04:21:43 how do you enable java 8 in android studio Jun 15 04:21:50 and do you? Jun 15 04:21:59 to run AS in 8, or to write 8 in AS for Android? Jun 15 04:22:15 2 Jun 15 04:22:47 I want to: View.OnClickListener h = v -> <...> Jun 15 04:23:15 For Android, you'll need Retrolambda for that. For regular Java, just set the JDK of the project to Java 8 Jun 15 04:23:17 Error:(187, 30) error: lambda expressions are not supported in -source 1.7 (use -source 8 or higher to enable lambda expressions) Jun 15 04:23:20 squ: in a nutshell: retrolambda. but that doesn't get you anything but language features (and incomplete at that) Jun 15 04:25:36 squ, you'd set the source in the app's build.gradle to 8 and targetCompatibility to 7 Jun 15 04:26:02 https://docs.gradle.org/current/dsl/org.gradle.api.tasks.compile.JavaCompile.html Jun 15 04:29:00 I hate java, hate android Jun 15 04:29:04 k Jun 15 04:29:49 squ, have you tried scala yet? all is not lost :) Jun 15 04:30:02 Don't bother wish Scala Jun 15 04:30:08 either try Kotlin or switch to iOS :) Jun 15 04:30:51 or swift Jun 15 04:31:21 or wait 2 weeks for new language Jun 15 04:32:34 let's create kind of Human Rights Watch organization which will punish devs for excessive creativity Jun 15 04:32:49 Why would we do that Jun 15 04:36:48 "Rich Californians balk at limits: ‘We’re not all equal when it comes to water’" shit about to get real Jun 15 04:40:27 redengin: can you please show yours build.gradle Jun 15 04:40:29 :) Jun 15 04:40:34 dang, people acting all entitled and crap? this is unprecedented. Jun 15 04:40:52 squ, how about you just pastebin yours and I'll edit it for you Jun 15 04:41:13 redengin: first of all, I have two of them Jun 15 04:41:23 groxx "People “should not be forced to live on property with brown lawns, golf on brown courses or apologize for wanting their gardens to be beautiful,”" Jun 15 04:41:24 then, there is no 'source' in any of them Jun 15 04:41:32 you have one for the app, and one for the project Jun 15 04:41:58 paste the Module:app one Jun 15 04:42:18 http://vpaste.net/j3eqr Jun 15 04:43:20 squ, ok, that would be the wrong one, good thing there is only one other choice :) Jun 15 04:43:28 http://vpaste.net/irh5u Jun 15 04:49:16 how do you add to a listView thats IN a fragment using a onClick method from the frags Activity. You'd basically have to pass the adapter into the frag? idk im so confused about this Jun 15 04:51:59 The activity would tell the fragment to add the item. Jun 15 04:52:11 The activity would know nothing about adding the item. Jun 15 04:53:55 mFragment.onClickedYo() Jun 15 04:53:58 Hey so they're putting Android in projectors now? :P Jun 15 04:54:24 Tricknology to put interstitial adds in business meetings ? Jun 15 04:54:40 I've seen an Android phone with a projector built in... Jun 15 04:54:59 Tricknology: is that where the Android device blames you for its own faults? Jun 15 04:55:04 yeah but I've never seen a projector with Android OS. Jun 15 04:55:06 heh Jun 15 04:55:41 I am tempted to get one but.. I wonder what kind of development process there is for apps Jun 15 04:55:46 arguably they've been putting android in projectors since this http://phandroid.com/2015/06/08/pizza-hut-box-projector-smartphone/ Jun 15 04:55:47 I want to make a custom home theater Jun 15 04:56:12 I think it would be cool to program the projector to access my.. ehem.. movie resources Jun 15 04:56:20 instead of setting up a dedicated box for that Jun 15 04:57:24 TacticalJoke, i get that but in the frags OnCreateView i need to do listView.setAdapter(adapter); but in order to .add() to adapter adapter has to be in the Activity Jun 15 04:58:05 g00s: maybe I'll get Pizza Hut tonight :) Jun 15 04:58:11 Why does it need to be in the activity? Jun 15 04:58:37 Leeds oh god, why do that to yourself Jun 15 04:58:46 projector box! Jun 15 04:59:11 also, I do quite like their pizzas, sometimes... it's junk food, but... Jun 15 04:59:20 TacticalJoke how else would the OnClick be able to know of its existence? (the adding is done via a button, and you cant create onClicks in a frags class) Jun 15 05:00:09 You can set View.OnClickListeners in a fragment. Jun 15 05:00:15 But I don't see how that's relevant anyway. Jun 15 05:03:56 I dont remember why but ive always had to make my OnClick methods in the activity and then pass them into the fragment Jun 15 05:04:10 Probably because the XML `android:onClick` thing requires that. Jun 15 05:04:48 NateRiver thats one reason why its not used often these days Jun 15 05:05:05 g00s why what isnt used? fragments? Jun 15 05:05:20 android:onClick Jun 15 05:05:45 how else can somenone click then?? Jun 15 05:06:27 do it programatically Jun 15 05:06:31 NateRiver: You should write the fragment in such a way that it could be used with all kinds of different activities. Jun 15 05:07:04 If that's not the case then something is probably wrong. Jun 15 05:07:22 Okay ill try making a butt in the frag and see if i remember why i always pass it in from activity Jun 15 05:10:22 Also bear in mind that many people hate fragments because of how complex they are. Jun 15 05:10:32 And that a lot of newbies use fragments where they don't need to. Jun 15 05:11:26 i just put all my stuff in fragments Jun 15 05:11:52 this is pretty good https://plus.google.com/+JoshBrown42/posts/FzNghPbKk2s Jun 15 05:12:12 Hmm isnt it bad to have too many Activities though? for example i have a lesson activity, and then all the different types of questions have their own frags that get thrown in that activity Jun 15 05:12:46 The term "headless Fragment" makes me a sad panda. Jun 15 05:13:29 haha Jun 15 05:13:30 And also this: I've taken to suffixing my headless Fragments with "Helper" and other Fragments with "Fragment". Jun 15 05:13:37 Do you use this pattern, g00s? Jun 15 05:13:43 i've used headless fragments to good effect since 2012 Jun 15 05:13:54 or 2011 Jun 15 05:14:41 TacticalJoke, i remember why i needed the OnClick in Activity. Its because the OnClick removed the fragment, and the fragment can't have a method that removes itself! tada! Jun 15 05:15:21 where as this one doesen't remove the frag so maybe itll be okay Jun 15 05:16:04 NateRiver i'd recommend reading https://medium.com/google-developers/developing-for-android-introduction-5345b451567c Jun 15 05:16:22 see the bottom "VII ... Framework" Jun 15 05:16:40 Don't use android:onClick, terrible idea Jun 15 05:16:42 and then read that, especially "Activity" Jun 15 05:17:44 okay g00s, i did read all the training documentation on the android site about a month ago, but i skimmed some parts Jun 15 05:18:02 NateRiver this is different Jun 15 05:18:12 okay Jun 15 05:18:38 "Before fragments existed in the platform, architecting an application around multiple activities was fairly standard, but it is no longer necessary unless you need that specific design." Jun 15 05:19:09 the who series is more like 'effective android' or something Jun 15 05:19:14 *whole Jun 15 05:20:12 cool thanks Jun 15 05:28:19 There are mixed views here: http://www.reddit.com/r/androiddev/comments/2r1wcw/fragments_vs_activities/ Jun 15 05:33:12 TacticalJoke wonder what would have happened if it was titled 'fragments are anti-patterns' :D Jun 15 05:39:05 what do we use to make the app (ide) Jun 15 05:40:49 Agent_Smith1: d.android.com/sdk Jun 15 05:41:00 hey thepoosh Jun 15 05:41:04 hihi Jun 15 05:41:09 sup? Jun 15 05:41:19 hm not much Jun 15 05:41:29 ah so x# Jun 15 05:41:43 c# Jun 15 05:41:49 that is a good statement for the end of the day Jun 15 05:41:53 Agent_Smith1: ?? Jun 15 05:42:02 did I miss the begining of this conversation? Jun 15 05:42:11 i must have too :/ Jun 15 05:42:13 no i'm just asking what the best way to make the app is Jun 15 05:42:28 and android studio uses c# correct? Jun 15 05:42:31 <_rm> android studio, with java as the language Jun 15 05:42:32 no Jun 15 05:42:52 <_rm> you can use c# with xamarin or something Jun 15 05:42:57 java is the default language for Android Jun 15 05:43:06 what about JDeveloper Jun 15 05:43:22 you're right i was thinking about xamarin Jun 15 05:43:44 <_rm> Agent_Smith1: are you new to android development, or development in general? Jun 15 05:43:51 to android development Jun 15 05:44:13 <_rm> well, the fastest way to get started with android is with android studio Jun 15 05:44:26 +1 Jun 15 05:44:49 <_rm> there are numerous alternatives due to the open nature of the sdk, but that's your best bet Jun 15 05:46:00 Alternative IDEs? Or alternative DEs? Jun 15 05:46:26 <_rm> both? :) Jun 15 05:46:28 not sure what's a DE Jun 15 05:46:40 Agent_Smith1: What's an IDE? Jun 15 05:46:47 Desktop Environment. Jun 15 05:46:59 _rm: What alternatives are there to Android Studio? Jun 15 05:47:03 i use windows mostly Jun 15 05:47:11 I don't think there's any alternative worth mentioning, personally. Jun 15 05:47:18 Agent_Smith1: I meant "development environments". Jun 15 05:48:04 <_rm> TacticalJoke: eclipse i suppose Jun 15 05:48:10 <_rm> and i mean you could just use a text editor if you feel like it Jun 15 05:48:18 There is nothing really easy about Android Studio. You still have to code. Jun 15 05:48:31 that's kind of the point, isn't it ? Jun 15 05:49:02 bankai_, not really, there are some really nice frameworks that let you do 90% of the work in a GUI Jun 15 05:49:13 sounds awful Jun 15 05:49:24 like .net Jun 15 05:49:31 .NET is nothing like that. Jun 15 05:49:34 <_rm> you can do half of the coding in android studio by using completion and generated code :) Jun 15 05:49:41 ironic, now that Agent_Smith1 is free from the matrix, he chooses android development Jun 15 05:49:43 bankai_, hehe, they usually aren't all that efficient, but development is fast :) Jun 15 05:50:06 lol g00s Jun 15 05:50:28 TacticalJoke, visual studio has a pretty good WYSIWYG development GUI Jun 15 05:51:19 That's not 90% of the work of any serious project, though. Jun 15 05:51:22 It's a tiny proportion. Jun 15 05:51:50 TacticalJoke, for basic menu app, its pretty much all the work Jun 15 05:53:34 That's a "Hello, world" app. Jun 15 05:54:31 TacticalJoke: I missed what you said yesterday. I asked about returning an empty or invisible view in ResourceCursorTreeAdapter.newChildView. Jun 15 05:54:45 TacticalJoke, not really, html demonstrates that you can do a lot with just defining the interfaces (then these IDE's fill in the backend) Jun 15 05:54:46 Was that yesterday? Damn. Jun 15 05:54:56 Or maybe today for you Jun 15 05:55:58 barq: No idea; sorry. Jun 15 05:57:09 i.e. in visual studio you can layout a complete menu app (similar to a multipage web app) and then it'll create all the classes necessary (which you can choose to add code to) Jun 15 05:58:06 eh, it's all pretty crappy, and makes no notion of supporting g different screen sizes and orientations Jun 15 05:58:42 it's nice for basic things, but that's about it Jun 15 05:58:51 +1 Jun 15 05:59:13 ie, it's nice for someone who has no idea. how to lay shit out Jun 15 05:59:33 * pfn did that with visual Studio Jun 15 05:59:42 the results are less than satisfactory Jun 15 06:00:04 since I couldn't be bothered to learn winforms and shit Jun 15 06:00:40 pfn, I agree, I think most GUI's make things too simple, and end up taking people down a bad path, but I think its important to understand what expectations are out there Jun 15 06:01:03 TacticalJoke: It worked just doing setVisibility(View.GONE) and then returning that from newChildView. Jun 15 06:59:12 Do you ever use a "ViewHolder" class for listviews to prevent memory leaks? this article says i should, but idk... Jun 15 07:02:15 NateRiver, don't trust ideas that propose memory leaks, if they exist, they'll be corrected Jun 15 07:03:10 NateRiver, if you find your app is killed then perhaps you should try it out Jun 15 07:07:29 redengin so the android api will automatically correct a memory leak? Jun 15 07:17:13 NateRiver, java handles memory leaks, you should just assume that its handled Jun 15 07:18:26 O.o Jun 15 07:18:27 the android engine will kill your process if it takes up too much memory, but trying to figure out when thats going to happen inside your process is next to impossible Jun 15 07:18:34 Dafuq are you talking about. Jun 15 07:19:16 you shouldnt write code that lets memory leak Jun 15 07:19:30 the android engine Jun 15 07:19:39 Andgine Jun 15 07:20:30 how are you going to code a memory leak? certainly you can hold on to too many resources in java, but you shouldn't worry about that at the start Jun 15 07:21:06 redengin, it's very easy to create a memory leak with anonymous classes Jun 15 07:21:35 Which then results in OOM crashes Jun 15 07:21:40 its very easy to create memory leaks in java Jun 15 07:21:58 Also, wtf, ViewHolders aren't there to prevent memory leaks! Jun 15 07:22:53 Mavrik read first few bullet of this http://android.leocardz.com/multiple-layout-listview/ Jun 15 07:23:18 thats where i learned for the first time about the dangers of memoryleaks and viewholders Jun 15 07:23:28 well it's wrong Jun 15 07:23:32 Mavrik, ok, I'd call that rebinding, I use memory leak to refer to actual ram allocations Jun 15 07:24:47 redengin, ??? Jun 15 07:25:07 NateRiver, ViewHolders are there to prevent a findViewById calls everytime the view in listview is reused Jun 15 07:25:14 yessa Jun 15 07:25:25 Mavrik, at the hardware level there are memory leaks that software will never correct, I don't want to conflate the two Jun 15 07:25:53 NateRiver, since those calls can takeawhile, you wouldn't get a smooth 60fps scrolling due to findViewByIds taking too much time. So ViewHolder effectively caches references to the views inside each "row" of ListVIew Jun 15 07:26:12 NateRiver, also, I suggest you use RecyclerView, it's more modern, looks better, makes the VH pattern easier to use :) Jun 15 07:26:18 hi good morning all,im playing an mp4 file from resource.When activity on create i see a black background.How can i reduce that latency ? Jun 15 07:26:37 Mavrik okay thnaks Jun 15 07:27:20 sci-fic, make sure the MOOV atom is at the start of the mp4 file (it's usually called "fast start" or "optimize for web" in authoring software) Jun 15 07:28:48 can i use a recyclerview to have different types of content per row? what i mean is for example i want to have a rows filled with 1 item, and 1 row containing 3 items next to eachother. so not quite a gridview Jun 15 07:29:25 Yes, you can have multiple view types. Jun 15 07:29:35 You can even configure it to show a grid instead of rows Jun 15 07:29:56 mavrik i know that, but i want the list to display different amounts of items per row Jun 15 07:30:37 osxorgate, are you sure that makes a good user experience? Jun 15 07:30:50 like so: https://gist.github.com/xorgate/ee7d7b75eeaf478652db Jun 15 07:30:58 well i want differnt things to be shown Jun 15 07:31:14 a row with text, a row with 3 bitmaps Jun 15 07:32:34 Use viewtypes and make the bitmap row a linearlayout? Jun 15 07:32:39 osxorgate, what is the common user experience (i.e. a text row with 3 bitmaps)? Jun 15 07:34:40 redengin: i want to offer data related to a certain machine.. it can have specs like width/height and documents containing like manuals Jun 15 07:35:16 and we want the text per row, and the document thumbnails several per row Jun 15 07:35:18 I'd suggest you make a machine view then Jun 15 07:35:25 Do you guys usually refrain from sharing your app ideas or projects your working on in here? sometimes i want to, but i feel like if its a good one someone in here could easily make it faster and better than me Jun 15 07:35:41 yea Jun 15 07:35:48 they're gonna steal your billion dollar idea Jun 15 07:35:51 Like any of us has times for other peoples ideas :P Jun 15 07:35:52 NateRiver, I'm listening Jun 15 07:36:07 Mavrik: i have that now, with added logic to handle unknown amounts of bitmaps (clicking etc) but i would like to have an adapter handle this instead of doing it myself Jun 15 07:36:13 social network for ...HEADSETS Jun 15 07:36:15 wow Jun 15 07:36:24 btw, I'm also recruiting! :) Jun 15 07:36:38 theyre more like 100$ a month ideas xD Jun 15 07:36:39 dear God no Jun 15 07:36:43 Mavrik:let me make research ty Jun 15 07:37:28 NateRiver, I'll float you the first month if you finish my project :) Jun 15 07:37:48 osxorgate, hrmf, that's usually handled by the LayoutManager Jun 15 07:38:02 but didn't have to deal with it yet, so I can't help you much :/ Jun 15 07:39:40 redengin, thanks but i already got like 50 ideas in my own queue -.- Jun 15 07:40:20 NateRiver, ok, I Jun 15 07:40:20 Its like i get a new idea every day, but i can only finish one idea a mont Jun 15 07:40:40 NateRiver, ok, I'll bite, lets work one Jun 15 07:40:53 i want to upload video to youtube using youtube api v3 how can i do that ?? Jun 15 08:05:30 how can i get all row from a table in sqlite ? Jun 15 08:06:15 s9iper1 just do it ! Jun 15 08:15:04 g00s, i find getColumnindex to get from column but cannot find any example to retrieve as row ? Jun 15 08:16:59 android method does not override method from its superclass onprogressupdate why? http://pastebin.com/cBhiigJ7 Jun 15 08:17:23 check the parameters Jun 15 08:17:47 String, String, String Jun 15 08:17:51 that's what i need it to be Jun 15 08:18:08 i pass a string to onPostExecute Jun 15 08:18:18 thats my goal atleast, to pass the string so i can use it on my UI Jun 15 08:21:11 bubbely, you are missing a closing } after line 30 Jun 15 08:23:25 I wonder what the little guy in a bowler hat is meant to signify at the far-bottom right of AS Jun 15 08:24:07 click it :) Jun 15 08:24:32 I did, but why a guy in a bowler hat? Jun 15 08:24:42 why is he so sad? Jun 15 08:24:54 good question Jun 15 08:25:06 his neckbeard hasnt been approved yet Jun 15 08:26:16 how can i fetch all row data of a primary key in sqlite ? Jun 15 08:26:32 SELECT * FROM table_name; Jun 15 08:27:54 is there an option in mavenCentral or jCenter to get notified on updates for some packages> Jun 15 08:28:06 something like a subscription? that would be nice.. Jun 15 08:30:30 i want to upload video to youtube using youtube api v3 how can i do that ?? Jun 15 08:31:03 read the api docs... Jun 15 08:31:49 danijoo, this will give me the whole table but i want .. select * from table_name where ID = 1; i want the whole data in that column .. Jun 15 08:31:54 i did but dont know how to start ? its complicated Jun 15 08:32:10 s9iper1, than do that. whats the problem? Jun 15 08:33:28 i want to use query . how can i do that danijoo ?> Jun 15 08:34:21 s9iper1, the same way you would query for every row but with a where clause this time... Jun 15 08:34:44 ahhh i never used that Jun 15 08:38:39 read the docs :p Jun 15 08:38:43 or use an orm Jun 15 08:48:01 Hey, can u combine the simplegesturelistener with the scalegesturelistener? Jun 15 08:48:36 Im trying to implement a snapchat like caption. Where you can move/zoom/pan a view. Any tips along the way ? :> Jun 15 09:12:13 Hi, I'm new to android development. If I want to import a project from Git. After i download it I must go to "File ->import project" and than choose the project folder? Jun 15 09:12:38 get it directly from git osho0000 Jun 15 09:12:55 open studio and click get from vcs Jun 15 09:13:05 there put your url Jun 15 09:17:12 VCS-checkout form version control-> Git Jun 15 09:17:39 yeah Jun 15 09:31:59 before I import from Github i mast create a new blank projekt? Jun 15 09:37:53 no osho0000 Jun 15 09:39:09 hm but if i clik on Test it gives me the error Repository test has failed Jun 15 09:40:44 Hey guys...if I try and debug my App with android it says "Waiting for process: com.example.desk.sqlite" and then just comeback with Unfortunately the app stopped Jun 15 09:41:06 Is there some rights I have to give to be able to acces MySql Jun 15 09:41:22 ON the phone it says... waiting for debugger to attach to MySql Jun 15 09:41:31 for a short moment before crashing Jun 15 09:42:38 SQLite is waiting for Debugger to attach...crash Jun 15 09:43:12 Unfortunately. SQLite has stopped Jun 15 09:43:28 Breakpoints in my code never seems to fire : / Jun 15 09:44:13 calling your app sqlite is likely to lead to confusion... Jun 15 09:44:22 and I'm not sure what mysql has to do with anything on a phone Jun 15 09:44:44 Leeds, Well you can actually save data on the Database on the phone Jun 15 09:44:56 lol I have no idea why I named my APp that Jun 15 09:45:07 I probably wanted to say SQLiteTest or something like that Jun 15 09:49:43 Leeds, Yea sorry I confused myself with my app name... I meant SQLite` Jun 15 09:50:31 Im having these Ginkgo Biloba pills and it makes me feel verdy dazed and somewhot confused Jun 15 09:59:13 Exception Type: EXC_BAD_ACCESS (SIGABRT) Jun 15 09:59:17 android studio crash Jun 15 10:02:20 amongst microsoft visual studio and xcode, android studio is worst :) Jun 15 10:05:24 cool Jun 15 10:05:27 that'll solve your problem Jun 15 10:15:07 in retrofit, is it possible to have my service interface understand enums? like for example I wish to pass an enum to my method and have the method translate it to a string --> "all/first/last". Versus having to call the method with "all" Jun 15 10:15:29 so I could call the method with MyEnum.ALL Jun 15 10:18:42 when i try to run my app without internet it won't run. something about Maven? what going on? Jun 15 10:21:25 xorgate, yes, but you need to register a type adapter Jun 15 10:21:44 e.g. a small method that will do "if string == "all" then return MyEnum.ALL" Jun 15 10:21:49 there's a date example on the retrofit page Jun 15 10:22:18 Mavrik: the other way round i mean Jun 15 10:22:40 same Jun 15 10:22:49 the type adapters go both ways (they have write and read) Jun 15 10:23:25 NateRiver: provide stack trace Jun 15 10:24:05 Mavrik: this goes onto the RestAdapter.Builder() chain? Jun 15 10:24:25 xorgate, "Custom Gson adapter example" http://square.github.io/retrofit/ Jun 15 10:25:03 Mavrik: ok i will try from there thanks Jun 15 10:26:23 https://github.com/izacus/Promet/blob/master/promet/src/main/java/si/virag/promet/api/opendata/RoadTypeAdapter.java Jun 15 10:26:38 (you don't have to use a map) Jun 15 10:34:27 <_rm> what's the best way to do dependency injection for activities? Jun 15 10:34:38 <_rm> dagger? Jun 15 10:37:17 Hi guys, anyone got a spare 10 minutes or so? Having trouble flashing 5.1.1 onto my Nexus 5 Jun 15 10:37:42 Doing the Android boot screen (four coloured dots) for about 10 minutes now Jun 15 10:38:18 Monkeybznz did u wipe the caches? Jun 15 10:38:43 No, I flashed the recovery from the factory image and when I booted to it I was unable to select any wipes Jun 15 10:39:35 Just got that little Android with the red triangle, couldn't select anything from this screen, just had to reboot by holding power down Jun 15 10:40:13 Get into recovery again and wipe the caches Jun 15 10:41:23 Ok, rebooted to bootloader, selected recovery, now I just get the Android with the red triangle, I can't select anything Jun 15 10:42:18 Earlier I flashed TWRP then wiped dalvik and cache, and still got continuous boot screen Jun 15 10:46:23 Ok navigated further from that screen, formatting cache now. Can't do factory reset as got data I want to save Jun 15 11:29:08 i am using phone number as primary key if i enter same number twice its automatically increment the last digit of number. auto increment is not set..> Jun 15 11:29:09 ? Jun 15 11:32:10 how would you make something wrap content up until a certain point? Jun 15 11:41:21 i just put it in another layout with a set height Jun 15 11:41:28 god damn im good Jun 15 11:43:55 Anyone used scalegesturedetector with gesturedetector before? Jun 15 12:05:35 Hello, my app is one month old now, so it's no longer in Top New Free Jun 15 12:05:47 my downloads per day were reduced by 1k. Jun 15 12:06:52 paulo_: That's too bad. Jun 15 12:07:03 paulo_: Which app? Jun 15 12:07:06 basically everythings in a slope downwards Jun 15 12:07:24 I'm actually not sure I should say Jun 15 12:07:28 it's a niche app Jun 15 12:07:53 You'll get more downloads if you tell us. Jun 15 12:11:10 i'm passing the string scopeID through intent to another activity but i keep getting value can't be null at line #102 in the new activity it seems the value isn't been passed not sure why http://pastebin.com/PNgwraX4 Jun 15 12:14:47 paulo_: that's typical Jun 15 12:16:28 I panicked a little bit. Good thing my panic is making me implement requested features Jun 15 12:18:08 hert: Show the intent you are using to start the activity. Jun 15 12:18:38 how do I make the previous activity show? Jun 15 12:18:42 like pressing the back button Jun 15 12:18:57 surf2b1 line 65 - 68 Jun 15 12:22:23 hert: I don't see where scopeID is ever initialized. Jun 15 12:22:55 surf2b1 line 16 Jun 15 12:23:28 paste setUuidString method Jun 15 12:26:05 http://pastebin.com/6UEgzXEQ surf2b1 line 2 - 12 Jun 15 12:27:01 hert: so right after line 16 do scopeID = scope.getUuidString(); Jun 15 12:28:15 before super.onCreate? Jun 15 12:29:14 hert: in initViews method Jun 15 12:29:34 hert: scope.setUuidString(); scopeID = scope.getUuidString(); Jun 15 12:32:48 thanks surf2b1 no more crash Jun 15 12:32:59 yw Jun 15 12:35:25 Hey, im trying to implement a Snapchat like caption. Can u guys have a look? If ur familiar with androids touchevents Jun 15 12:35:25 canvas.scale(mScaleFactor, mScaleFactor); Jun 15 12:35:30 http://stackoverflow.com/questions/30787695/snapchat-like-caption-implementation Jun 15 12:41:30 hi guys, quick questions Jun 15 12:42:15 let's say that I'd like to sell media (videos, music, whatev) inside my android app, do I need to handle payment through Google Play billing or not? what's the current policy?' Jun 15 12:42:28 afaik you have to use Google IAP Jun 15 12:42:44 I know how it works on the iOS side, was wondering if it's the same with Google Jun 15 12:42:50 ah, ok Mavrik Jun 15 12:43:10 hi guys, I have an activity with an EditText on bottom of the screen, and a listView that occupy the rest of the height of the screen, the problem is that when I put the focus on the EditText, it hides the EditText so the user cannot see what he types Jun 15 12:43:20 especially if the business model will revolve around subscriptions, I guess the native API should cover it Jun 15 12:43:22 ok Jun 15 12:43:31 I find out that I have to put android:windowSoftInputMode="adjustPan" on the manifest file Jun 15 12:43:50 Marvik: do you know how big a cut does Google take from IAP transactions? Jun 15 12:43:59 which resolved the issue but only the first time the EditText got the focus Jun 15 12:45:45 ah ok, I found that the split it 70/30 Jun 15 12:45:49 thanks guys Jun 15 12:45:55 zoraj: is this in linearlayout? Jun 15 12:46:29 Ashiren, a RelativeLayout and then there is a big LinearLayout inside Jun 15 12:47:21 f everything about androids layout format. why they havent implemented some sort of an autolayout like ios is beyond me Jun 15 12:47:22 you try to play with linearlayout and weight Jun 15 12:54:14 when i search my trance library for the word love, like half the songs remain xD Jun 15 12:57:18 Ashiren, I did, but the EditText still hidden back of the keyboard Jun 15 12:57:42 :o Jun 15 13:01:17 hi i can run an app in debug mode and all works good but when i try to make release apk i get The resource string "some string" has been marked as translatable="false" [ExtraTranslation] Jun 15 13:01:49 how can i ignore those errors or fix them ? ;] Jun 15 13:02:00 i work with android studio Jun 15 13:02:36 zoraj is your issue that when the keyboard comes up it covers the edittext that you’re trying to type in? Jun 15 13:03:11 second_string, yes sir =) Jun 15 13:03:41 try putting the line Jun 15 13:03:41 android:windowSoftInputMode="adjustResize" Jun 15 13:03:52 within the activity tags in your androidmanifest.xml file Jun 15 13:06:48 I did that, but nothing has changed, android:windowSoftInputMode="adjustPan" was a better solution because first time the Edittext got focus with it, it works Jun 15 13:07:49 alright that was my next suggestion. If you wrap everything within a scrollview, using adjustresize will enable you to scroll and see the edittext as well Jun 15 13:09:35 hmm sound interesting, let me look at that, I've ever used to use ScrollView Jun 15 13:09:41 thanks Jun 15 13:11:31 sure. scrollviews can only have 1 child though, so you may have to wrap all of your content in a linearlayout and then in the scrollview Jun 15 13:11:44 like i said. f everything to do with androids terrible layouts Jun 15 13:14:34 Well my experience with Android so far is that a lot of weird stuff happens Jun 15 13:14:51 exactly Jun 15 13:15:34 Hello folks! Jun 15 13:15:46 "I love XML" - no one ever Jun 15 13:16:03 How do I access a layout from a different activity ? Jun 15 13:18:11 vemacs, Anko ! Jun 15 13:18:40 ircfox_, pass a Resources instance Jun 15 13:18:48 oh, layout Jun 15 13:18:50 pass a view Jun 15 13:19:07 /layoutinflater/context/resources Jun 15 13:20:00 vemacs: I need to access the parent layout from inside a fragment. Jun 15 13:20:28 what exactly do you need to do that for Jun 15 13:21:28 if you want to change the action bar color or something from a fragment, i would put something in the main activity that lets you do that, not directly attempt to reference the layout Jun 15 13:21:38 because I want to check if a LayoutContainer which is located in Main_Activity layout is loaded to see in which resolution my application is running. Jun 15 13:22:08 put a method in your main activity to return the numbers Jun 15 13:22:16 you can access a main activity instance from your fragment Jun 15 13:22:37 yes? how? Jun 15 13:23:10 put a method in your mainactivity Jun 15 13:23:17 int[] getResolution() Jun 15 13:23:38 in your fragment, ((MainActivity) getActivity()).getResolution() Jun 15 13:24:04 Oh... let me check it. But anyway. Lets say this method exists and it figures the containers is available, how I will access Main_activity layout from inside this other Fragment? Jun 15 13:24:15 IMO you shouldn't Jun 15 13:24:25 you should access the layout in the getResolution() method Jun 15 13:24:38 (it doesn't exist, you need to implement it) Jun 15 13:24:52 put getResolution() in your main activity, cast getActivity() to your main activity class and call getResolution() Jun 15 13:25:46 or create a second method to do whatever you want to do with the resolution also in main activity, and call that based on the return from getResolution Jun 15 13:26:12 either way, you shouldn't be accessing parent stuff from a fragment class Jun 15 13:26:16 it's just slightly unconventional Jun 15 13:26:26 Main activity has two fragments on its layout, one is a Fragment list and the other is a container, my problem is how do I load content into this container from the Fragment List. Jun 15 13:27:36 Say a user clicks on the first item on the fragment list and I want to load a given content into another fragment at the size of it. Jun 15 13:28:03 But both those Fragments are loaded from Main activity layout. Jun 15 13:28:43 second_string, the scrollview works =), thx Jun 15 13:28:51 FragmentManager.findFragmentById() then Jun 15 13:28:55 The content and event handlers from the fragment list are all managed inside it's ListFragment class. Jun 15 13:30:10 Oh, right. I don't need to use Main_activity anyway. I just find the Fragment, well, it is not a Fragment to be honest, it is s FrameLayout container. Jun 15 13:30:30 Ok, great. I think this is going to work. Jun 15 13:30:34 Let me test it. Jun 15 13:34:59 no worries. I've been fighting with layouts and resizing for days with my app Jun 15 13:35:04 still am fighting** actually Jun 15 13:35:23 hey. debugging with keep activities set to off. why does hitting the back button from an activity give me a brande new intent in its parent activity with none of the data it was originally supplied ith Jun 15 13:35:26 with* Jun 15 13:36:26 https://dl.dropboxusercontent.com/u/64175875/How%20is%20this%20done.png help pls? Jun 15 13:41:31 whats the q abs25 Jun 15 13:41:54 Agent_Smith1, the pic name Jun 15 13:42:48 Agent_Smith1, how do I get that icons on my game store listing too? Jun 15 13:43:05 I cant find it in developer console and I do have achiewments in game and leaderboards Jun 15 13:44:03 https://developers.google.com/games/services/android/achievements Jun 15 13:45:55 Agent_Smith1, I already have achievments and leaderboards working in my game Jun 15 13:45:56 abs25, in your dev console, it's in game services > [your app name] > Achievements Jun 15 13:46:06 search for game called Cubicle Jun 15 13:46:08 you have to click each achievement (which you already created) to set up an icon Jun 15 13:46:16 adq, I did Jun 15 13:46:21 game is already released guys Jun 15 13:46:25 and everything is working Jun 15 13:46:29 people are competing on highscore Jun 15 13:46:33 search for Cubicle Jun 15 13:46:33 so what's your problem? Jun 15 13:46:40 I cant see those icons on my sctore page Jun 15 13:47:19 I cant find it in developer console Jun 15 13:47:23 i just told you where you can find and see them Jun 15 13:47:36 now you're talking about "store page", which is not your dev console Jun 15 13:48:32 I'm not aware achievements and leaderboards gfx resources are listed in the store page Jun 15 13:49:26 adq, I am asking you of how to add those 2 icons on the store listing page Jun 15 13:49:28 what you show in your screenshot, is some generic icons Jun 15 13:49:37 yes its from google default icons Jun 15 13:49:46 that swing coopter game has on the store listing Jun 15 13:49:48 they auto-detect if your apk is using playgames Jun 15 13:49:48 and my game doesnt have Jun 15 13:49:56 and if you have sufficient amount of players, it starts displaying it, iirc Jun 15 13:49:58 so why didint they autodetect it for me? Jun 15 13:50:01 Hi all, I'm looking for the best solution for this question. http://stackoverflow.com/q/13310258/1723525 How can I make something reusable for this? Jun 15 13:51:40 abs25, a quick search you could have made, but i already told you: http://stackoverflow.com/a/20580178/1373568 Jun 15 13:51:55 how to get data in form of row ? for example i want to get all information about student having NIC no 2222 ? sqlite Jun 15 13:52:16 adq, now that makes 0 sense, but thanks for that Jun 15 13:52:17 abs25, and see the second post: bruno oliveira is working on play games Jun 15 13:52:28 so you can believe him Jun 15 13:52:55 abs25, what do you don't understand? Jun 15 13:53:16 I understand it its like badge you get only if feature is used frequently Jun 15 13:53:17 it makes 100% sense lol, despite agreeing on such a behavior is another story Jun 15 13:53:22 now it makes sense Jun 15 13:53:35 good :) Jun 15 13:54:32 tnx Jun 15 13:54:56 it was weird because I had over 400 achievments unlocked and over 50 people on leaderboards, I thought it should have shown up by now haha Jun 15 13:55:07 I guess I am still too small fish for that Jun 15 13:55:40 same, i've got two apps which use play games, no badge Jun 15 14:01:12 hi! I was looking at the files under /system/usage/0/ and here you can find some xml files, divided in 4 separate directory (yearly,monthly,weekly and daily), regarding the package usage (example here:http://pastebin.com/pQcnRRaY). Is there a document where I can find the meaning of the tags in the xml file? Also what's the format of "lastTimeActive" or "timeActive"? Jun 15 14:07:18 Log.d("retrieved " + list.size() + " markers"); i get a cannot resolve d(java.lang.String) but java.lang string is imported anyone ever had something like this Jun 15 14:08:53 you need to add a tag at the fronyt Jun 15 14:09:15 Log.d("DEBUG", "yadda" + yadda.size()); Jun 15 14:09:42 second_string, a question, if possible Jun 15 14:11:00 speak Jun 15 14:11:01 thanks Jun 15 14:11:11 ok Jun 15 14:11:58 second_string, I've created a power toggle widget but it appears wrong: http://imagebin.ca/v/24xGiX9O7unQ Jun 15 14:12:17 hert, you can put whatever you want where i wrote "DEBUG". it helps to put something unique to your issue so you can search for the term in the log Jun 15 14:12:45 second_string, this is the layout: http://pastebin.com/LUuuGZSp Jun 15 14:13:35 "appears wrong" Jun 15 14:13:38 what does that mean Jun 15 14:13:58 ok Jun 15 14:14:07 second_string, it's not well-formed Jun 15 14:14:40 freak widget Jun 15 14:14:57 not the icon, but layout, size Jun 15 14:15:21 is there any way of navigating up to an activity that isn’t necessarily the first in the stack without remaking it Jun 15 14:17:19 im not sure what it's supposed to look like Jun 15 14:17:26 http://developer.android.com/guide/topics/ui/controls/togglebutton.html Jun 15 14:17:26 this? Jun 15 14:17:30 second_string, compared: http://imagebin.ca/v/25KP2zZsoZBy Jun 15 14:17:42 second_string, compared to other widgets Jun 15 14:18:39 second_string, I can't use toggle buttons in widgets. They are not supported widgets (by AppWidget) Jun 15 14:19:21 Guys why wont my app even launch? -- > http://pastebin.com/BLCBkYAq Jun 15 14:19:32 I am using retrofit, and I am trying to modify a response before it gets used by the RestAdapter. Is it better to extend and modify OkClient directly, or is it better to modify like OkHttpClient, which OkClient can take as a constructor parameter? Jun 15 14:20:07 ohh toggle widget, my bad. ive never really dealt with them so i dont know how much help im going to be Jun 15 14:20:13 Ive added Log.i() into the code but I cant even find any logs ..The is the first thing that runs in the app : / Jun 15 14:20:22 cart_man: line #13 is wrong, you have todo that after setContentView of onCreate Jun 15 14:20:49 Ohhh my god...I cant believe i missed that Jun 15 14:20:51 sighhhhhhhhhhhh Jun 15 14:20:57 Entire day.....entire...day Jun 15 14:21:13 it shouldn't showed an error in stacktrace Jun 15 14:21:19 are those other three that you posted a picture of just stock widgets or did you create them Jun 15 14:21:28 printdatabase wouldn't crashed Jun 15 14:21:30 where is stack trace in Android Stdio? Jun 15 14:21:31 would've Jun 15 14:21:34 logcat Jun 15 14:25:13 canvs2321, Now it crashes on either line 49 or 50 Jun 15 14:25:15 any ideas? Jun 15 14:25:41 I dont get too much info on LogCat by the way : / Jun 15 14:25:57 Ohh wait... I had a search filter on Jun 15 14:26:53 cant count the number of times ive done that ^ Jun 15 14:27:24 Can the SQLite DB be accessed from outside the emulator ? Jun 15 14:27:48 I would like to see if my DB is structured right Jun 15 14:27:55 cart_man: do you know what sqlite is? Jun 15 14:28:24 well its the app that writes into a DB Jun 15 14:28:30 nope Jun 15 14:28:34 aww :( Jun 15 14:28:54 it's a database library that writes into a single file Jun 15 14:29:41 Leeds, Oh ok ..not too different right>? Jun 15 14:29:57 cart_man, the old crash if you left line #13 would have crashed @line 50 with a null exception cause textview would've been null Jun 15 14:30:00 MySQL also write into a file but not a single one Jun 15 14:32:09 guess maybe line 49 too, if your database code was trying to access anything null if not setup properly Jun 15 14:36:00 oh, he went bye-bye Jun 15 14:40:59 second_string, I've posted only a picture Jun 15 14:41:05 I've not created them Jun 15 14:42:45 For some weird reason : if (getFragmentManager().findFragmentById(R.id.detailContainer) != null) is not working even at larger displays where I am sure detailContainer is loaded. Jun 15 14:43:45 it must be something within your sizing. what overally layout do you have the widget sitting in Jun 15 14:44:19 second_string, this is the layout: http://pastebin.com/LUuuGZSp Jun 15 14:44:22 sorry for the paste Jun 15 14:44:48 second_string: the main_activity layout. Jun 15 14:45:14 thats just the layout of the widget itself right? Jun 15 14:45:26 second_string, yes Jun 15 14:46:05 yeah, and it's set to match parent. so when you're adding that widget to your entire screen's layout, how are you doing it? because it may be stretching and growing to fill whatever space its in Jun 15 14:46:13 second_string, it's a composed widget because google has not released particular APIs for it Jun 15 14:47:11 second_string, I've read this, also: https://android.googlesource.com/platform/packages/apps/Settings/+/ics-mr0-release/res/layout/widget.xml Jun 15 14:49:56 How can i get the angle, when I have two pointers on the screen? Jun 15 14:50:07 math Jun 15 14:50:23 no shit xD Jun 15 14:50:49 so what have you tried that isn't working? Jun 15 14:50:52 i know but how are you adding that widget to the screen Jun 15 14:51:14 second_string, sorry, I've made a mistake Jun 15 14:51:48 second_string, it's contained in Appwidget object Jun 15 14:53:00 second_string, container: http://pastebin.com/NQD2EVEw Jun 15 14:53:43 and where do you add that appwidget to the screen Jun 15 14:54:58 second_string, manifest: http://pastebin.com/TUNv68RV Jun 15 14:55:24 then, I add widget from widget list in the drawer (frag'n'drop) Jun 15 14:55:27 hi, please help me Jun 15 14:55:28 *drag Jun 15 14:55:46 can you use three.js on android to place a 3D object onto a mapping software like OSM or google maps? I know you can use it to place a COLLADA/.dae file into a 3D space, but im not sure if that includes maps or not Jun 15 14:55:52 I'm try to use google's autocomplete API but it's asking me to provide a LatLngBounds Jun 15 14:56:07 how can I find out the LatLngBounds of my city?? Jun 15 14:56:55 so you have no activity_main.xml or activity_unmount_usb or something within your layout folder? Jun 15 14:57:02 Why google do these things to us?? People are not born with LatLngBounds databases in their heads Jun 15 14:57:30 my life is falling apart because of Android SDK stupidity and over engineering Jun 15 14:58:19 second_string, ok, actually, widget is separated from activity Jun 15 14:58:44 second_string, I'd like to remove activity in future, it's a test, yet Jun 15 14:59:07 oh my god Jun 15 14:59:25 second_string, I should add a dialog when clicking over the widget Jun 15 14:59:42 i need to see the xml layout file of the activity you are adding the widget into Jun 15 14:59:51 it does not matter if its a temporary test Jun 15 14:59:51 second_string, actually if I open app from drawer , activeity appears Jun 15 15:00:07 but I'm changing all the app, it's in progress Jun 15 15:00:15 second_string, ah, ok Jun 15 15:00:16 what drawer are you speaking of. the panel on the left hand side that shows all your files? Jun 15 15:01:04 example: http://www.androidtapp.com/wp-content/uploads/2011/10/Android-4.0-Apps-and-Widgets-Drawer.jpg Jun 15 15:01:28 it's app screen in the drawer, but there is a widget screen in the drawer, also Jun 15 15:02:47 actually, I've created a widgetprovider.java file to make widget working, but it's almost empty , at the moment Jun 15 15:03:39 previously, there were no widgets in the app, but only an activity (now I always open the activity from app screen) Jun 15 15:05:05 alright i dont think im going to be able to even understand what your issue is much less help you, sorry Jun 15 15:09:44 second_string, sorry, i've posted some lines, but server has disconnected me Jun 15 15:10:02 example: http://www.androidtapp.com/wp-content/uploads/2011/10/Android-4.0-Apps-and-Widgets-Drawer.jpg Jun 15 15:10:03 it's app screen in the drawer, but there is a widget screen in the drawer, also Jun 15 15:10:03 actually, I've created a widgetprovider.java file to make widget working, but it's almost empty , at the momen Jun 15 15:10:18 previously, there were no widgets in the app, but only an activity (now I always open the activity from app screen) Jun 15 15:10:18 mainactivity has an own appactivity.java source file, but it's not related to a widget (I'll have to remove activity, in future) Jun 15 15:13:20 hi Jun 15 15:13:43 i'm trying to use this plugin in android-studio: https://github.com/JesusFreke/smali/wiki/smalidea Jun 15 15:14:01 i've imported the sources Jun 15 15:14:29 but i cannot setup the debugger: i created a 'remote' configuration but it seems it's not sufficient Jun 15 15:14:51 second_string, I've got two files in layout folder: main.xml (for the activity) and widget.xml Jun 15 15:14:55 (if i try to connect i get a 'unable to open debugger port') Jun 15 15:15:12 second_string, I've pastebinned widget.xml previously Jun 15 15:16:43 i already told you i dont really have time to help. I tried, im sorry im busy Jun 15 15:17:12 second_string, ok Jun 15 15:17:19 thanks, anyway Jun 15 15:26:20 <_Auron_> has anyone had issues with Galaxy S5 on 5.0.0 losing all of an app's data when pausing and resuming from, say, a camera intent? Jun 15 15:29:42 neat, dex methods counter is only a few lines of code to write Jun 15 15:29:46 * pfn integrates into plugin Jun 15 15:36:31 Should a RetrofitError trigger a subscription's onError? Jun 15 15:37:52 i have this code to store map markers in sqlite the makers draw a polygon on maps, i'm converting to store on parse instead but somehow only the last point created is being saved http://pastebin.com/RVpRHx7H i think a new point overrides the previous one Jun 15 15:44:43 So I had a few questions on how I would implement the logic for fragments in my app. I'm writing a newsgroup app and I have the content provider and sync adapter written but I didn't really know how I would implement the fragment part of the app. The plan is to have the newsgroups listed in a navigation drawer and when one is clicked, it will open a fragment that has a list of posts from that newsgroup. Would I just send the id of the ne Jun 15 16:33:15 having issues getting my android game running on androidTV's (googles review team) seems to can't get it to run... I can run it on my AVD and my local androidTV clone... anyone have a AndroidTV that can help run it and see? Jun 15 16:33:22 log.info("dex method count: " + ((bin * "*.dex" get) map dexMethodCount).sum) Jun 15 16:33:24 beautiful, heh Jun 15 16:35:17 <_Auron_> pfn: nice Jun 15 16:36:05 pfn: counting by package or total method count? Jun 15 16:36:12 total count Jun 15 16:36:23 dx can tell me by package when it fails Jun 15 16:37:18 head -c 92 /path/to/some.apk | tail -c 4 | hexdump -e '1/4 "%d\n"' Jun 15 16:37:51 s/some.apk/some.dex/ Jun 15 16:37:55 it's more useful as a watermark to determine when to prune libraries/proguard rules and switch to/from multidex Jun 15 16:38:08 yes, that wouldn't work on apk Jun 15 16:38:19 surf2b1, and yes, that's effectively what I'm doing Jun 15 16:38:24 this would: unzip -p $apk classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' Jun 15 16:46:33 so, has anyone actually played with RoboVM to bring their apps to iOS ? Jun 15 16:47:21 i am following this link its giving me data for one column in db what if i want the whole data in that row ? http://stackoverflow.com/questions/22169752/select-query-in-sqlite-android Jun 15 16:47:53 i am changing the column idex inside while loop but its getting null Jun 15 17:00:08 So I have a couple enum for units, used to change the way view is presented (20 miles versus 15 km, etc etc). Jun 15 17:00:36 Better to have conversions of these units in one class, or put conversions in units but refer to them from this class? Jun 15 17:03:27 I'm linking a shared library out of static (.a) libraries and object (.o) files with arm-linux-androideabi-g++ but when I look at the resulting shared (.so) library with nm all the symbols are hidden/local and not global, so when I try to link to that .so file, I get linker errors; anyone knows how to fix that? Jun 15 17:10:39 Hi! I am using retrofit from square. Is it necessary to use okhttp client with it? Jun 15 17:10:47 no Jun 15 17:13:54 Those comments on /r/androiddev about refactoring the 1,000-line class are so clueless. Passing a TextView reference to a background task as a default solution (instead of raising events)? Srsly? Jun 15 17:15:13 TacticalJoke: of course you must remember it takes at least a quorum of textviews to raise an event in unprecedendent android bus Jun 15 17:15:33 and this changes when you use compat even! Jun 15 17:17:09 JakeWharton Ok. I need to ask you one more question. In retrofit, if a response only contains only one key-value pair(JSON) for e.g. message:"successful", do I have to create a separate POJO for this also? Jun 15 17:21:57 Maybe they should pass a reference to the entire Activity. :D Jun 15 17:24:07 hi, why android is better than windows phone for developers? Jun 15 17:24:35 who said that? Jun 15 17:24:58 so windows phone is better? Jun 15 17:25:17 i'm looking for opinion Jun 15 17:25:18 zmxn: neither is better - just different - although visual studio is arguably a nicer IDE Jun 15 17:25:52 yes, but in windows phone is a lot of restrictions api Jun 15 17:26:22 in android, i can do what i want Jun 15 17:27:52 harryparry: yes Jun 15 17:28:22 any body wanna answer this https://stackoverflow.com/questions/30851317/select-data-according-to-row-in-sqlite Jun 15 17:29:17 JakeWharton Is there any downside in using JSON directly with retrofit or in general? Jun 15 17:33:47 Anyone of you guys have a good RotationGestureDetector laying around? Jun 15 17:33:50 any idea on how android decides exactly which ABI to use? I'm playing in an emulator that supports x86 and ARM via binary translation and I'd like to know how to control which version of a library gets loaded Jun 15 17:34:21 oh wow jake whartons here haha, I'm using your viewpagerindicator library literally right now Jun 15 17:39:43 Hi, I am facing a strangest of the problems with Android App and GCM. Jun 15 17:39:57 I have a small app that will get notifications from GCM when a friend changes his location. Jun 15 17:40:10 the app's registration ID is coming when we go GCM.register Jun 15 17:40:20 but when we send a push to GCM, it shows no devices are registered. Jun 15 17:40:34 I am using Azure Mobile to integrate with GCM and to try the push. Jun 15 17:40:47 any thoughts, help on how to debug this? Jun 15 17:41:19 hey.. http://pastebin.com/EeUpm6eW <- why is it i can't set big to response.body.string() when big is populated with the URL of my website (nor can i set big to a value at all? ) Jun 15 17:44:59 <_genuser_> hello people Jun 15 17:45:04 hi Jun 15 17:45:32 any thoughts on how to debug with gcm? can i see the registered devices on gcm? Jun 15 17:45:43 Am using Fresco to show facebook profilepicture in the navigation drawer. On some pages i see the placeholder image when the user is not sign in, but on some dont. Is this a caching issue? I have spent two hours review'ing the code, and it's the same code everywhere... Jun 15 17:49:01 bubbely, cause big isn't declared anywhere Jun 15 17:49:15 canvs2321: big is a global variable i have declared, ijust didnt includei ts declaration Jun 15 17:49:28 maybe you should Jun 15 17:49:36 ok Jun 15 17:49:38 as it's part of your question and you don't show it Jun 15 17:49:47 should i paste the entire source Jun 15 17:50:06 and that whole async looks like a waste Jun 15 17:50:07 I visit a website via desktop browser (but making small resolution), it loads mobile version of site. but when I load the same site via webview, it loads desktop version. Why it can be? Jun 15 17:50:29 canvs2321: im doing the async because .execute crashes Jun 15 17:50:54 http://pastebin.com/keRzfqhx Jun 15 17:51:13 bubbley: Is this the same problem as the other day? Jun 15 17:51:34 TacticalJoke: Almost. Ive gotten some progress done. Jun 15 17:51:50 If so, I think the answer was that you were trying to use 'big' before onProgress. Jun 15 17:51:51 Okay. Jun 15 17:51:58 TacticalJoke: I managed to implement 'onPostExecute' Jun 15 17:52:13 bubbely, that whole sendmessage method isn't gonna do what you expect Jun 15 17:52:29 TacticalJoke: But the URL wasnt downloaded before that happened Jun 15 17:52:30 it is starting the activity before your asynctask has probably even started Jun 15 17:52:33 You shouldn't be using both AsyncTask and Call.enquire. Jun 15 17:52:39 enqueue* Jun 15 17:52:45 canvs2321: ? Jun 15 17:53:20 canvs2321: because its giving you the binary out of the image data Jun 15 17:53:36 huh? Jun 15 17:53:49 err Jun 15 17:53:50 bitkiller: Jun 15 17:53:53 ah i was referencing bubbley Jun 15 17:53:58 bubbely: Jun 15 17:54:09 yeah sorry the coffee has yet to take effect Jun 15 17:54:22 :) Jun 15 17:54:32 lasserix: hey Jun 15 17:54:35 You need Call.enqueue and Handler.post. Jun 15 17:54:42 Not AsyncTask. Jun 15 17:56:29 s9iper1: did you figure out your sqlite problem? Jun 15 17:56:39 s9iper1: in short, use the overload the cvs to put in your values Jun 15 17:57:37 or string array, i mean Jun 15 17:57:38 TacticalJoke: Ok. help? Jun 15 17:57:54 I'm mobile and limited. Jun 15 17:58:02 s9iper1: you ALWAYS have to wrap it in an array Jun 15 17:58:13 err, for doing the query the right way Jun 15 17:59:11 lasserix, no i didnot Jun 15 17:59:12 You could use AsyncTask with Call.execute. Not the best design, but probably easier for you to get. Jun 15 17:59:22 nm disregard anything i saw for next hour Jun 15 17:59:59 lasserix, can i get any doc for that ? Jun 15 18:00:51 s9iper1: show me your latest code for the query call Jun 15 18:01:00 pastebin it somewhere Jun 15 18:01:08 its on stackoverflow Jun 15 18:01:13 oh Jun 15 18:01:43 wait a mint Jun 15 18:02:07 lasserix, http://stackoverflow.com/questions/30851317/select-data-according-to-row-in-sqlite Jun 15 18:05:35 hey TacticalJoke: if i try call.execute with my asynctask, i manage to 'download' the page but it crashes the app? Jun 15 18:05:49 also make sure to see that your cursor isn't null Jun 15 18:05:56 Look at the stack trace. Jun 15 18:05:57 java.lang.IllegalStateException: Could not execute method for android:onClick Jun 15 18:06:53 hm, now it didnt crash Jun 15 18:25:07 I can't remember off the top of my head: does a query with no rows return a cursor? Jun 15 18:25:21 does an sqlitedatabase Jun 15 18:27:49 Could someone help me fix this xml (RelativeLayout) : http://imagebin.ca/v/25LcEmQD5mah in order to obtain something as this image : https://gist.github.com/anonymous/08669fb64c960af11756 Jun 15 18:30:29 ircfox is the button a constant size? Jun 15 18:30:55 lasserix: yes, relative to the text size which is fix Jun 15 18:31:09 can you show picture? Jun 15 18:31:26 http://imagebin.ca/v/25LcEmQD5mah Jun 15 18:31:26 of what it is supposed to look like? Jun 15 18:32:36 It's two line content with a button in the end and horizontally centered. Jun 15 18:32:47 as the image Jun 15 18:33:05 ircfox most of the time with simple things like this you can turn it into simpler framelayout Jun 15 18:33:10 by using margin to offset Jun 15 18:33:21 much faster Jun 15 18:33:42 with a cardview or a framelayout, how do I tell something to only take up half the view? Jun 15 18:33:55 you dont Jun 15 18:34:01 unless you know parents size Jun 15 18:34:13 yes, but I have other layout, which uses one line and I'd like to keep the same standard. Jun 15 18:34:32 so how do you do it? Jun 15 18:35:01 change them both its faster ;p Jun 15 18:35:20 put it in another container in which you can control relative sizes Jun 15 18:35:25 I think you'd have to use LinearLayout or something. Jun 15 18:35:29 Ya. Jun 15 18:35:41 ircfox, almost http://pastebin.com/ADQ4LDVv Jun 15 18:36:51 ircfox, ahh remove layout_alignBaseline from editText2 Jun 15 18:37:07 ircfox: to fix alignBaseline to the button REGISTER Jun 15 18:38:17 asimas: Cool, thank you man, it's perfect! :D Jun 15 18:38:19 lasserix im pretty sure it returns a cursor just w/o any rows, so as soon as you do something with it it either null pointers or throws some exception about getcount being zero Jun 15 18:38:33 second_string: thanks Jun 15 18:39:06 lasserix, it always returns a cursor. Just call moveToFirst to see if it has any rows. Jun 15 18:39:19 Hey guys, I don't understand, can all of my apps have the same company identifier? Jun 15 18:39:30 Currently, say, it's ryrra.com. Can i Use ryrra.com in the next one? Jun 15 18:39:53 Do you mean "application ID"? Jun 15 18:39:57 booya.ryrra.com whatsup.ryrra.com dmys.ryrra.com Jun 15 18:40:14 "Company Domain", when you create a new project with Android Studio. Jun 15 18:40:18 jennifer: take a hint from the as wizard, the company identifer is a particle of the application path id Jun 15 18:40:25 yeah Jun 15 18:40:30 As wizard? Jun 15 18:40:39 same as you mention Jun 15 18:40:46 oh Jun 15 18:40:54 Wait. Jun 15 18:41:00 I see. Jun 15 18:41:12 It's automatic so I can have the same company name but application name will be appended for me. I had not noticed. Jun 15 18:41:58 TacticalJoke: I have achieved success. Jun 15 18:42:06 Note that using a company name as part of a package name is arbitrary. Jun 15 18:42:15 (fyi) Jun 15 18:42:30 well each ap id has to be unique but that you can suffuse it by making it scoped with the . operator Jun 15 18:42:37 bubbley: Great success! Jun 15 18:42:47 Could anyone advise on whether it's a good idea to use a static list inside an activity? This activity has a list and a viewpager whose adapters share the same items. Furthermore the activity can spawn a fragment that needs the items. Is it a good idea to use a static list here? Or should it be a field of the activity and I'd pass them around? Jun 15 18:42:48 if it becomes a problem people are trying to steal your company name, that is probably a good thing. Jun 15 18:43:09 My app ID is my initials and other stuff. Jun 15 18:43:09 TacticalJoke: My solution was to call a function outside of my async task to updaet the ui, so i just added a UpdateUI function and called it Jun 15 18:43:10 asimas: static list of waht? Jun 15 18:43:11 I see. Jun 15 18:43:21 lasserix, static list of custom parcelables Jun 15 18:43:53 i think they contain no context, so unless they are not huge it is a good thing Jun 15 18:44:13 bubbley: You call that from onPostExecute? Jun 15 18:45:09 lasserix, good point. I think it can make everything a lot easier. Thanks :) Jun 15 18:50:06 Is anyone here a developer? Jun 15 18:50:13 Like, paid. Jun 15 18:50:50 for open source? Jun 15 18:50:53 sure Jun 15 18:51:21 most of us are developers Jun 15 18:51:26 and many of us get paid to do it Jun 15 18:52:35 whyyyyyyyy isnt my actionbar showing up ugh Jun 15 18:57:02 Hey guys! Does anyone know whether I can use "${applicationId}" in all my resource xml files? (account-authenticator in particular) Jun 15 18:58:39 pehlert: I kinda don't think so. not certain about that though. the only thing like that that I've worked on uses @string values, generated with resValue in gradle. Jun 15 18:59:32 http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger - I found this, but it only talks about manifests if I understand correctly Jun 15 19:00:09 It does work in my Manifest file, but I somehow need to make it available in other files, too :-/ Jun 15 19:00:10 yeah. manifests are pretty specific. xml/ files _are_ pre-processed, but I don't think they handle placeholders, just @whatever/id values. Jun 15 19:00:21 damn Jun 15 19:00:45 ¯\_(ツ)_/¯ give it a try, it's also possible they've added that since we tackled it at work. Jun 15 19:01:51 groxx: It doesn't seem to work, but I don't know how I can ensure that this is really the issue Jun 15 19:02:28 Wow, someone on reddit actually suggested passing the Activity reference reference the AsyncTask. Jun 15 19:02:37 I was joking about that earlier. Jun 15 19:02:47 ? Jun 15 19:06:31 On /r/androiddev (sorry, hard to link on mobile). Jun 15 19:07:46 by odins raven it is kinda really distracting how sleep depravation can induce hallucinations in the code Jun 15 19:08:33 each character becoming a little distinct person unto themselves, yet motivated by one common desire Jun 15 19:09:16 take down the coder! Jun 15 19:09:17 :) Jun 15 19:09:49 lasserix: heh. I haven't had that, but all my dreams where I've been coding / reading code have been full of _terrible_ code. Jun 15 19:10:05 ahh sorry to hear Jun 15 19:10:27 not really as nightmares, just "wtf is this, this is horrible" Jun 15 19:10:44 seems to happen more when I read more libraries... hmmm Jun 15 19:11:52 i find it usually very difficult to discern the glyphs themselves in dreams, when i try to recall later, literally like they are being sucked back into my unconcious Jun 15 19:12:55 though i imagine it would be a kind of miraclous feeling to see "good, clean code" for some problem you've been working on you unfold in front of you like a strand of dna unfolding into a letter Jun 15 19:14:08 I had a dream recently about tightly coupled code. Jun 15 19:14:09 in the same way some people say they figure out a math problem after working really hard and being frustrated, then taking a nap for a bit Jun 15 19:14:15 Was a nightmare, in fact. Jun 15 19:14:57 Let's do an informal poll: are most of the dreams coders have nightmares, what contrast scheme is your foreground to background? ;p Jun 15 19:20:20 I'm linking a shared library out of static (.a) libraries and object (.o) files with arm-linux-androideabi-g++ but when I look at the resulting shared (.so) library with nm all the symbols are hidden/local and not global, so when I try to link to that .so file, I get linker errors; anyone knows how to fix that? Jun 15 19:20:31 edges on the gc tree go one way only right? unless they are explicitly double connected? Jun 15 19:21:12 groxx: The resValue hint was priceless. Thank you! Jun 15 19:21:46 pehlert: I wish they'd document it more, but yeah, it's really handy :) Jun 15 19:22:36 pehlert: since it's non-obvious: if you are using strings, I'd recommend surrounding them with quotes by default. otherwise it has problems if you use a string that's also a number :| Jun 15 19:24:28 groxx: I've done that already, I think that was the way they've done it in the one example I've found Jun 15 19:24:37 How can I have multiple selection args in a db.query? db.query(db, projection, selection, selectionArgs, groupBy, null, orderBy); and selectionArgs = new String[] {"a","b","c","d"}. I get cannot bind argument at index 4 because the index is out of range. The statement has 1 parameters. Jun 15 19:25:35 Do I need to use a raw query? Jun 15 19:25:46 barq1: is that intended as "select a, b, c, d from ..."? Jun 15 19:26:21 No, select * from table where column = a or b or c or d Jun 15 19:26:48 barq1, can you post the selection string? Jun 15 19:27:15 barq1: you probably want something like this: select * from table where column IN (?, ?, ?, ?) Jun 15 19:27:40 you can also do select * from table where column = ? or column = ? or column = ? or column = ? Jun 15 19:27:55 (and you shouldn't be doing "select *" unless you really do want everything) Jun 15 19:28:14 it's better to do select some_col, another_col from table where ... Jun 15 19:28:52 pabs: The selection = "column = ?" Jun 15 19:30:27 barq1: selection should be "column IN (?, ?, ?, ?)" Jun 15 19:30:35 OK, thank you Jun 15 19:30:42 barq1: or "column = ? or column = ? or column = ? or column = ?" Jun 15 19:30:51 barq1: one ? for each value in selectionArgs Jun 15 19:31:06 barq1: then selectionArgs should be the value you want at each ? in the selection string Jun 15 19:31:23 makes sense Jun 15 19:32:07 I need to run the query 4x instead, though, since I am overriding query. That was where the underlying mistake was. Jun 15 19:32:48 ok Jun 15 19:33:15 But that helped find the mistake, thank you. Jun 15 19:34:13 sure thing! Jun 15 19:37:13 ahh view tag are perfect for _perfect_ for holding view state Jun 15 19:37:18 such an idiot Jun 15 19:37:21 why use an enum Jun 15 19:37:24 or anything else Jun 15 19:37:35 just throw a const string into the view, pull it it out to validate its there or not Jun 15 19:38:03 *holding view state -> verifying a view is in a particular state Jun 15 19:48:34 pabs: if you do lots of querys make sure to look up optimizing your db for query using ntfs3 Jun 15 19:48:42 or whatever it is (indexing the tables) Jun 15 19:54:16 This is a really stupid question, but in regards to BroadcastReceivers, is it possible to put a logical statement in the onReceive function to initiate an intent to start an activity? Say, a while or if/else statement Jun 15 20:04:10 sipdude: broadcast receivers prevent you from doing so because it's _almost never_ a good idea. you don't control when the message is received, it could be delayed who-knows-how-long. Jun 15 20:05:50 there are ways around it, but be certain that you understand why it's the best solution Jun 15 20:06:46 that would explain why then Jun 15 20:13:36 Is there a way to force the user to update his app other than showing him a notification and send an intent to the store? Jun 15 20:14:02 no Jun 15 20:14:24 groxx: If I need to listen to the SMS inbox and start an activity based on receiving SMS from a specific number, which I need a logical statement to initiate, do you think a ContentProvider would work for that? Jun 15 20:15:32 sipdude: nah. `context.getApplicationContext().startActivity` will work :) just be aware that you could be popping up an activity over _anything_ that happens to be happening at that time - a phone call, navigation, login screens, whatever. Jun 15 20:18:54 groxx: thank you again. You've been very helpful :) Jun 15 20:18:55 users might dont like that Jun 15 20:18:58 i woudnt Jun 15 20:33:01 Hi guys Jun 15 20:33:27 Any good tool to design android mockups? Jun 15 20:33:50 pencil. paper. Jun 15 20:35:39 blood Jun 15 20:36:13 Screenshots of existing applications and use Paint or another application to manipulate images Jun 15 20:38:28 thanks! Jun 15 20:42:03 Hello all ! Jun 15 20:42:15 sephohttps://www.fluidui.com/ Jun 15 20:42:21 sepho ^ Jun 15 20:44:07 <_genuser_> I still have sample code form api 7/8, etc. etc. Jun 15 20:44:31 <_genuser_> any reason to not delete from the android-sdk folder? Jun 15 20:44:40 <_genuser_> I don't see in sdk manager. Jun 15 20:48:40 is it fine to ask dev questions here, or this place is only for contributions? Jun 15 20:50:45 It's only for dev questions. Theoretically, Jun 15 20:58:39 I'm trying to write an app that will checkin to a remote server and repeat that continuously until the remote server says "stop". This is my first android app and I'm not quite sure the phrasing that will get me to google the right things. I'm not sure if it's a background task, or a thread or what. Right now I'm able to play the video on loop, but I'm not sure how to do a second thing (check into the server) and then Jun 15 20:58:39 control the VideoView from there. Jun 15 20:59:26 look for AsyncTask. eventually Service Jun 15 20:59:33 videoview is based on mediplayer and videosurface Jun 15 20:59:52 it handles the async for you, just use prepareAsync and set an asyncListener Jun 15 21:00:05 *onPrepareASyncCompleteListener Jun 15 21:00:13 Ashiren thanks! Lots to search for now Jun 15 21:00:21 lasserix too :) Jun 15 21:00:22 believe also, videoview has a restart function Jun 15 21:00:29 don't use background threading Jun 15 21:00:40 if you are just playing a video Jun 15 21:01:15 you can literally use onCompletionListener and onPrepareASyncCompeleteListener and OnErrorListener (MediaPlayer, or videoView can't rem which) Jun 15 21:01:19 That's all the app does, checkin to a server, play a video on repeat until it tells you to stop Jun 15 21:01:39 and as long as they are not errors, go from onComplete to onPrepeareASync complete by first initializing and then restarting Jun 15 21:01:53 issackelly how does it tell you to stop? Jun 15 21:02:00 then you'll probably get an error Jun 15 21:02:07 in whatever case, you'll have to stop so Jun 15 21:02:17 just using those 5 classes you can do all you need Jun 15 21:02:24 no background threading or whatever Jun 15 21:02:34 *no explicit background threading Jun 15 21:02:34 state machine: thing is stopped -> checkin to server -> server says "go" or "stop" -> while server says go, play video on loop, when server says stop, stop playing it Jun 15 21:02:49 issackelly: go means play video Jun 15 21:03:12 well that would be kinda stupid, cause unless it caches it for you (don't remember if it does) Jun 15 21:03:22 you will download it a thousand times, Jun 15 21:04:00 lasserix we can assume the video is on local storage Jun 15 21:04:06 but I could also turn repeat on Jun 15 21:04:09 so subclass videoview and add initialize restart stop, Jun 15 21:04:36 then use an async task to download the video, then use another async class to get your answer from the server Jun 15 21:11:09 howdy Jun 15 21:12:04 What method would you recommend for resizing images by pinching? USe https://github.com/chrisbanes/PhotoView ? Or something else? Jun 15 21:12:47 barq1: you could just set a scalegesturelistener to the view and scale the view matrix Jun 15 21:13:13 scalegesturedetector Jun 15 21:15:06 Does that allow dragging the image and zooming? Jun 15 21:15:45 :| Jun 15 21:15:48 just use PhotoView Jun 15 21:15:50 sheez Jun 15 21:16:42 What are the benefits of PhotoView as opposed to scalegesturedetector Napalm? Jun 15 21:16:55 it does everything you want Jun 15 21:17:01 did you not even look at the source of PhotoView Jun 15 21:17:07 it uses a ScaleGestureDetector Jun 15 21:20:18 How difficult is it to implement it without the lib? Jun 15 21:23:48 Is there a good tutorial for installing external libraries? I want to use jedis, I'm using Android Studio, so I'm by default trying to figure out gradle, and what everything in gradle does and means and how it looks for libraries. Jun 15 21:25:02 issackelly: it uses repositories Jun 15 21:25:44 issackelly: https://docs.gradle.org/current/userguide/dependency_management.html Jun 15 21:26:02 barq1: no it shouldnt be difficult Jun 15 21:26:32 How long do you think it would take? Jun 15 21:30:56 Napalm thanks Jun 15 21:34:03 barq1: give me 10 minutes Jun 15 21:34:39 If it takes 10m you don't need a lib. Jun 15 21:35:34 It takes a bit more ;) Jun 15 21:37:00 Does anyone have recomendation for UI look of something responsible for returning to the top of the scrollview? Jun 15 21:37:28 ie, some webpages have like an up arrow at the bottom centered or offset from the center and returns you and only appears once you've started scrolling down Jun 15 21:37:46 Has anyone seen something like this in android that is espicially well done? Jun 15 21:39:48 Beuller, beulller beuuulllleeeerrrrrrrRR? Jun 15 21:39:58 lasserix: whats your minSdkVersion? Jun 15 21:40:07 14/15 Jun 15 21:40:11 14 Jun 15 21:40:34 iOS's "tap the status bar" approach is still the best, imo :| doesn't work with a mouse, but great for a touchscreen. Jun 15 21:40:46 probably patented or something though Jun 15 21:40:47 status bar at the top? Jun 15 21:40:54 lasserix: shame its not 18.. you can use the ViewOverlay to do it Jun 15 21:41:22 ? Jun 15 21:41:42 yeah that is how I do translucent bar for those Jun 15 21:41:42 ugh. why is that on View? Jun 15 21:41:54 lasserix: just make a FrameLayout that shows/hides an ImageView with a gravity of bottom center with a click listener and a callback Jun 15 21:42:32 groxx: more this exactly reason? any view can have a series of overlays Jun 15 21:42:49 therefore every view that doesn't use it pays for the memory and complexity to support it. Jun 15 21:43:16 groxx: check how its implemented before you go shouting your mouth off ;) Jun 15 21:43:17 hence "why is it in the most-basic view class, the one which you cannot simplify because you cannot break the inheritance hierarchy"? Jun 15 21:44:08 what about a FAB? Jun 15 21:44:34 that appears after scrollY > halfscreen and such that the view has a bottom margin > fab height ? Jun 15 21:44:44 groxx: but yea, I do agree.. View has become massive. Bigger than it should be.. it should use composition or something else to seperate te responsibility of its components Jun 15 21:45:00 Napalm: ok, so it's yet another field, and a bunch of if-not-null checks. put that in "SlightlyMoreComplexView" or something, not View. it's just another layer of stuff that means you can't make a light-weight view. Jun 15 21:47:02 lasserix: extend a ScrollView then? or just add a Bahaviour so CoordinatorLayout can manage it Jun 15 21:49:13 hey groxx Napalm https://imgflip.com/i/mxrdu Jun 15 21:49:22 heh Jun 15 21:49:31 Napalm: yeah already have scroll observer so just add one and wala Jun 15 21:51:18 so is there at least a duo-consensus on using a fab for this purpose? Jun 15 21:51:39 walla... how is it that people are so bad at spelling :p Jun 15 21:52:03 lasserix: fab for what purpose? Jun 15 21:52:41 pfn: 4 hours of sleep since friday? Jun 15 21:52:44 generally I'd say just use a fast-scroller. allows for more control. not always the best option / an option, of course Jun 15 21:53:03 plus i was thinking of koala bears from down under in walla walla for some reason :) Jun 15 21:53:18 groxx it's never that long Jun 15 21:53:32 barq1: lets give this a go then.. Jun 15 21:53:34 IMO if they can get to the top in like a single fling, it probably doesn't matter then Jun 15 21:53:46 just curious, how do you give scrollview fast enabled powerup? Jun 15 21:54:15 Napalm: sure Jun 15 21:54:49 yeah takes about 1.2 "intent to fling" to get to top Jun 15 21:54:54 from very bottom Jun 15 21:55:11 groxx: is there a way to decrease this ie enable faster flinging? Jun 15 21:55:19 ohh as cute as you are you're no google Jun 15 21:56:07 dunno. probably by replacing the scroller, but I don't totally grok scrollers :| Jun 15 21:57:14 * lasserix was lazily watching early morning late night television and saw what must have been one of groxx's cousins: http://www.joblo.com/images_arrownews/trollltop15.jpg Jun 15 21:57:21 groxx ahh ok Jun 15 21:58:59 groxx unless that picture depicated an animal not mammal, but i was going to guess mammal Jun 15 22:03:11 actually i think i like yours much better Jun 15 22:03:52 did you see ? https://github.com/nolanlawson/SuperSaiyanScrollView/ Jun 15 22:04:18 https://plus.google.com/+SimonLightfoot/posts/TT1yuzkg8vG < boosting gradle performance Jun 15 22:05:31 and https://github.com/nolanlawson/CustomFastScrollViewDemo Jun 15 22:09:48 <_genuser_> damnit, 32-bit eclipse and 64-bit jre. why can't 32-bit eclipse run using 64-bit jre. Jun 15 22:12:54 <_genuser_> does androidstudio have any problems with jre 1.8 64-bit? Jun 15 22:12:57 <_genuser_> I wouldn't think so. Jun 15 22:13:15 <_genuser_> I would think going forward everything is support 64-bit Jun 15 22:19:41 <_genuser_> you guys are all so quiet. Jun 15 22:23:13 i was getting emotional after seeing an app i made charging 150 dollars (everything from scratch on my end) has gotten like >10k downloads Jun 15 22:24:04 _genuser_: no problems here so far Jun 15 22:30:12 Hey guys I need help. Jun 15 22:30:23 hey all, i'm trying to use StickyRecyclerHeaders but i'm getting an error about StickyRecyclerHeadersTouchListener is not abstract and does not override abstract method onRequestDisallowInterceptTouchEvent(boolean) in OnItemTouchListener Jun 15 22:30:41 On Udacity, Google asked me if I have any experience in java, if I have ever built a website for multiple screens or a mobile app (on any platform) and if I know how to use github. Jun 15 22:30:44 I said yes to all but java. Jun 15 22:31:00 Can I wing learning java with the official course on Udacity? Jun 15 22:31:13 Sure, Jun 15 22:31:16 Or do I really need to learn java first? Jun 15 22:31:25 every person's iq fluctuates at least 5 points a day Jun 15 22:31:41 how familiar are you with programming at all? Jun 15 22:31:52 do you know how to do a loop? Jun 15 22:31:59 do you know why that sentence is a bad pun? Jun 15 22:32:05 Lol Jun 15 22:32:18 if you said no to both then no you'll probably be struggling to keep up Jun 15 22:32:22 lasserix, pretty familiar, I have a background from C / C++ and Python that I learned in school. Jun 15 22:32:43 I've made a web server, a pinger and a UDP tracker with Python. Jun 15 22:32:46 Um. Jun 15 22:32:58 I think those are the major projects I did during my grad networking course last semester or two ago. Jun 15 22:33:11 tracer* Jun 15 22:33:16 You probably don't need to know Java first. Jun 15 22:33:25 It helps. Jun 15 22:33:36 Hm, how hard is it to pick up in a day? Jun 15 22:33:47 "If you have experience in another object-oriented programming language and you're willing to pick up Java, then you should be prepared to take this course. You may want to check out our Intro to Java course if you need a refresher." Jun 15 22:33:50 No one knows a programming language. Jun 15 22:33:54 :( The whole "refresher" is a discouraging thing. Jun 15 22:33:57 I mean you do but like there is always more to learn. Jun 15 22:34:05 That's true.. Jun 15 22:34:08 I learn as I go. Jun 15 22:34:15 I guess I'll just hit next and wing it as I go. Jun 15 22:35:14 andreyonadam: and how many really understand, i mean like oh shit the wasps are turning into wormholes and what is that golden light gleaming from that triangle's peak? oh! that must be the golden rule of programming! let us go find out Jun 15 22:35:17 Okay, thank you guys. :) Jun 15 22:35:30 jennifer: don't wing it Jun 15 22:35:36 lasserix, why not? Jun 15 22:35:52 try to seperate what is about java that you do not understand, and look up those on youtube until you feel confident winging it Jun 15 22:36:02 that way you at least know what you don't about android and java, and can keep up Jun 15 22:36:02 https://www.udacity.com/course/intro-to-java-programming--cs046 It's 4 months to learn. That's too long to learn. :( Jun 15 22:36:19 Like i said, do you know what loops are? Jun 15 22:36:25 Yes. Jun 15 22:36:28 I do know what loops are. Jun 15 22:36:35 do you know why string immutability is everyone's best friend and worst enemy? Jun 15 22:36:40 I even know it on a lower language level. Jun 15 22:36:44 (what i am talking about at all)? Jun 15 22:36:46 Sometimes I do. Jun 15 22:36:56 if you know those things you'll probably be easily able to read java after a little bit Jun 15 22:37:00 I don't know. I learn better by trying things out. I mean you can't just jump into professional development but that doesn't mean you can't start a project. Jun 15 22:37:40 String immutability is something that I know a lot of people don't have to know a lot in-depth, unless you want to get into programming language theory. Jun 15 22:37:41 its very verbose, so then yeah winging it will not hold you back, but spend any time looking up some java-specific term or principles are (particularly like, what an interface is, and how java garbage colleciton works) Jun 15 22:37:46 Insofar as practicability. Jun 15 22:37:54 Oh. Jun 15 22:37:59 I won't have to worry about computer science terms like gc. Jun 15 22:38:07 no Jun 15 22:38:09 you will Jun 15 22:38:11 in android Jun 15 22:38:18 because all things have lifecycles Jun 15 22:38:22 anyways Jun 15 22:38:23 http://www.cubrid.org/blog/dev-platform/understanding-java-garbage-collection/ Jun 15 22:38:26 Okay watch this. Jun 15 22:38:29 is very short article explains it well Jun 15 22:39:02 Okay got it. Jun 15 22:39:12 So Java sucks, gc isn't automatic. Jun 15 22:39:17 no Jun 15 22:39:19 it is Jun 15 22:39:23 that's the whole point Jun 15 22:39:37 Java does not explicitly specify a memory and remove it in the program code. Some people sets the relevant object to null or use System.gc() method to remove the memory explicitly. Setting it to null is not a big deal, but calling System.gc() method will affect the system performance drastically, and must not be carried out. (Thankfully, I have not yet seen any developer in NHN calling this method.) Jun 15 22:39:43 I misread the first sentence then? Jun 15 22:39:45 since it is automatic you have to be careful, because if you do like a loop creating strings needlessly you'll cause your UI to stutter Jun 15 22:39:52 I haven't had to worry about gc with Python either. Jun 15 22:40:10 i think it is slighly more implemented in android Jun 15 22:40:12 Yeah, yeah little details. :) That's fun to worry about when I get to it. Jun 15 22:40:16 How so? Jun 15 22:40:19 just be aware of it Jun 15 22:40:34 I will try to be, so long as it's brought up I'll read about it. Jun 15 22:40:41 But I just don't [want to have to actually learn every single little detail. :( Jun 15 22:40:42 and take a look at logcat and notice the correlation between GC - ... - .... and how the UI stutters Jun 15 22:40:53 Because I'm afraid I'll forget all the little details about the other languages like C++ and Python. Jun 15 22:41:05 Skipped 100 threads Jun 15 22:41:06 lol Jun 15 22:41:14 yeah that is all i mean, because android is actually more concrete than java since it lives inside embedded devices (so far) Jun 15 22:41:37 Is it dangerous to use your own phone as a test phone for the apps? Jun 15 22:41:45 Not really Jun 15 22:41:45 no Jun 15 22:42:08 So you guys do that then? Jun 15 22:42:10 jennifer: if you live in the US you can goto walmart and buy a 40$ android phone that runs 4.0 that is unlocked and rootable Jun 15 22:42:12 Yeah Jun 15 22:42:15 not always Jun 15 22:42:16 Cool. Jun 15 22:42:19 can be faster to use emulators Jun 15 22:42:25 lasserix, I have an old S2 that I can use. Jun 15 22:42:38 I wonder if my S2 can run Android 5.0... Jun 15 22:42:47 probably not Jun 15 22:43:01 *i take that back Jun 15 22:43:04 probably someone has Jun 15 22:43:19 but you're only going to get 4.2 it looks like officially Jun 15 22:43:37 Damn. Jun 15 22:43:47 That's not bad is it? It looks like only 1% or so of people have 5.0 anyway. Jun 15 22:43:55 I have a S5, I upgraded my phone from S2 to S5. Jun 15 22:43:59 nothing terrible Jun 15 22:44:01 How about an S3? I can steal that from my ex. Jun 15 22:44:19 4.4 is nice has some of the newer apis that are easier to make things work Jun 15 22:44:35 but those will be fine just make sure you have 4.0 minimum if you are going to test Jun 15 22:45:33 like i said, i found a LG tribute 4g lte at walmart for 40$ Jun 15 22:45:47 runs 4.4 and is perfect lower end phone to test against, without being painfully slow Jun 15 22:46:46 What is the best sized monitor? Jun 15 22:46:54 the biggest you can get Jun 15 22:46:55 obviously Jun 15 22:47:10 Are ultrawide ones better? Jun 15 22:47:56 21:9 Jun 15 22:48:22 <_genuser_> groxx: thanks. :) I'll probably leave my jdk8/jre8 64-bit instead of installing 32-bit. And just move to eclipse 64-bit. Jun 15 22:48:39 <_genuser_> altho, I figure I'll eventually need a 32-bit jre installed. there's going to be programs and require 32-bit jre. Jun 15 22:49:02 andreyonadam: nah just stick to a standard 4K monitor Jun 15 22:49:13 Nizumzen: alright Jun 15 22:49:32 or take the plunge go for the goggle setup Jun 15 22:49:45 the google setup? Jun 15 22:49:48 that way you can hide things around your person and surprise nosy coworkers Jun 15 22:49:51 ohh goggle? Jun 15 22:49:59 immmersive reality goggles Jun 15 22:50:16 lol, that would be so unproductive Jun 15 22:51:29 Alright I really gotta sleep. Jun 15 22:51:31 Too tired. Jun 15 22:51:33 Thank you guys. Jun 15 22:51:33 i had a coworker who was using it really ewll Jun 15 22:51:37 np goodluck Jun 15 22:54:46 <_genuser_> lasserix: what's the google/goggle setup? Jun 15 22:55:27 just using a immersive 3d vr set of goggles Jun 15 22:55:41 to use some kind of projection to display your monitor on surfaces you can place inside the 3d world Jun 15 22:55:45 <_genuser_> oh, a google setup. a gear setup. Jun 15 22:55:49 *your moniter output Jun 15 22:55:52 input i mean Jun 15 22:56:00 <_genuser_> I thought you were talking about setup api. as in deployment api. Jun 15 22:56:01 <_genuser_> heh. Jun 15 22:56:06 because you can do things like put a full sized naked porn star behind you Jun 15 22:56:18 battling an aliens from alien Jun 15 22:56:25 and when coworkers come to check out your setup Jun 15 22:56:31 they will literally jump Jun 15 22:56:34 <_genuser_> I was thinking is that where you project the install button on for example the boobs of the closest female co-worker and watch teh guy try to install his google apps on his google Glass.. Jun 15 22:57:35 <_genuser_> heh, both went for the naked woman example. is this how all of us guys think all the time, lol. Jun 15 22:59:59 hey guys i'm pinning data using the parse local datastore all my Log are printing the right values get no errors but nothing is being pinned http://pastebin.com/KWrc8pF3 Jun 15 23:01:58 hert: I'm a bit surprised that doesn't crash, actually. you're getting the token asynchronously, so it won't be set by the time you try to setTokenId() / etc. Jun 15 23:03:13 _genuser_: for norm fundmentally probably yes. Jun 15 23:06:34 groxx even when i run without line 4 - 18 it still doesn't pin Jun 15 23:06:49 Are there guidelines of what makes cache data cache? Jun 15 23:06:58 (in android when using cache folder apis) Jun 15 23:07:50 lasserix: can it be deleted arbitrarily by the user, and can your app continue to function? Jun 15 23:07:59 sure Jun 15 23:08:02 its just cached data Jun 15 23:08:09 if yes, stick it in the cache. I wish more apps used cache more, it's stupid to put so much in the internal folders :| Jun 15 23:08:15 if its not there, then can't use it, you gota make it again if you want the benefits Jun 15 23:08:31 right, but for instance, do i still have to do memory checks? Jun 15 23:08:41 ? Jun 15 23:08:49 and is there any standard for checking device memory space Jun 15 23:08:55 <_genuser_> man, I'm android-coding starved. have been trying to hack away at php to finish the portal that has json api available to ping from my app. Jun 15 23:09:06 well for whatever reason bloatware on this phone seems to take up 1.2gb of 1.4 gb phone internal space Jun 15 23:09:28 and i notice my cache data hovers 12mb and on Jun 15 23:09:59 so in the fun instance when it becomes available space < cache data i don't want phone to explode Jun 15 23:10:09 when the user throws it across the room after the app busts again Jun 15 23:10:10 yeah. or a bunch of google services are consuming nearly all the internal memory on an old crap-phone we use at the office, and like half the space is just cached bitmaps :| Jun 15 23:10:17 ahh Jun 15 23:10:19 that could be it Jun 15 23:10:43 so we should still check Jun 15 23:10:50 and not create the cache Jun 15 23:11:01 if not enough space? Jun 15 23:11:31 well, writes can fail at literally any time. out-of-space too, since you can't atomically "write this file if there's enough room for it". Jun 15 23:11:54 between the time when you would check available space and when you start writing, something else could happen Jun 15 23:13:08 That feeling when finally, after days or weeks of thinking, you figure out a clean solution to the problem. Jun 15 23:13:23 Jun 15 23:13:42 i don’t get to have that. I have a web services team I have to deal with :( Jun 15 23:14:46 <_genuser_> TacticalJoke: the best feeling!! Jun 15 23:18:08 tru dat Jun 15 23:18:36 ahh the best way to get through any conversation, just use and only use, "tru dat" as your response the rest of the time Jun 15 23:20:29 shit Jun 15 23:20:42 anyone know the one liner to go back one commit? Jun 15 23:20:44 TacticalJoke: too late! reddit is dead Jun 15 23:20:56 lasserix: git reset --hard HEAD^ Jun 15 23:21:22 reddit is dead; long live reddit. Jun 15 23:21:40 are you sure hard? Jun 15 23:22:03 lasserix: --hard resets the files to the previous state Jun 15 23:22:39 lasserix: if you do --soft it just resets the index without changing files and --mixed changes the files with the index in the staged state Jun 15 23:22:55 yeah Jun 15 23:22:57 thats what i needed Jun 15 23:23:01 accidently did commit -am Jun 15 23:23:03 heh Jun 15 23:23:04 thanks Jun 15 23:23:08 now i understand that difference Jun 15 23:23:28 for that I would do git reset HEAD@{1} Jun 15 23:26:38 shmoooz: Do you still play Tribes? Jun 15 23:27:13 TacticalJoke: I was until last week, I just checked and the master servers are all gone Jun 15 23:28:05 Even the unofficial ones? Jun 15 23:28:17 there's probably some update info at thelandofoz.net, probably have to download the new version 1.42 or whatever Jun 15 23:28:27 Doh. Jun 15 23:35:02 TacticalJoke: I fixed it by entering two new master servers skbmaster.ath.cx:28000 and tlml.pu.net:28000 Jun 15 23:35:39 time to kick some more ass Jun 15 23:38:31 why would onCreate in Application never get called? Jun 15 23:39:07 hm, wonder if it is feasible for 2 foreground service to share the same notification. impl is 2 services but the user doesn't need to know that, UI should only have one notification Jun 15 23:39:46 dcope: Maybe you forgot to add the `name` thing to AndroidManifest.xml. Jun 15 23:40:53 TacticalJoke: it's there Jun 15 23:41:50 dcope: it's probably getting called but maybe overridden by onResume Jun 15 23:43:48 dcope: Try swiping it out of recent tasks and then running your app. Jun 15 23:43:49 anyone have a good calendar they recommend? Jun 15 23:44:02 (besides CalendarView) Jun 15 23:44:18 TacticalJoke: tried that, even went into settings and did a Force Stop Jun 15 23:44:20 has anyone here ever used JEB Decompiler? I'm having an issue with running it, it says it can't run on a 64-bit JVM. I'm unsure of how to get a 32-bit JVM, since I can only find one version of the JRE... Jun 15 23:44:34 Maybe your `android:name` entry doesn't match your class's full name. Jun 15 23:45:04 it does, the android manifest name autocompletes it Jun 15 23:45:16 <_genuser_> git! Jun 15 23:45:37 the breakpoint has a little x through it saying no debuggable code will be hit Jun 15 23:46:11 Can you post the Application subclass and AndroidManifest.xml? Jun 15 23:46:36 t0astt: I haven't but jadx is nice. https://github.com/skylot/jadx I know jcase uses JEB Jun 15 23:47:09 surfb21: JEB was appealing to me because it can (from my knowledge) deobfuscate Proguard, can jadx do that? Jun 15 23:48:05 deobfuscate proguard in what way? I HIGHLY doubt JEB can rename classes and fields. You would need the mapping for that Jun 15 23:48:06 anyone? Jun 15 23:49:33 surfb21: Not sure exactly. I just heard that it could do it. My reasoning for wanting to deobfuscate is so I can write an Xposed module... Jun 15 23:55:13 t0astt: JEB is just a nicer interface. You will get pretty much the same thing using dex2jar+jd-gui or jadx. Jun 15 23:55:45 surfb21: Ok. I'm assuming dex2jar is similar to enjarify (Google just release this) Jun 15 23:57:37 first time hearing of enjarify but just glancing over the project it does look like it has the same end goal. Jun 15 23:58:24 kroot: ahh thanks again, i had foobared myself by reseting too quickly in succession, so i had to reset hard then reset soft in reverse sequence (starting to the head right before i foobared) to get it back Jun 16 00:00:51 I have a gradle project that generates ~10 AAR's, as well as documentation and demo apps to consume those AAR's Jun 16 00:01:05 Is there a clean way for gradle to consume those AARs while still maintaining task dependencies? Jun 16 00:01:22 IE, so that I don't need to modify the demo app build.gradle files when I distribute the sample code Jun 16 00:02:07 By default, the library modules are referenced directly for dependency evaluation--requiring source code to build Jun 16 00:03:26 I'd like to avoid hacking around the already brittle android support in gradle, and definitely don't want duplicate build.gradle files just for distribution Jun 16 00:07:06 is it possible to stream off json response data so that i can callback with pojos while in the process of still receiving the stream? Jun 16 00:07:12 *recieving the response Jun 16 00:08:19 uh.. setContentView(R.layout.activity_my); my R suddenly has a cannot resolev symbol error msg, and i changed nothing, it happens to all my R on the page Jun 16 00:09:09 oh, i changed my minimum api Jun 16 00:09:46 surfb21: I'm taking a look at jd-gui. Using jd-gui with the output from enjarify is making this a lot easier. Thanks for the recommendation Jun 16 00:11:05 I haven't followed all the decompiling talk, but t0astt have you tried apk2gold ? Jun 16 00:11:21 it's jd-gui based, but just dumps a directory of assets / source / etc. Jun 16 00:11:30 actually, no, not fixed. ideas? Jun 16 00:12:04 groxx: I have not tried that. I'm about to eat dinner but I'll check it out later. Thanks! Jun 16 00:12:15 bubbely: It's better to google first. This question has so many SO answers. Jun 16 00:12:16 t0astt: https://github.com/lxdvs/apk2gold Jun 16 00:13:42 im gonna try syncing my gradlefiles first Jun 16 00:15:48 import android.R didnt work Jun 16 00:16:28 gradelsync didnt work Jun 16 00:17:27 bubbely: a) importing android.R is usually not right. and b) you won't have "your" R file generated unless it builds, so you'll have to get a successful build before you get autocomplete help. Jun 16 00:18:17 ok Jun 16 00:18:19 yea Jun 16 00:18:56 ok groxx: help Jun 16 00:20:41 bubbely: did gradle sync finish? Jun 16 00:24:06 I visit a website via desktop browser (but making small resolution), it loads mobile version of site. but when I load the same site via webview, it loads desktop version. Why it can be? Jun 16 00:24:32 If I have a webview, can I monitor hyperlink clicks that the user does inside that webview? Jun 16 00:29:45 Voyage: http://developer.android.com/guide/webapps/webview.html#HandlingNavigation Jun 16 00:31:34 groxx, will it let me know click and the hyperlink href that was clicked? Jun 16 00:32:05 it will let you know that they are going to change to a new url, but not e.g. click event data Jun 16 00:32:13 that you'll have to get in javascript Jun 16 00:48:30 Voyage: it enjoys f--king with you, that's why. simplest explanation. Jun 16 00:49:42 :) Jun 16 00:50:15 groxx, they are going to change to a new url ? Jun 16 00:50:42 groxx, so thats the same url that is clicked.. right? and I can get that url? Jun 16 00:50:51 Voyage: it's covered reasonably well in the link, worth reading if you're trying to build something with webview :) Jun 16 00:59:51 is it possible to install a signed apk outside of alpha testing? Jun 16 00:59:59 i'm trying to perform an upgrade, not a fresh install Jun 16 01:00:36 that should work normally. and all APKs are signed - there's nothing special about the ones you get from google. Jun 16 01:01:02 groxx: so i can adb install it and it will upgrade, preserving an older version's data? Jun 16 01:01:51 dcope: yeah. you might have to `install -r` though Jun 16 01:02:11 cool, thank you groxx Jun 16 01:17:50 when pinning marker in local datastore the lastest one always replace the previous one and in the end i only have one saved http://pastebin.com/URpyf9LC Jun 16 01:38:51 crap my 2013 n7 rebooted twice this week Jun 16 01:39:40 haven't updated it since 4.4.4 Jun 16 01:40:20 hope i'm not entering the 2013 n7 bricking club Jun 16 01:44:42 soon you'll be one of us Jun 16 01:44:59 groxx is the process reversible ? Jun 16 01:46:32 only for the low, low price of $49.95, each month, billed over not less than 12 months Jun 16 01:47:18 and afaik no :) e.g. a factory reset does squat. Jun 16 01:48:00 you can always continue to hope Android OS vN+1 will be friendlier to slow devices. Jun 16 01:48:53 i'm worried the flash is degrading Jun 16 01:53:52 g00s, are you rooted? Look at dmesg periodically Jun 16 01:54:07 dragorn no Jun 16 01:54:11 g00s, failing flash should cause enough io/filesystem errors that it'll be obvious Jun 16 01:54:12 ah Jun 16 01:54:16 well that's inconvenient for you then Jun 16 01:54:35 meh, yeah no dmesg :| Jun 16 01:54:45 in my experience android will go into a deathspiral and lock up rather than reboot when flash or sd corrupts Jun 16 01:54:54 but there's no reason it COULDN'T be tripping a watchdog Jun 16 01:56:56 looking for open source recommendations for widgets like the facebook 'new stories' refresh widget. Any idea what I would even call that widget to search for it? Jun 16 02:30:04 does anyone here have experience with Xposed framework? I'm trying to hook a method but I don't believe it is hooking correctly. Jun 16 02:30:50 farkerhaiku: probably browse around on http://android-arsenal.com/ . it's a decently comprehensive list Jun 16 02:46:20 hey Jun 16 02:46:46 cannot resolve symbol 'r' suddenyl happened to me, i tried sycnhing gradle, cleaning gradle, looking over my xmls, and google. i cant fix it on my own! Help me. Jun 16 02:47:58 For how many hours have you been trying to solve this problem? Jun 16 02:48:05 3 or 4 Jun 16 02:48:21 Sounds like a typical session with Gradle :) Jun 16 02:48:50 What is the package name of your application, and what is the package name of the class in which you're getting these "R cannot be found" errors? Jun 16 02:49:25 applicatoin = My First App Jun 16 02:49:26 "Gradle: it will take you hours and a lot of time on StackOverflow to get your build to work, and when it does, I'll still build your project slowly" Jun 16 02:49:36 bubbely: What are the package names? Jun 16 02:49:38 MyActivity.java Jun 16 02:49:42 foo.bar.whatever.Blah Jun 16 02:49:49 com.example.david.myfirstapp Jun 16 02:50:06 :). Jun 16 02:52:24 I guess I'd recommend Build > Rebuild Project and then looking at *every* error message. Jun 16 02:54:11 Sacrificing a chicken won't hurt either Jun 16 02:57:05 sounds like CedricBeust may have had some struggles with gradle lately :P Jun 16 02:57:16 Lately? Years. Jun 16 02:57:47 i wouldn't sacrifice a chicken though, they are good to have around for measuring things Jun 16 02:59:22 I know what went wrong Jun 16 02:59:25 I change the API level Jun 16 02:59:33 and then switched it back Jun 16 02:59:43 and it caused teh bug.. next, i put the API level to highest and its fine **** ENDING LOGGING AT Tue Jun 16 02:59:59 2015