**** BEGIN LOGGING AT Tue Jun 30 02:59:58 2015 Jun 30 03:01:41 all a bit Catholic for me, I think :) Jun 30 03:02:25 yeah im not religious myself but i have no qualms making an app for those who are Jun 30 03:03:41 I will say one thing... I suspect "Write and read comment on posts" should either have a comma or an extra 's' Jun 30 03:03:42 desmin88: I see your FAB is covering up some text Jun 30 03:04:11 shmoooz: it does the quick return hide thing, just wanted it visible for the screenshot Jun 30 03:04:23 oh ok Jun 30 03:04:44 congrats! Jun 30 03:04:47 and if there isnt enough room to scroll the text (hopefully) wraps around Jun 30 03:04:49 thanks!! Jun 30 03:06:32 "Gartner, Inc. predicted that more than 50 percent of mobile apps deployed by 2016 would be hybrid. " :( Jun 30 03:06:39 that moment when a friend calls you and tells you he has hookers and wants to you come over. i fucking love my fucking life. Jun 30 03:07:00 eww Jun 30 03:07:24 see, now I'm wondering if desmin88 was responding to liftedbronco or g00s :) Jun 30 03:07:35 why not both? Jun 30 03:08:04 two birds with one stone Jun 30 03:08:06 because that's less amusing? Jun 30 03:08:29 I'd worry about diseases. :S Jun 30 03:08:49 something tells me liftedbronco has a few already ;) Jun 30 03:08:57 I dunno, I don't think hybrid apps carry viruses very often Jun 30 03:09:15 g00s: what does hyrbrid mean ? Jun 30 03:09:56 anyway, number of apps deployed is a pretty meaningless stat, I think - there are *vast* numbers of small apps which will only ever get a few hundred installs, things like quick apps for small local businesses Jun 30 03:12:58 most anticlimactic app launch ever Jun 30 03:13:20 wait, it has IAP? :) Jun 30 03:13:30 In-App Prayers? Jun 30 03:13:44 hehe Jun 30 03:13:51 just an ad removal Jun 30 03:14:25 Can't they pray the ads away? :D Jun 30 03:14:44 are the ad's random? or koshure for catholics ? Jun 30 03:15:04 i disabled a lot of the offensive ones in admob Jun 30 03:16:02 yeah you don't need to pop up penis enlarger ads in the middle of that ;) Jun 30 03:17:02 lol Jun 30 03:17:11 have faith, my son, and anything is possible Jun 30 03:18:13 the force will be with you, always! Jun 30 03:19:39 shmoooz native + webview Jun 30 03:19:57 eww Jun 30 03:20:00 desmin88 lol adds, i wonder if they will get any for contraception :D Jun 30 03:21:01 haha Jun 30 03:21:15 Did you make this for someone, desmin88? Jun 30 03:21:18 yes Jun 30 03:21:19 theres a trend to make everything html and js / web Jun 30 03:21:32 Are they going to get the ad revenue? Jun 30 03:21:35 no Jun 30 03:21:38 it's just more hype talk Jun 30 03:21:42 shmoooz yeah, seems yucky - but i bet thats what google wants anyhow Jun 30 03:22:12 nor will they the IAP revenue Jun 30 03:24:08 https://www.youtube.com/watch?v=wzZcBceUZJw Jun 30 03:24:23 kina scwhups Jun 30 03:25:14 Currently at 0 installs! Jun 30 03:25:24 completely exhilarating. Jun 30 03:25:38 desmin88 who is marketing it? the main website ? Jun 30 03:25:44 yes Jun 30 03:25:58 does the website have adds ? Jun 30 03:26:03 yes Jun 30 03:26:38 and a large social media presence Jun 30 03:27:37 may the presence be with you ! Jun 30 03:27:46 thanks! Jun 30 03:28:31 oh damn, a drone crashed and fell on a woman and knocked her out Jun 30 03:28:53 where? Jun 30 03:29:31 Caitlyn Jenner's house Jun 30 03:30:03 http://spdblotter.seattle.gov/2015/06/29/woman-knocked-unconscious-at-parade-by-falling-drone/ Jun 30 03:31:26 g00s: do you live in Seattle? Jun 30 03:36:51 "I didn't touch her! A drone fell out of the sky!", the boyfriend was heard shouting as he was dragged away by police officers. Jun 30 03:44:19 Hi, I'm a bit new to android development and I have a question Jun 30 03:46:52 First questions are free. Subsequent questions are only $2.99 per question (plus $17.99 per month) if you take out our Basic package. Welcome to #android-dev. Jun 30 03:47:23 surf2b1 no Jun 30 03:47:46 I'll answer the question for $2.90 Jun 30 03:49:23 Does anyone have a good example for using the calendar API for android apps? Jun 30 03:53:00 Mercurial_: Do you mean the Calendar app or just java.util.Date? Jun 30 03:54:56 contacts and calendar content provider questions are $20 Jun 30 04:10:10 hey guys whats the best way to capture app notifications? i want to capture notifications from apps the user specifies so i can then emit my own notification Jun 30 04:12:53 Hi, How to know the arch type of a compiled AOSP system.img Jun 30 04:12:53 = Jun 30 04:12:56 ? Jun 30 04:14:06 wrong channel chihau Jun 30 04:16:33 chihau: try #android-root :) Jun 30 04:19:30 chihau, well, where did said system.img come from? Jun 30 04:20:32 I just need to access a user's events Jun 30 04:20:52 bynarie, I have builded Jun 30 04:21:27 how the hell do you not know the arch for it if u builded it.. i mean simply speaking, what device did u build it for? Jun 30 04:21:40 s/builded/built Jun 30 04:57:44 new to android dev. just installed android studio and cloned an existing project off github, and I cannot view the .xml in the design view.. here is what I see: http://bit.ly/1C3QXo4 Jun 30 04:58:13 I am opening this in the src/ and not in build/ Jun 30 05:00:20 what do I need to do to see the xml in design view? Jun 30 05:00:44 hey guys, i decided to use AccessibilityService but im curious, how do i leave an icon on the status bar when my service is running? and having the ability to turn off service from that icon Jun 30 05:01:10 sorry trewq i havent used android studio Jun 30 05:01:43 jareddlc: what do you use? Jun 30 05:02:06 eclipse, (before it was bundled with android studio they bundled with eclipse Jun 30 05:02:51 ah ok Jun 30 05:05:26 jareddlc, http://developer.android.com/reference/android/app/Notification.html#FLAG_ONGOING_EVENT ? Jun 30 05:05:58 thx danijoo so i want to use a notification Jun 30 05:06:04 i'll read about it. Jun 30 05:06:36 yep. just set it with the service Jun 30 05:06:45 trewq: Weird. Do you see View > Tool Windows > Preview? Jun 30 05:07:08 trewq, did you import it properly ? as gradle project Jun 30 05:14:35 TacticalJoke: that one is disabled Jun 30 05:15:04 hm, gradle is going to start offering some SaaS at gradle.com Jun 30 05:16:07 Find out how we're building happiness. << sounds like the add of a porn site lol Jun 30 05:16:25 lol Jun 30 05:16:49 thanks g00s . registered :) Jun 30 05:16:52 danijoo nah, thats the typical bs spiel of many SF companies Jun 30 05:17:18 almost everyone down there overstimates their utility Jun 30 05:17:30 lol g00s its true Jun 30 05:17:46 too many companies claim similar Jun 30 05:18:12 danijoo: thanks - i reimported it properly and now it shows up Jun 30 05:18:55 is their any alternative to startActivityForResult to get result from other activity? Jun 30 05:19:34 no. Jun 30 05:20:04 I wonder when Kotlin 1.0 is gonna hit. :D Jun 30 05:20:23 TacticalJoke this summer right ? Jun 30 05:20:28 TacticalJoke, they said soon (tm) Jun 30 05:20:38 I heard this summer, yeah. Jun 30 05:20:49 I expect september maybe Jun 30 05:21:28 jareddlc so far this has been a good book http://www.amazon.com/Geek-Heresy-Rescuing-Social-Technology/dp/161039528X Jun 30 05:22:07 bookmarked. Yeah im located in sillicon valley so i see it often Jun 30 05:22:22 its gotta be coming soon, that one lady from jetbrains is writing a book for manning Jun 30 05:22:24 I know alot of people want the SF tech company life, but thats not for me Jun 30 05:22:52 Working in SF is pretty awesome (depending on the neighborhood though) Jun 30 05:23:36 CedricBeust: I personally dont like public transit, and SF is mostly public transit, I go every 2 months for conferences and I dislike the commute but i really enjoy sf Jun 30 05:24:22 how can I get Fragment attached to a View. I dont have access to Activity or Context. Any way ? Jun 30 05:25:01 view.findFragmentById(...) any thing like that ? Jun 30 05:25:04 Sitting at a comfortable 0 downloads atm. heart is racing! Jun 30 05:25:55 desmin88 you just launched it, if the website is marketing it - kinda depends on what their traffic is too, right ? Jun 30 05:26:15 website hasnt started marketing it yet Jun 30 05:26:36 oh well, i doubt much will happen until then Jun 30 05:26:39 yeah haha Jun 30 05:26:48 once they do though its gonna be a huge influx Jun 30 05:26:56 they get considerable web traffic Jun 30 05:27:04 desmin88 before they do, did you do some beta testing ? Jun 30 05:27:10 yes Jun 30 05:27:14 ok good Jun 30 05:28:02 just wrote this. Someone may find it useful for tinting edges on pre-l since appcompat doesn't do it. https://gist.github.com/jaredrummler/26aa29331992ca7964ef Jun 30 05:28:59 desmin88, link? Jun 30 05:29:10 danijoo:https://play.google.com/store/apps/details?id=com.ucatholic.android Jun 30 05:29:32 0 downloads? liar :P Jun 30 05:29:37 1-5 it is ! Jun 30 05:29:39 thats me Jun 30 05:29:51 g00s: How many unique page views per day is considered 'good'? Jun 30 05:30:32 desmin88 no idea Jun 30 05:32:07 oh god. my database copy is at 85 percent and i started it yesterday. Its table 1/3 with the same size :/ Jun 30 05:32:56 if it throws me another connection error at 90%, i go insane Jun 30 05:36:16 danijoo what kind of db ? O.o Jun 30 05:36:36 g00s, 3x 100gb mongoDb Jun 30 05:36:36 are you doing this online, jdbc, or offline (dump/extract) ? Jun 30 05:36:46 oh, don't know about mongo Jun 30 05:36:56 dumping it between 2 servers in the same datacenter Jun 30 05:37:03 table by table Jun 30 05:37:16 i dont hear good things about mongo :) Jun 30 05:37:28 for that use case its fine Jun 30 05:37:48 its more of a gigantic cache to serve when the api im consuming goes offline Jun 30 05:37:59 lol so you guys are 'web scale' :D Jun 30 05:37:59 a data loss would not be an issue Jun 30 05:38:30 have to leave Jun 30 05:41:27 android.net.Uri is different then java.net.URI Jun 30 05:41:29 bleh Jun 30 05:41:47 Indeed. Jun 30 05:44:47 a listview with custom adopter, each view has a fragment. how can i get the instance of that fragment??? Jun 30 05:45:10 Fragments in ListViews? Jun 30 05:46:07 yes, because i need onActivityResult to override for each item clicked. Jun 30 05:46:15 your doing it wrong Jun 30 05:46:28 i dont know what your doing, but its wrong Jun 30 05:47:12 Fo sho. Don't be puttin' them Fragments in them ListViews, ya hear? Jun 30 05:47:18 Das not good. Jun 30 05:47:32 Shits wack yo Jun 30 05:47:43 i have a listview which has various items, each item need to call an outside activity for some result. Jun 30 05:47:56 You don't need Fragments to do that. :D Jun 30 05:48:02 lol Jun 30 05:48:17 And using Fragments for that reason exemplifies antipatternism. Jun 30 05:48:34 thats not antipatternism thats just wrong Jun 30 05:48:43 sounds like a pet shop boy song : antipatternism Jun 30 05:48:46 i can override onactivityresult in activity and start those inside activity for each click event. but Jun 30 05:49:03 t2mkn: thats what you do Jun 30 05:49:11 I wonder what the weirdest thing someone has put in a ListView is. Jun 30 05:49:17 another listview? Jun 30 05:49:17 looking some simple way, cause i dont want to make activity class go so complex for each click event Jun 30 05:49:23 :D Jun 30 05:49:34 A RecyclerView would be cool. Jun 30 05:49:39 Encapsulation FTW. Jun 30 05:49:57 Then again, it wouldn't be so well encapsulated. Jun 30 05:50:16 desmin88: ya true, but i have added a fragment to each list item. Jun 30 05:50:21 well dont Jun 30 05:50:26 that is wrong Jun 30 05:51:12 is their any way i can get the fragment reference within the view, to do view.getFragmentBySomething(...).startActivityForResult() ??? Jun 30 05:51:32 stop putting fragments in listviews Jun 30 05:51:35 and multiple question marks Jun 30 05:52:04 lol, yes bos Jun 30 05:52:05 :D Jun 30 05:52:23 does anyone here have experience with developing using xposed framework? Jun 30 05:53:18 t2mkn: It's a total design disaster. It would be absurd not to fix it. Jun 30 05:54:00 guys, how do you usually get a list of apps, im creating a listener for notifications from other apps, just finished my accesbility service, but havent test. I was just curious whats the best way to show user which apps to get Jun 30 05:54:25 TacticalJoke: ya... seems true. i need to change the implementatin Jun 30 05:54:38 t2mkn: What are you trying to do? How are you adding fragments to each item in your adapter?? You should just be able to set an OnItemClickListener on the ListView and handle the action there. Jun 30 05:56:38 surf2b1: handing onitemclick, but after the click i need some results back from other activity. i can handel that directly inside activity, but the list view populates programatically acording to suer chose, now i need to make it bit simple by receiving each result within that custom view. Jun 30 05:56:49 jareddlc: to get a list of apps you can use PackageManager.getInstalledApps(flags) or PackageManager#queryIntentActivities(Intent, flags) Jun 30 05:57:29 surf2b1: is this how apps do it when you hit share and it shows a list of shareable apps? Jun 30 05:58:47 t2mkn: still unclear. An event-bus is useful for communication between fragments/activities/stuff. check out Otto or EventBus by GreenRobots Jun 30 06:00:59 jareddlc: Android gets the apps for you and you just give it the intent. Android does use queryIntentActivities though. Jun 30 06:01:11 RingtonePreference is best example for my situation. it starts the chooser, and stores the selection in sharedpreference. but without using onActivityResult of implementing class. but how? Jun 30 06:01:35 thanks surf2b1 i'll look into packamage manager Jun 30 06:02:19 t2mkn: Same as anything: just change the data set and call BaseAdapter.notifyDataSetChanged. Jun 30 06:03:14 A ListView's children have no business directly getting activity results. :D Jun 30 06:03:27 In fact, if you had never described this, I never would've even considered the idea. Jun 30 06:05:14 i have items in my listviews/recyclerviews getting their results pushed to them individually Jun 30 06:05:39 instead of nuclear option : notifyDatasetChanged; on RV is pretty shitty Jun 30 06:06:14 t2mkn: if you paste some code it would probably clear up a lot of confusion. Jun 30 06:06:16 Isn't it better on RV (since we can specify which children get changed)? Jun 30 06:06:19 g00s: ya thats what i am doing now, just wondering, if we can get them directly inside, instead of pushing always. Jun 30 06:07:19 with RV you just unhook from the pushing in the recycle listener Jun 30 06:08:01 g00s: can u redirect me to any example on web? Jun 30 06:08:14 my situation may be somewhat unusual though; because the items change very quickly Jun 30 06:08:28 t2mkn hm, i dont know of any example on the web Jun 30 06:12:37 u know why i need that, because i want the separate business logic with programming logic. Jun 30 06:12:49 any way will find some other way Jun 30 06:13:09 not possible for the time being, fine :) Jun 30 06:13:38 TacticalJoke yeah notifiyItemChanged is good to pull; just that i had all my stuff in rxjava being pushed :) Jun 30 06:13:46 t2mkn: There are better ways than Fragments in a ListView. Jun 30 06:14:04 yeah, i wouldn't put fragments in LV either :| Jun 30 06:14:18 a fragment per listview is probably heavy resource wise Jun 30 06:14:22 Yeah, pushing makes sense sometimes. Jun 30 06:14:56 although, thats is what fragmentpageadapter does Jun 30 06:15:13 ya ya i got that. my current implementation dont have fragments in listview. Jun 30 06:27:31 Is it accurate to say that Java is the langauge you learn to make android apps?? Jun 30 06:28:06 emma: yes. Jun 30 06:28:28 wonderful Jun 30 06:28:50 if i wanted to learn to make an android app is it good enough if all i have is a spring samsung GS II ? Jun 30 06:28:59 sprint* Jun 30 06:29:56 SGS2 is pretty ancient , what version of android does it have Jun 30 06:29:57 Is it running Android 4.2? Jun 30 06:30:19 well i also have a Nexus 7 tablet. Would that be better or how does this even work. Is the same android app supposed to work on my phone as on the tablet? Jun 30 06:30:31 yeah Jun 30 06:30:42 TacticalJoke: i don't know. I can't turn it on because the charger broke Jun 30 06:31:05 lol if you can't turn it on ... Jun 30 06:31:10 lol Jun 30 06:31:21 well i was going to buy a whole bunch of batteries and use them sparingly. Jun 30 06:31:32 :| Jun 30 06:31:46 batteries are really cheap for it now Jun 30 06:31:49 like 5 bucks Jun 30 06:31:54 Or you could buy a phone that works. Jun 30 06:32:09 emma ... thats nuts Jun 30 06:32:12 im trying to surive until the new nexus phone comes out Jun 30 06:32:28 Your phone told you that you don't even turn it on anymore. It's time to move on, hit the gym, and so on. Jun 30 06:32:32 i'd just get a moto G / E Jun 30 06:32:52 well i can also get an external battery charger I think Jun 30 06:32:55 that should work Jun 30 06:33:08 but would my nexus 7 tablet be okay to learn to make android programs? Jun 30 06:33:18 yeah ? Jun 30 06:33:24 thats what i'm using Jun 30 06:33:39 and its all i have. if it goes up in flames i'll get a moto G Jun 30 06:33:39 it has no phone in it. Jun 30 06:33:45 i assume the tablet also has no gps Jun 30 06:33:54 hm, i think it does Jun 30 06:34:00 oh cool Jun 30 06:34:15 emma: you can use genymotion Jun 30 06:34:33 Hmm, I much prefer real devices, personally. Jun 30 06:34:45 i think that the next nexus phone will be cool and top of the line so i dont want to get a new phone before that Jun 30 06:35:19 you guys seem pretty nice here. Im really kind of surprised. Jun 30 06:35:27 I don't have much hope for the next whatever-device. Jun 30 06:35:34 how come? Jun 30 06:35:51 i'd never spend more than $175 for an android device Jun 30 06:35:56 It's all the same old shi-shi to me. Jun 30 06:36:03 hehe, yeah Jun 30 06:36:27 but if you want a fingerprint sensor .. go right ahead and give samsung $600 Jun 30 06:36:30 I do Android programming every day, but Android bores me to tears. Jun 30 06:36:44 you could become a manager Jun 30 06:37:04 also the problem is that android devices only get updates for 18 mos at best; so i see them as burner / disposable Jun 30 06:37:10 Right. Jun 30 06:37:37 iDevices are usually 4 years, except the 1st gen iPad Jun 30 06:38:06 xperia z was released jan 2013, has lollipop Jun 30 06:38:29 I quite like Sony devices. Something about their screens. Jun 30 06:38:31 lollipop is a trainwreck Jun 30 06:38:46 i wiill never buy another samsung phone in my life. this GSII has been a lemon since day 1. Jun 30 06:38:47 hopefully it gets MNC Jun 30 06:38:56 my only problem with the z-series is that it's put a hole in every pair of jeans that I have :( Jun 30 06:39:08 wabz run hot ? Jun 30 06:39:09 Samsung is weird. Back button on the wrong side? The heck. Jun 30 06:39:17 nah the corners are just not rounded enough Jun 30 06:39:51 ah give them a break TacticalJoke, they did get rid of the menu button Jun 30 06:40:03 apple have made the same mistake as the menu button Jun 30 06:40:05 maybe worse Jun 30 06:40:08 after sony did that rootkit fiasco, i won't buy bubblegum from those guys Jun 30 06:40:15 with the force touch thing on the watch Jun 30 06:40:19 although, they make some nice cameras :D Jun 30 06:40:51 for the nexus 7 it will be enough if i can find wifi for it? Jun 30 06:41:02 as far as trying to make an android program? Jun 30 06:41:05 emma i do all my dev on n7 Jun 30 06:41:14 oh cool : ) Jun 30 06:41:18 emma: What app do you want to make? Jun 30 06:41:25 i don't know yet Jun 30 06:41:29 well until it bricks, which seems to be the problem with 2013 version Jun 30 06:41:49 is the 2013 the newst version? Jun 30 06:41:55 yeah, and last, sadly Jun 30 06:42:07 i just don't understand why. It's a nice tablet Jun 30 06:42:12 its just the right size I think. Jun 30 06:42:20 android ... and tablets, yeah i dunno Jun 30 06:42:23 my hands aren't big enough for the big tablets. Jun 30 06:42:35 i dont think android really succeeded there Jun 30 06:42:37 Yeah, I still don't fully understand Android tablets. Jun 30 06:42:46 why? Jun 30 06:42:49 Why can't we at least have windows? Jun 30 06:43:00 My tablet seems to be simply a large phone. Jun 30 06:43:09 windows? Jun 30 06:43:16 TacticalJoke Dell has a $170 Windows tablet Jun 30 06:43:22 I mean GUI windows. :D Jun 30 06:43:48 doesnt the tablet have to be like a big phone if the same program is going to run on both? Jun 30 06:44:14 Yeah, but why can't I have multiple apps visible at once? Jun 30 06:44:28 isn't multi window in MNC ? Jun 30 06:44:39 can you do that on an ipad? Jun 30 06:45:20 doesn't it seem odd that android is powered by linux but linux distros are much more flexible than android? Jun 30 06:45:26 why can't android be more like linux? Jun 30 06:45:27 i'm hoping when windows 10 is announced MS comes out with a new Surface Jun 30 06:45:44 emma: The Linux kernel versus "GNU plus Linux!". Jun 30 06:45:59 Or "The GNU operating system!". Jun 30 06:46:01 but wouldn't it be pretty cool to have something like debian or ubuntu on a tablet? Jun 30 06:46:04 emma there is ubuntu touch i guess. you could check that out, but it hasn't gone anywhere Jun 30 06:47:16 the trouble is, people can try out linux on their windows PCs easy (or they used to be able to) with a live usb or a dual boot. But you cant live usb or dual boot an android phone I don't think. Jun 30 06:47:40 They're totally different OSes, though. Jun 30 06:47:55 They both use the Linux kernel (or some modification of it), but that's about it. Jun 30 06:47:55 yeah that's what im saying Jun 30 06:48:06 yeah that's why it would be nice to be able to dual boot Jun 30 06:48:14 because otherwise there's no way for anyone to try it Jun 30 06:48:23 no one is going to go buy an ubuntu phone Jun 30 06:48:48 Yah. Jun 30 06:49:27 don't be silly, Canonical will buy many 10s of phones for their employees to not use Jun 30 06:50:32 is java a difficult language to learn? Jun 30 06:50:34 Im not a programmer Jun 30 06:50:39 emma nope. Jun 30 06:50:44 it's not the easiest Jun 30 06:50:45 Its vast Jun 30 06:50:52 i don't know any languages *for real* but I learned a little bit of python, racket, and javascript. Jun 30 06:50:59 you could start off with c or python Jun 30 06:51:02 damn using accessibility was not what i wanted Jun 30 06:51:10 i think i wanted notificationlistener service Jun 30 06:51:32 is java a good language to learn for its kind? Jun 30 06:51:46 java is a compiled language which makes it different than the three i learned. What makes it better? Jun 30 06:52:31 Java is very sensible and consistent. It's also a high-level language. I think all this makes it a good choice for someone newish to programming. Jun 30 06:52:32 the fact that it's compiled is pretty irrelevant Jun 30 06:52:49 emma: java is compiled to byte code Jun 30 06:52:53 yeah Jun 30 06:52:54 versus machine code Jun 30 06:52:57 i see Jun 30 06:53:08 what is the strengths of java, what is the reason to enjoy learning it Jun 30 06:53:16 which is why you can run a jar in linux, osx, windows Jun 30 06:53:24 however you cannot run an exe in linux or osx Jun 30 06:53:46 with that trade off you lose a few things like speed Jun 30 06:53:51 what langauge do exe come from? Jun 30 06:53:54 IMO, java is multi-platform Jun 30 06:54:16 How is EXE formed. Jun 30 06:54:51 as far as I know, I think most *.exe files are written in c, c#, .net, idk.. haha Jun 30 06:55:04 TacticalJoke: ;) an exe are compiled for windows Jun 30 06:55:10 the virtue of Java is that it's popular and it has a large community. And on Android you nearly have no other choice anyhow emma Jun 30 06:55:23 i see Jun 30 06:55:34 icedp: you can do things that write in one language and it will convert into android app etc phonegap etc Jun 30 06:55:34 why do you suppose that google chose java? Jun 30 06:55:39 emma: http://norvig.com/21-days.html Jun 30 06:55:41 i dont particularly like that approach Jun 30 06:55:54 google made its own language called go that is the same type of language but they chose java for android Jun 30 06:56:06 they chose java almost 10 years ago Jun 30 06:56:16 jareddlc: I know that, that's works good in special kind of apps only Jun 30 06:56:20 jareddlc: Nobody seems to take those alternatives seriously. Jun 30 06:56:28 at the time, it was the dominant language for developing 'apps' for non-smartphones Jun 30 06:56:54 do you guys enjoy java? Jun 30 06:56:58 TacticalJoke: youd be suprised, i work out of an office the is shared office space Jun 30 06:57:07 and i see a few "dev" using tools like that Jun 30 06:57:46 jareddlc: what app do they make? Jun 30 06:57:50 i say "dev" becuase i think they were business people who coding Jun 30 06:58:01 they never showed lol Jun 30 06:58:09 i asked them a few times, they said games... Jun 30 06:58:18 but they are no longer in the office so.. Jun 30 06:59:23 emma: I don't particularly enjoy Java, there are things I wish it had, but it also has features I am glad it has. Jun 30 06:59:32 2d game is a good example where cross platform seems to work Jun 30 06:59:52 claint: Isn't it a thousand times less painful than C++, though? Jun 30 07:00:28 TacticalJoke: I write C++, and no, it is not thousand times less painful. Jun 30 07:00:44 TacticalJoke: maybe x5 Jun 30 07:00:53 or x2 Jun 30 07:00:54 is java of the same level as c++ ? Jun 30 07:01:44 emma: This is kind of getting out of topic. Is your research #android-dev related? Jun 30 07:02:07 sorry probably not exactly yet. Jun 30 07:02:07 emma: you could go to ##programming if you want to talk about different kinds of languages. Jun 30 07:02:16 thanks : ) Jun 30 07:02:26 emma: you should check out that link I typed earlier. Jun 30 07:06:00 What I would really like in android is to be able to instantly clear bitmap from memory Jun 30 07:06:33 instantly is a relative thing in programming. Jun 30 07:07:31 My code resize the bitmap and then old.recycle(), but my memory usage is still high. Jun 30 07:07:55 yoavst: did you have a look at renderscript? Jun 30 07:08:59 I presume that `System.gc();` would do it, but I'm not sure it's a good idea. Jun 30 07:09:21 The GC seems to know what it's doing. Jun 30 07:09:23 claint: i was reading it. Ive heard that said before about the 10 years/ 10000 hours. I don't really like to hear that. Jun 30 07:09:25 icedp: My app is not all about bitmap Jun 30 07:09:36 but the memory of the app ;) Jun 30 07:09:55 the bitmaps are small, but somehow takes a lot of memory Jun 30 07:10:09 i would hope it is 10,000 hours and not 10 years maye hen you could shorten it to 5 years by doing to practices a day. Jun 30 07:10:16 yoavst: Does it matter, though? The GC is designed not to collect (and pause stuff) too often. Jun 30 07:10:35 TacticalJoke: In logcat, I never see GC in my app Jun 30 07:10:44 TacticalJoke: why hinting gc is not a good idea. I suppose it's all right Jun 30 07:11:20 When I force him using AS, it does his job - Explicit concurrent mark sweep GC freed 26380(930KB) AllocSpace objects, 25(29MB) LOS objects, 30% free, 74MB/106MB, paused 1.976ms total 101.780ms Jun 30 07:11:25 yoavst: Do you have a memory leak or something? Jun 30 07:11:33 TacticalJoke: Just bitmaps :/ Jun 30 07:12:04 http://pastebin.com/DZ6qPiu5 Jun 30 07:12:20 as danjoo has suggested, I'm scaling the bitmap Jun 30 07:12:36 it makes the recyclerView to not lag, but the memory is still high Jun 30 07:12:45 a launcher? Jun 30 07:13:17 icedp: It is kind of, it is a launcher for LG's smart case Jun 30 07:13:53 (My app is set of tools for the case, launcher is one of them) Jun 30 07:14:22 TacticalJoke: Is there something wrong with the code I've posted? Jun 30 07:14:59 I'm not sure on this, but I've head Fresco stores bitmaps in native heap, so could that help you yoavst ? Jun 30 07:15:20 icedp: I'm loading the images from packageManager.getActivityIcon Jun 30 07:15:33 so it will be on my heap first Jun 30 07:15:49 emma: I gave the link for the beginner languages paragraph. But yeah, it is about time as well. Let me remind you that 10 years has ~87600 hours in it in total. Jun 30 07:15:50 and my problem is that it stays here until GC (which seem to sleep) Jun 30 07:16:16 what'll save you is, upon first app run, have a background service run through installed apps, request the highest quality icon, and convert to whatever size you want and save to disk. update icon upon update installs etc, but mainly don't always request the icon from app, it could be huge Jun 30 07:16:27 TacticalJoke: If I remove the images, the memory usage stays the same, so it is all about them. Jun 30 07:18:46 Force GC in the end of the showing seem to help bring it back to normal Jun 30 07:18:58 yoavst: maybe it's possible to move them to native heap one-by-one (reusing one bitmap) Jun 30 07:19:16 if most of them are the same size Jun 30 07:19:49 icedp: Most of them if not all should be 260x260 px Jun 30 07:20:41 yoavst: are you running that on the UI thread? Jun 30 07:21:01 bhans: not, on another thread Jun 30 07:24:15 I mean, how 10 pictures of 260x260 (67kb) can add 60mb to memory usage? Jun 30 07:28:48 260x260x4 possibly? Jun 30 07:30:21 any way, to make all declared variables inside a method, to local variable of class. #AndroidStudio Jun 30 07:30:43 what Jun 30 07:30:48 canvs2321: why x4? Jun 30 07:31:12 public void init() { String xyz = "Something"; } Jun 30 07:31:31 (getDrawable(i) as BitmapDrawable).getBitmap().getAllocationByteCount() == 4326400 Jun 30 07:31:33 i need xyz to be a part of class A Jun 30 07:31:42 4mb for 260x260 picture :O? Jun 30 07:32:27 class A { private String xyz; public void init() { xyz = "Something"; } } Jun 30 07:33:04 there are 50 variables i need to shift. any easy way in AndroidStudio ? Jun 30 07:33:31 canvs2321: You are right, it should be 260x260x4 since 32bit color, but 270kb != 4mb Jun 30 07:46:18 Ok, I've found the problem. putting images in drawable folder doesn't mean they are not going to get scaled. Jun 30 07:46:43 moving to drawable-nodpi, and the improvement was 1600% Jun 30 07:46:54 1/16 from the old memory footprint Jun 30 07:52:47 good mornings Jun 30 07:56:17 How do I go about using different Shared Preferences files? Jun 30 07:56:41 I have multiple shared preferences files and I want to store and load data from them Jun 30 07:58:13 SharedPreferences prefs= this.getSharedPreferences(profile,Context.MODE_PRIVATE); Jun 30 07:58:32 Where profile is a String containing the name of the profile I want to open Jun 30 07:58:54 I've checked the shared_prefs folder and the file exists Jun 30 07:59:25 The key-value pairs also exist Jun 30 08:00:40 is the right way to store data for a profile? Jun 30 08:01:53 but when I call String url=prefs.getString("URL",""); there is no value stored in url Jun 30 08:03:22 debian_noob: did you commit/apply anything for "URL"? Jun 30 08:03:56 Yes I have Jun 30 08:04:13 and I can see it by opening the file in a file explorer Jun 30 08:06:01 icemanbp: What should I use in your opinion? Jun 30 08:06:22 sqlite? Jun 30 08:06:38 and you can load the preference when you change the profile Jun 30 08:07:39 icemanbp: I thought of using it but it would be overkill Jun 30 08:07:48 why? Jun 30 08:08:22 In general the app would need only two or three profiles Jun 30 08:09:05 Eventually I guess I will have to move to sqlite Jun 30 08:09:26 but for now I want to keep it simple Jun 30 08:11:51 Here's the code: http://pastebin.com/J73P1S1z Jun 30 08:14:14 I remember that I can give a name to the preference Jun 30 08:15:18 Name to the pref file? Jun 30 08:15:30 getSharedPreferences("Name_of_pref", MODE_PRIVATE); Jun 30 08:16:02 the name is stored in the String profile Jun 30 08:16:13 I? Jun 30 08:16:17 ? Jun 30 08:16:28 and I call getSharedPreferences(profile, Context.MODE_PRIVATE); Jun 30 08:16:36 ok Jun 30 08:16:42 that's ok I think Jun 30 08:17:27 you get for each profile, a pref files Jun 30 08:17:53 This is the code for saving the profile: http://pastebin.com/kWkkDdPu Jun 30 08:18:32 I think at the end you have to commit Jun 30 08:18:36 prefs.commit Jun 30 08:18:55 otherwise it doesn't save Jun 30 08:19:45 apply() works too Jun 30 08:19:58 and I checked the file from the file explorer Jun 30 08:20:20 ok Jun 30 08:20:25 so where's the problem? Jun 30 08:20:30 it doesn't work? Jun 30 08:21:23 Contents of Test.xml : http://pastebin.com/5e8D7Yvh Jun 30 08:21:54 debian_noob: what is the problem? Jun 30 08:22:40 I can't understand Jun 30 08:22:57 what you don't understand? Jun 30 08:23:10 All the getString() methods are returning nothing Jun 30 08:23:24 are you using Jun 30 08:23:28 getString( Jun 30 08:23:42 The file can be created, can be opened but data is not getting retrieved Jun 30 08:23:44 getString("name of the single pref")? Jun 30 08:24:03 getString("URL",""); Jun 30 08:24:12 and it return ""? Jun 30 08:24:32 back in 10 mins Jun 30 08:24:50 where the 1st String is the key and the 2nd one is the default value to set if there is no associated value for the key Jun 30 08:24:52 okay Jun 30 08:28:40 debian_noob: are you sure you are using the same name for the preference? Can you paste the code where you are getting the string? Jun 30 08:29:14 This is for saving the pref: http://pastebin.com/kWkkDdPu Jun 30 08:29:45 This is for loading the pref: http://pastebin.com/J73P1S1z Jun 30 08:30:26 It gets the name from an EditText Jun 30 08:30:54 and for loading, it displays a ListView containing the profiles Jun 30 08:30:58 debian_noob: my guess is that getText().toString() from your EditText does not match the string passed to openTextual Jun 30 08:31:33 log the value and see Jun 30 08:31:46 Okay I think I got it Jun 30 08:32:07 I'm listing the files in the shared_prefs directory Jun 30 08:33:41 Is there a way to add OR operator in between appendWhere method calls of the SQLiteQueryBuilder? Jun 30 08:33:51 I see that it adds AND Jun 30 08:33:53 I want OR Jun 30 08:34:11 So I think the .xml extension is getting added to the profile name Jun 30 08:34:28 whoever designed that class didn't think about people wanting to use other operators besides AND ? Jun 30 08:35:31 surf2b1: Yeah that was the problem, the .xml extension Jun 30 08:35:32 or wait, I can pass anything in the where string Jun 30 08:36:11 Thanks for pointing me in the right direction Jun 30 08:36:21 debian_noob: glad you found, np Jun 30 08:36:26 * found it Jun 30 08:36:31 I got another problem though Jun 30 08:37:06 The ListView which is supposed to list the files in the shared_prefs dir is listing one item less Jun 30 08:37:31 Currently I have two files there, Test.xml and User.xml Jun 30 08:38:08 When I added the Test profile, it wasn't getting displayed on the list Jun 30 08:38:55 debian_noob: profiles.length-1 <-- remove -1 Jun 30 08:39:35 Oh Jun 30 08:40:01 Bad mistake Jun 30 09:00:18 emulator: ERROR: x86 emulation currently requires hardware acceleration! Jun 30 09:00:29 I am trying to run the sample android app generated by wizard Jun 30 09:01:09 What's the problem? Jun 30 09:01:52 I dont know, all I am trying to do is click the green triangle and run it Jun 30 09:02:03 its a blank sample app Jun 30 09:02:16 Does nothing happen? Jun 30 09:02:47 near instantly I get the above error and two others Jun 30 09:02:57 What's the error? I just got here. Jun 30 09:03:19 Android-sdks\tools\emulator.exe" -avd Nexus_5_API_21_x86 -netspeed full -netdelay none | emulator: ERROR: x86 emulation currently requires hardware acceleration! | Please ensure Intel HAXM is properly installed and usable. | CPU acceleration status: HAX kernel module is not installed! Jun 30 09:03:25 oh you joined right after I posted it :) Jun 30 09:03:31 Can someone remind me what is the correct way to create a Color object form a Resource? Jun 30 09:04:15 Neko, you need to allow hardware acceleration Jun 30 09:04:16 ToAruShiroiNeko: https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Jun 30 09:04:24 And you need to install the HAX Kernel Module. Use this: https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement Jun 30 09:05:04 Binero, there's a few ways Jun 30 09:05:17 BigZ Oh? Jun 30 09:05:45 I remember the one I used before to be something like resource.getColor(R.color.hellored); Jun 30 09:06:22 In your Strings file you can define a item with a hex code Jun 30 09:06:28 I have done that Jun 30 09:06:30 Ok Jun 30 09:06:39 But I need it in my Java as a Color object for use with OpenGL Jun 30 09:06:52 (I will extract the RGB from it ofc) Jun 30 09:07:40 oh you want to programmatically get the color of a resource? Jun 30 09:08:29 I see Jun 30 09:08:43 Yeha Jun 30 09:08:44 *Yeah Jun 30 09:08:45 I was under the impression Andrid studio budnle would have everything I need Jun 30 09:09:09 Neko, depending on what you emulate, it can vary between users. Jun 30 09:09:58 I imagine so, SDK manager has so much on it Jun 30 09:10:11 make sure in SDK manager you download the x86 images Jun 30 09:10:18 that was an error you were getting Jun 30 09:10:37 Binero I'm still with you one sec, reading some documentation Jun 30 09:11:40 Well online I have now found getResources() which is what I used before, but I have no Context Jun 30 09:11:44 Is it safe to multithread on a Context? Jun 30 09:12:16 is this outside your current activity? Jun 30 09:12:57 Yes Jun 30 09:12:58 seemingly it is doing something, no errors thus far. :) Jun 30 09:13:13 It's in a GlSurface.Renderer Jun 30 09:13:20 also, to programmatically access a color, make a 'color' file in res and put your color assets in there. Then you can just do R.color.name and access that asset Jun 30 09:13:30 Ok Jun 30 09:13:34 That gives me a resourceID though Jun 30 09:13:39 I need an actual colour Jun 30 09:13:44 BigZ: use application context and .getResources().getColor(R.color...) Jun 30 09:13:52 you can parse a hex Jun 30 09:14:01 Colors.parseColor(#000000); Jun 30 09:14:13 icedp Is it safe to multithread a context? Jun 30 09:14:48 yes I do seem to have a virtual android device Jun 30 09:14:55 ^grats! Jun 30 09:15:01 glad that worked Jun 30 09:15:11 it is a bit too large though Jun 30 09:15:16 BigZ How would I get a hex from a resource? Jun 30 09:15:19 occupying the entire height of my screen Jun 30 09:15:39 BigZ: resources don't change (until config changes) anyway Jun 30 09:15:39 is there a way to make it half as high? Jun 30 09:15:44 Binero: ^ Jun 30 09:15:49 BigZ: mishit Jun 30 09:16:33 hmm Jun 30 09:16:53 I suppose it's safe to get the resource in a separate thread then Jun 30 09:17:53 Binero you mean to get the value stored in the res file by passing it the resID? Jun 30 09:18:06 ToAruShiroiNeko: You can change the resolution while creating the AVD Jun 30 09:18:42 BigZ I want to read the colour from the resource file without using my context preferably as Google has taught me multithreading a context is very usafe Jun 30 09:18:45 *unsafe Jun 30 09:19:08 yes, but the name of the color or the hex value itself? Jun 30 09:19:12 although as icedp pointed out I can seel little reason for it to go wrong as I will only be reading constants Jun 30 09:19:24 Binero: use application context. in your extends Application class make a Context getAppContext which will return a field which is set in onCreate: appContext = this Jun 30 09:19:31 BigZ Right now I am using primaryAccent but that might change Jun 30 09:19:39 you can acquire the name of the color asset with getResources().getResourceEntryName(int resid); Jun 30 09:19:40 ah Jun 30 09:20:38 icedp seems like in that case I can just ask for the context in my constructor Jun 30 09:20:48 ah, yes I see it now Jun 30 09:21:37 is there a way I can download AVDs? I know I can create them manually and it is hardly difficult but I would prefer using a list of them, matching specs of popular devices Jun 30 09:22:15 ^I'm new to this IRC, am I allowed to suggest they use a non-official AVD emulator? Jun 30 09:23:27 ToAruShiroiNeko: there are many templates for AVDs already in Android Studio Jun 30 09:26:26 ToAruShiroiNeko: I mean there are AVDs for most of the Nexus devices, but you can easily add a template too, like I did for my Motorola Moto G Jun 30 09:33:44 hi Jun 30 09:34:45 hey Jun 30 09:43:04 is there a way to play a sound file though the ear speaker ? Jun 30 09:44:53 markpollard: are you writing an app using the Android SDK? Jun 30 09:45:06 half and half Jun 30 09:45:26 I am creating an android plugin for unity3d Jun 30 09:45:54 so i am trying to pass a sound file to the android from unity3d Jun 30 09:46:39 http://developer.android.com/guide/topics/media/mediaplayer.html Jun 30 09:46:55 Leeds: yes i have been reading this http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece Jun 30 09:47:19 you might also want to be clear about what 'ear speaker' means Jun 30 09:48:18 On a phone the ear speaker is what you use in coversation Jun 30 09:48:28 to listen to the other person Jun 30 09:48:32 the reciever Jun 30 09:50:47 ah, as opposed to the mouth speaker Jun 30 09:52:37 Leeds: well you have separate speakers fro the music noramlly Jun 30 09:52:59 ok Jun 30 09:54:39 is there a way to put a sound file into my android project so i don't have to pass the sound file in from unity ? Jun 30 09:55:41 so you haven't actually read any of the Android docs, have you? meh... Jun 30 09:56:27 Leeds yes i have actually Jun 30 09:58:42 When onQueryTextChange is called for a SearchView I query a ContentProvider and get back a CursorLoader, the returned data consists of two rows which both have the same value for a column, but in the UI I see only one row, why? Jun 30 10:00:16 heh - mouth speaker Jun 30 10:00:35 the UI gets data from a CursorAdapter that gets its data from LoaderManager.LoaderCallbacks interface that the activity implements Jun 30 10:02:20 If two rows have the same column value, shouldn't you only see one row? Jun 30 10:02:32 In that they're overlapping? Jun 30 10:02:34 no, why? the data is not the same for all the columns Jun 30 10:02:49 maybe I misunderstand Jun 30 10:03:04 I filter by that column and by another one Jun 30 10:03:17 Oh, misread. Jun 30 10:04:10 The log in my onLoadFinished method says there are two rows , i.e. the count in the cursor after I filter Jun 30 10:04:19 but on the UI I see one Jun 30 10:04:45 and the swap is done with the data from the cursor, i.e. dataCursorAdapter.swapCursor(data) Jun 30 10:05:39 weird stuff Jun 30 10:06:41 Stupid question, but are you updating the UI accordingly? Even if you think you are, make sure. Jun 30 10:10:35 BigZ, I don't need to call any datasetchanged method as the UI changes automatically when the underlying cursor data changes. I'm following this example http://developer.android.com/guide/components/loaders.html#example Jun 30 10:17:15 http://i.imgur.com/0j7uJxC.png Why when I force gc, the heap size grows? Jun 30 10:20:07 yoavst: memory leak? try leak canary Jun 30 10:20:17 O.o Jun 30 10:20:24 You just said something silly :P Jun 30 10:20:39 I've spent the last 6 hours on fix memory problem with bitmaps Jun 30 10:20:45 not a stupid memory leak :P Jun 30 10:21:01 * surf2b1 goes to sleep Jun 30 10:21:54 Actually the problem was because of drawable folder, I had to put images at drawable-nodpi Jun 30 10:22:13 but I've also used BitmapFactory.loadResource to scale on loading Jun 30 10:23:14 So anyone got an idea why System.gc increase heap size? Jun 30 10:30:42 because GC thinks your previous heap size won't be enough Jun 30 10:32:39 I wouldn't worry about that. that will go down later Jun 30 10:33:05 the important things that allocated mem is not building up Jun 30 10:36:40 good morning. anyone familiar with Google Fit? Is it just a repositiry for health and fitness information that can be shared between apps like Apple's HealthKit? Jun 30 10:37:28 http://i.imgur.com/fpeoMdy.png Should I research why it goes up for a second? Jun 30 10:38:41 yoavst: depends of the magnitude Jun 30 10:40:09 icedp: It is because of 6 nodpi 70x70 loaded drawable Jun 30 10:40:17 but what I don't get why it goes down after a second Jun 30 10:40:23 they still on the memory Jun 30 10:41:32 yoavst: maybe some other objects are freed, maybe GC decides it's time to collect because. hard to tell. you could use allocation tracker Jun 30 10:42:25 icedp: ddms or AS? Jun 30 10:43:45 i am having a problem paying a sound file thats is the res/raw Jun 30 10:43:50 mPlayer = MediaPlayer.create(AndroidBridge.this,R.raw.sound); Jun 30 10:44:00 i am not getting an error though Jun 30 10:45:55 yoavst: ddms in device monitor is better IIRC Jun 30 10:47:49 told him yesterday Jun 30 10:48:56 Yesterday it didn't work :P Jun 30 10:48:57 http://i.imgur.com/0jg2OTm.png Jun 30 10:49:03 what is nonmovable array? Jun 30 10:49:44 that's how the memory is being stored Jun 30 10:50:52 For some reason Android isn't calling my onDrawFrame in my Renderer for GLSurfaceView Jun 30 10:51:13 it calls onCreate, onSurfaceChanged, but not onDrawFrame Jun 30 10:51:28 So the allocations view is not much helpful Jun 30 10:51:35 I have it set to RENDERMODE_CONTINUOUSLY btw Jun 30 10:54:06 yoavst: you test on Dalvik not ART? Jun 30 10:55:33 icedp: ART Jun 30 10:55:41 can I open Hprof with Android studio yet? Jun 30 10:55:52 or it wasn't added. I remember it was on IO Jun 30 11:04:50 is there anything special with LinearLayoutManager in respect to GridLayoutManager ? My (vertical) linearlayoutmanager does not give its items any space to live in Jun 30 11:05:02 when i use a gridlayoutmanager with 1 column it works fine Jun 30 11:05:58 Good afternoon all Jun 30 11:07:51 Does anybody know a way of using the overflow menu that is used in the Toolbar elsewhere? I'm trying to use it on a custom View but don't want to simply create an ImageButton which opens a PopupMenu - it doesn't look identifcal. Jun 30 11:20:20 I am trying to play a audio file but having problems Jun 30 11:20:41 mPlayer = MediaPlayer.create(AndroidBridge.this, R.raw.sound); mPlayer.start() Jun 30 11:20:49 but i cannot hear anything Jun 30 11:24:33 OpenGL ES is the root of all evil Jun 30 11:25:16 can't seem to port this code I wrote before in OpenGL 3.1 to OpenGL ES 2.0 Jun 30 11:26:05 <\0x90\> hi. having a headache doing location thing. did I understand correctly that if phone has no internet connectivity, registered location listener will not receive any updates ? Jun 30 11:26:43 markpollard, what device are you using? Jun 30 11:27:02 <\0x90\> (i was intending to store location updates in local DB while user is offline, then upload the coordinates after user get's connected at some point in time) Jun 30 11:27:42 <\0x90\> from network_provider Jun 30 11:28:09 Try this: Jun 30 11:28:09 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 20, 0); Jun 30 11:28:25 After a quick google search it seems your media volume is likely to be 0 Jun 30 11:29:36 oh ok Jun 30 11:37:32 hey guys, is there any chance anyone here using appium to test his app? I'm trying to validate a text field with an error and can't seem to find a way to do it Jun 30 11:39:34 hey,im using viewpager inside a listview row,i need to set a unique id to viewpager Jun 30 11:40:25 i tried position but it works like this 1,2,3,4 1,2,3,4 Jun 30 11:40:51 i was thinking to add ids myself as index++ Jun 30 11:40:56 but i dont know its the best way ? Jun 30 11:50:50 ./hprof-conv: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory Jun 30 11:50:58 http://stackoverflow.com/questions/24158727/android-sdk-aapt-error-libstdc-so-6-cannot-open-shared-object-file Tried anything from here Jun 30 11:53:44 yoavst, ldd it, what does it look for? Jun 30 11:53:48 and which distro? Jun 30 11:55:17 http://i.imgur.com/dyBFZ8Q.png Jun 30 11:55:20 be back in 10 min Jun 30 11:57:00 yoavst, quick check shows that it should be in either libc++-dev or libc++-dev:i386 depending on hprof-conv arch Jun 30 12:07:27 hey guys how could i draw lines between points in an array without crossing Jun 30 12:07:33 Mavrik: back. can you explain? Jun 30 12:08:08 Oh ok. I'll install Jun 30 12:08:38 I had to install the 32bit, thanks. Jun 30 12:09:25 i have a CardView with inside 2 viewgroups, one of which i want to collapse and expand. How can I make the cardview keep wrapping the content? I try viewgroup.animate().translationY(100).start() but nothing seems to happen Jun 30 12:12:50 One instance of "byte[]" loaded by "" occupies 37,454,416 (31.14%) bytes. The memory is accumulated in one instance of "byte[]" loaded by "". Jun 30 12:13:35 37MB bitmap? :/ Jun 30 12:14:26 How do I use MAT to see who created it? Jun 30 12:20:34 http://i.imgur.com/I2bI4Ri.png I don't even use chromium nor webview in my app Jun 30 12:26:01 someone should have tell you that it is not straight-forward to profile if you're new to this yoavst Jun 30 12:26:20 you really need to understand what you're observing and profiling first Jun 30 12:26:36 otherwise you cannot do much with these information Jun 30 12:27:09 adq: why do I profile? Jun 30 12:27:37 i thought you were tracking allocations Jun 30 12:28:03 but i cannot really answer why you are doing this or doing that lol, it's up to you Jun 30 12:29:00 I mean, if you asks why do I profile. I profile because I found that when I enter activity the memory usage grows by 30mb Jun 30 12:29:00 and bitmap takes a huge amount of memory abviously Jun 30 12:29:04 obviously* Jun 30 12:29:28 you multiply the width with the height with "size of" of the format (like ARGB8888 is 4bytes iirc) Jun 30 12:29:32 w * h * 4 Jun 30 12:29:33 and in this activity, I don't use any bitmap that may be able to use 30MB of memory Jun 30 12:29:39 there are no mystery here Jun 30 12:29:53 adq: Yes I know, but I don't use that big bitmap Jun 30 12:29:53 bitmap is raw Jun 30 12:30:00 ok Jun 30 12:30:19 many things are allocated out of your control, test on an empty activity Jun 30 12:30:30 you will see many of the default resources being allocated Jun 30 12:30:38 and already taking a non decent of space, even if you don't use them Jun 30 12:30:44 it goes even bigger if you have many libraries, etc Jun 30 12:30:52 It says that it comes from org.chromium.android_webview Jun 30 12:31:00 no you read that you think it comes from Jun 30 12:31:07 i cannot explain that too Jun 30 12:31:22 http://i.imgur.com/WT8NFY5.png Jun 30 12:31:23 you should use the old DDMS anyway, it's more easier until they polished the ones in AS Jun 30 12:31:38 especially if you're not familiar Jun 30 12:31:49 yeah you already pasted this screenshot Jun 30 12:32:44 if you have a lib dependency issue preventing you to use it, fix it Jun 30 12:32:53 (i saw the ldd screen too) Jun 30 12:32:57 hey guys, i have a layout with 20 switches and some rules like "if switchA isChecked so uncheck switch B, C, D" but now when i click on a switch with this rules the color changes button the button stay on the "off" side and the same happens to other switches. Any tips? Jun 30 12:33:45 adq: so what should I do inside it? Jun 30 12:33:59 inside what? Jun 30 12:34:24 Carefully explaining your problem is half the solution. Jun 30 12:35:39 adq: When I enter an activity, the memory usage jumps from 30 to 60mb Jun 30 12:36:40 that's a big jump indeed, first thing is what you are trying to do, understand where this additional amount of memory is coming from Jun 30 12:37:16 How. Jun 30 12:37:41 :x Jun 30 12:37:53 yoavst, maybe you can use another (not the best but more easier) approach Jun 30 12:38:01 you comment everything in your activity Jun 30 12:38:06 you observe how much the jump is Jun 30 12:38:19 then you start uncommenting and track down where it comes from in your code Jun 30 12:38:36 but seriously, you have many tools available this has already been discuss, it's up to you to learn and understand them now Jun 30 12:38:59 this is how you saw the loadicon issue yesterday Jun 30 12:39:03 if i remember correctly Jun 30 12:39:17 that's also revealing you copy/paste code without caring much of what is inside Jun 30 12:39:30 this is another strong issue, i did not want to argue yesterday about that, but it's not about being "old" code Jun 30 12:39:45 it's about you borrowing piece of code without filtering what you need and don't Jun 30 12:39:48 now i said it. Jun 30 12:39:58 I fix the load icon Jun 30 12:40:07 this is how you saw the loadicon issue yesterday Jun 30 12:40:09 I've fixxed Jun 30 12:40:11 i got that.. Jun 30 12:43:09 Is it possible to get a full-screen DialogFragment to appear over a TabLayout (so the TabLayout is hidden) but below an ActionBar? Jun 30 12:51:46 hmblcodr: Yes. Jun 30 12:59:05 barq: How? I can get it totally full-screen using android:R.id.content. If I use my own FrameLayout for the dialog, the tabs are of course still visible. Jun 30 13:00:25 hmblcodr: What do you mean by visible? Is the DialogFragment not on top? Jun 30 13:01:18 There is an actionbar, which can be seen. Below that the TabLayout with tabs, which can be seen, and then below that the dialog inside a FrameLayout. Jun 30 13:06:03 hmblcodr: I thought you were able to get it full-screen Jun 30 13:06:23 hi androidists Jun 30 13:06:31 using android sdk tools in linux Jun 30 13:06:35 barq: yes, but then it's completely full-screen, covering the action bar and the tabs. I'd like to see the action bar but not the tabs. Jun 30 13:06:35 how to install android targets? Jun 30 13:06:37 Why don't you use an Activity hmblcodr Jun 30 13:06:50 i am using cordova Jun 30 13:06:59 barq: on tablets the dialog won't be full-screen. Jun 30 13:07:23 If you use an Activity? Jun 30 13:07:54 barq: using the dialogfragment. that's not possible with an activity...or put better...that's what a dialogfragment is good for. Jun 30 13:08:38 hmblcodr: Why do you need a DialogFragment here? Jun 30 13:09:59 hmblcodr: What layout are you using? Jun 30 13:10:11 barq: On a mobile device, I want the dialog full-screen but with the actionbar showing, which will contain a save button. On a tablet, however, there is more room, so the same dialog will show up normally (not fullscreen). Jun 30 13:10:47 hmblcodr: What layout Jun 30 13:11:38 Root is a LinearLayout which contains a CoordinatorLayout with all the appbar stuff (toolbar and tabs). In the LinearLayout I have the ViewPager. Jun 30 13:12:03 hmblcodr: Paste your layout for the DialogFragment. Jun 30 13:13:28 barq: http://pastebin.com/KSYXG5TW Jun 30 13:13:40 oops that's not it Jun 30 13:14:10 barq: it's just a scrollview with a relativelayout, nothing special Jun 30 13:14:57 hmblcodr: Try using a LinearLayout. Jun 30 13:36:30 hey y`all, i wanted to finish my current project before switching to android studio, but i couldnt download the latest sdk, maybe because ma adt wasnt up to date. I tried to update adt but no success. Is it even possible to get latest ask (API22) into eclipse? Or should i switch to AS now? If so: is it a big effort to get used to it? Jun 30 13:39:41 "WARNING [Project: :app] Current NDK support is deprecated. Alternative will be provided in the future." any information on alternative? Jun 30 13:41:46 http://stackoverflow.com/questions/28712429 Canary builds (AS 1.3) has support. i just need gradle. Jun 30 13:43:01 http://tools.android.com/recent/androidstudio13betaavailable "Sorry, this build does not yet contain the C/C++ support" looks like their is still not Jun 30 13:43:43 can anybody explain me what is going on? Jun 30 13:45:05 adkins: You can get latest SDK updates on Eclipse. Jun 30 13:45:34 adkins: You should still switch to AS though. Jun 30 13:45:44 barq: i can see only updates until 19 Jun 30 13:45:58 guys Jun 30 13:46:00 cordova saying: Jun 30 13:46:09 > No installed build tools found. Please install the Android build tools version 19 or later Jun 30 13:46:34 adkins: Then you are doing something wrong. Jun 30 13:46:45 barq: i`d like to finish my app and publish before learning android studio....is that a problem/negative effects? Jun 30 13:47:09 adkins: Depends on your project and how many/type of dependencies you have + your build process. Jun 30 13:47:15 barq: starting sdk manager.......what else do i need to do? Jun 30 13:47:36 adkins: Download the SDKs you need. Jun 30 13:47:50 i can only see up to 19 for download Jun 30 13:48:08 adkins: Do reload Jun 30 13:48:16 doesnt change Jun 30 13:48:19 barq: any idea bro? Jun 30 13:49:21 adkins: Check for ADT updates, help -> check for updates Jun 30 13:49:59 DelphiWorld: Install build tools version 19 Jun 30 13:50:17 barq: so that's something else, not the sdk? Jun 30 13:50:31 DelphiWorld: Yes. You can download it in SDK manager Jun 30 13:50:45 barq: any idea using commandline please? Jun 30 13:50:51 barq: i'm blind so i work only in shell Jun 30 13:50:56 barq: checking updates doesnt find adt updates Jun 30 13:51:23 adkins: What version of ADT to you have? Jun 30 13:51:40 v22.3.0-887826 Jun 30 13:53:37 adkins: There is a newer one. Jun 30 13:54:35 where do i get it, how should i install it. i tried a few ->help-> install new software but had dependency conflicts or something Jun 30 13:54:48 adkins: Waht version of SDK tools do you have? Jun 30 13:57:12 adkins: Then you need to sole your conflicts. Or something is not an error I can help with. Jun 30 13:57:17 Also make sure you have the update site https://dl-ssl.google.com/android/eclipse/ Jun 30 13:58:09 Cannot complete the install because of a conflicting dependency. Software being installed: Android Development Tools 23.0.6.1720515 (com.android.ide.eclipse.adt.feature.feature.group 23.0.6.1720515) Jun 30 13:58:20 Yes, taht's the version you want adkins Jun 30 13:59:47 but " conflicting dependency" Jun 30 14:03:31 adkins: Try #eclipse Jun 30 14:03:52 barq: update: got it Jun 30 14:03:56 barq: android update sdk -u -a -t 5 Jun 30 14:04:01 where 5 is the package number Jun 30 14:06:27 barq: i am on windows, tried it as Administrator, tried to uninstall old adt,......always same error Jun 30 14:06:42 adkins: You are not posting what your actual problem is Jun 30 14:06:49 Try #eclipse Jun 30 14:06:53 Or migrate to AS Jun 30 14:06:58 be back later Jun 30 14:07:03 good luck Jun 30 14:15:27 https://github.com/LGDeveloper/QCircle-Design-Template/issues/23 so it wasn't my problem after all :) Jun 30 14:58:55 ugh, awesome... so, I implemented sha and aes in ndk for my app, but the performance only improved by maybe 10% in loading my file... Jun 30 14:59:01 profiled the code on the jvm, and it's too damn fast Jun 30 14:59:12 traceview on android doesn't show any shit properly Jun 30 14:59:14 grrr Jun 30 14:59:25 yeah its amazing how fast the JVM is these days Jun 30 14:59:42 it's showing all the time spent in the wrong things, and not in the code that's actually slow... Jun 30 14:59:46 my native MD5 code only outperformns the java code by some 15% or so as well Jun 30 15:00:11 (but I'm using some weird instance where the JIT isn't always used somehow, and then its 400% or so faster) Jun 30 15:00:17 but there's absolutely no reason that reading a 50kb file should take ~2 seconds... Jun 30 15:00:26 nope, there isn't :D Jun 30 15:00:34 but traceview won't show me why... Jun 30 15:00:55 time for excessive logging and commenting out semi-random lines :) Jun 30 15:01:27 connect profiler/debugger? Jun 30 15:02:29 p_l, like I said, traceview isn't showing anything correctly Jun 30 15:05:37 * pfn tries attaching traceview one more time Jun 30 15:10:12 http://ezscreens.appspot.com/view/3bd2/traceview+for+keepshare Jun 30 15:10:14 ugh, that's all wrong Jun 30 15:10:39 keyFor/generateSecret take 0 time without traceview... Jun 30 15:10:55 Hey guys - I moved some junk away from my main activity, and now my app is crashing on the .onCreate using the previous savedInstanceState/bundle - How do I get my app to clear this out? Jun 30 15:13:25 hmm, sample based profiling showing something useful, though Jun 30 15:15:12 ooh, interesting, new SimpleDateFormat is killing me Jun 30 15:15:44 and subsequent parsing Jun 30 15:16:24 Greetings, fellow nerds^^ my boss told me to find some standalone (no need for a smartphone) smartwatches with integrated cameras. So far I found some china-devices but nothing with a well-known brand name on it. Has anyone some experiences with android smartwatches and/or some recommendations? Jun 30 15:16:51 pfn yeah SDF is known for its slowness... Jun 30 15:16:57 i want to upload a list of files using jsch using async task after boot complete. it is detecting the boot complete but not uploading files. jsch connect and than disconnect instantly. ? any suggestion ? Jun 30 15:17:47 s9iper1 if you're using a BOOT_COMPLETED receiver, AsyncTask is not the way to go. Use a(n) (Intent)Service instead. Jun 30 15:17:50 s9iper1: maybe the network is not initialized right after boot Jun 30 15:17:57 Chainfire, what are the alternatives? I suppose I could write my own parser... Jun 30 15:18:28 Ponsen: Android Wear is meant to be used with a device. Maybe you can connect it to emulator though. I'm not sure Jun 30 15:18:38 Ponsen, what do u suggest than how should i handle it ? Jun 30 15:18:39 pfn not sure, depends on what you're doing... Jun 30 15:18:41 pfn, did you try systrace? :) Jun 30 15:18:51 icedp: I Jun 30 15:19:05 SDF is slow because it has to load locale data which is slow :) Jun 30 15:19:06 Mavrik, dunno what systrace is, I just use traceview (or what looks like it in ddms), this time with sample based profiling, which turns up proper results Jun 30 15:19:10 Try JodaTime perhaps? Jun 30 15:19:11 I don't want any devices with android wear Jun 30 15:19:23 pfn, well, use systrace, TheOtherProfiler(tm) Jun 30 15:19:28 might see more there :) Jun 30 15:19:42 http://ezscreens.appspot.com/view/52b9/keepshare+sample+based+profiling Jun 30 15:19:48 Chainfire: basically I need a smarthphone, small enough to be a watch^^ Jun 30 15:19:56 Intent service is a type of service how should it help in my condition Chainfire ? Jun 30 15:20:32 Chainfire: are you THE Chainfire? Jun 30 15:20:37 I remember seeing some websites/programs that will basically build an android app for you sort of like a smart WYSIWYG ... I know they arent very advanced, but are any of them capable of creating a program, that could take data send an email or transmit data via FTP or something at the press of a button. I need a user interface system for something I am building and a cheap android tablet would be perfect. But being Jun 30 15:20:38 that im no good with java let alone the underbelly of android I cant really just whip up a program. Jun 30 15:20:55 Mavrik, I'll give systrace a try some time, thanks Jun 30 15:21:09 Yeah, it has crappier UI but it actually shows system-wide events Jun 30 15:21:19 So you see crap like texture upload and IO killing your app Jun 30 15:21:20 * pfn ponders wat do about sdf Jun 30 15:21:49 As I said, apparently JodaTimeAndroid is the sane way to work with dates and times :) Jun 30 15:22:06 yeah, this just happens to be on my library code that I intend to be usable on the jvm as well Jun 30 15:22:25 s9iper1 an IntentService pretty runs async as well, while an AsyncTask started from a BroadcastReceiver may be killed at *any* time Jun 30 15:22:46 jodatimeandroid is different from plain jodatime? hmm Jun 30 15:22:57 ok let me try Jun 30 15:23:01 thanks Chainfire Jun 30 15:23:15 pfn, yeah, someone rewrote it without the bloat apparently Jun 30 15:23:21 since desktop lib is huge Jun 30 15:23:27 I see, using resources vs. getResourceAsStream Jun 30 15:25:30 Chainfire, one more thing i am already using Service and starting that boot complete inside that i am running task fot upload it i use Intentservice instead of service that will do the job fine ? Jun 30 15:25:42 without effecting other functionality Jun 30 15:28:27 s9iper1 you're confusing me. one doesn't use an async task inside a service, generally Jun 30 15:29:36 ok Jun 30 15:37:50 names #android-dev Jun 30 15:39:20 hello android-devs, i've got a partially borked system partition and I want to make some copies of stuff before I reflash. thankfully i can get into twrp recovery, but my adb daemon doesn't seem to be on. how can i turn on usb debugging from within twrp recovery? Jun 30 15:39:57 i can get shell in twrp i just dont' know what to say to enable usb-debugging. at the moment, phone plugged into the computer but adb on the computer says "no devices". Jun 30 15:40:21 jcrowgey, you're probably better off in #android-root, we're appdev centric here, rather than os/rom stuff Jun 30 15:40:39 Hi dragorn Jun 30 15:41:37 Hello Jun 30 15:41:41 dragorn: ok, thanks for the tip, i'll try that channel. Jun 30 15:42:09 I still haven't solved my problem Jun 30 15:42:37 any ideas on how to solve it Jun 30 15:43:37 george3, Either you need the usb accessory API, which I've never implemented the host side of, and especially not on windows, or you can use a bluetooth rfcomm channel if you're not doing a tremendous amount of data. I don't have any other suggestions. Jun 30 15:44:18 but wouldn't usb transfer be faster Jun 30 15:44:37 sure, but a hell of a lot harder to code and a lot more windows-side stuff to deal with Jun 30 15:45:00 which is why I referenced the amount of data you're sending. I have no idea how much data you need to transfer and if BT is appropriate Jun 30 15:45:03 but it's what I'd look at first Jun 30 15:45:46 I require to send a constant stream of data (mostly integers) Jun 30 15:45:55 hi every body Jun 30 15:46:01 george3 can you use adb ? Jun 30 15:46:13 i have problem with android SSL for HTTPS Post method Jun 30 15:46:45 george3, well, figure out how much bandwidth you need and see if BT is appropriate. If you don't care how much hassle you have on the windows side getting drivers and the host code running, look at the usb accessory protocol and use that instead Jun 30 15:47:16 i can Post Json to Server in HTTP , but when i try this on HTTPS , i have problem Jun 30 15:47:24 U mean I have to write a custom driver Jun 30 15:48:04 i searched may sites az stackoverflow and ... Jun 30 15:48:21 Chainfire what do u mean by can u use adb Jun 30 15:48:29 but the sample codes didn't work for me Jun 30 15:48:40 Anyone have any good examples of unit testing with Dagger2, only examples ive found involved manually setting a test component... Jun 30 15:48:57 I'm not sure what solution you are using, but you connect the phone via USB to a PC. Can you use adb in this context? Jun 30 15:49:10 Hey Chainfire :) Jun 30 15:49:23 because adb can forward ports. So you could have you Android app connect to the port, and just write to it like a socket. Same thing on the PC Jun 30 15:49:31 hey jug6ernaut Jun 30 15:49:44 I'm launching a second Activity from my MainActivity. In that second Activity, I'm adding a retained fragment to the fragment manager. Something like: if (myFragment == null) { myFragment = new MyFragment(); fm.beginTransaction().add(myFragment, TAG_MY_FRAGMENT).commit(); } Problem is, myFragment is always null upon configuration change. Yet in the MainActivity, this same code works fine. Jun 30 15:49:45 Does anybody know why? Jun 30 15:50:05 you'd have adb take care of the USB communication, but you still get all the speed ... Jun 30 15:50:08 i'm open to any solution,;however, the one I found was the USB host and accessory mode Jun 30 15:50:27 well, then I would suggest you look into this :) Jun 30 15:50:42 my function works on http but doesn't worked for https Jun 30 15:50:44 public DefaultHttpClient getClient() { Jun 30 15:50:44 DefaultHttpClient ret = null; Jun 30 15:50:44 Jun 30 15:50:44 //sets up parameters Jun 30 15:50:44 HttpParams params = new BasicHttpParams(); Jun 30 15:50:45 HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); Jun 30 15:50:49 HttpProtocolParams.setContentCharset(params, "utf-8"); Jun 30 15:50:51 params.setBooleanParameter("http.protocol.expect-continue", false); Jun 30 15:50:53 Jun 30 15:50:55 //registers schemes for both http and https Jun 30 15:50:57 SchemeRegistry registry = new SchemeRegistry(); Jun 30 15:50:59 registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); Jun 30 15:51:01 final SSLSocketFactory sslSocketFactory = SSLSocketFactory.getSocketFactory(); Jun 30 15:51:03 sslSocketFactory.setHostnameVerifier(SSLSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER); Jun 30 15:51:05 Far7ad >>> pastebin.com or gtfo Jun 30 15:51:05 // sslSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); Jun 30 15:51:07 registry.register(new Scheme("https", sslSocketFactory , 443)); Jun 30 15:51:09 Jun 30 15:51:09 -_- Jun 30 15:51:10 Do u have any sources so I can understand what u mean Jun 30 15:51:11 ThreadSafeClientConnManager manager = new ThreadSafeClientConnManager(params, registry); Jun 30 15:51:13 ret = new DefaultHttpClient(manager, params); Jun 30 15:51:15 return ret; Jun 30 15:51:19 } Jun 30 15:51:30 ... Jun 30 15:52:11 SilentByte are you trying to use the same fragment instance(!) across different activies? Jun 30 15:52:34 No, MainActivity has its own (different) retained fragment Jun 30 15:52:39 ok thats my source code : http://pastebin.com/VkikBH4h Jun 30 15:53:16 Far7ad, please use something like pastebin instead of pasting it all into the channel Jun 30 15:53:17 george3 no... I have used it once though. 'adb forward' I think the command is. Then you can talk to the PC using a normal socket. You're going to have to figure out further implementation yourself. Jun 30 15:53:20 oh someone said that already Jun 30 15:53:52 dragorn, ok sorry i didn't know Jun 30 15:53:55 is Calendar slow on android? Jun 30 15:53:57 hope not... Jun 30 15:54:15 SilentByte sorry then your problem doesn't ring a bell Jun 30 15:54:22 but doesn't the socket method require wifi Jun 30 15:54:34 why would it Jun 30 15:54:38 please some one help me ... Jun 30 15:54:43 a socket is a socket, regardless of what/who you're talking with Jun 30 15:55:26 All the examples i've seen for socket client/server communication used wifi Jun 30 15:55:43 if examples covered all use cases, we would all be out of jobs Jun 30 15:58:28 One last thing, if I use the socket method do I ignore the USB host and accessory method Jun 30 15:58:51 if you can make the socket method work, you do not need to consider USB host/accessory at all Jun 30 15:58:57 (adb takes care of all that for you) Jun 30 15:59:55 So what ur saying is that the socket method doesn't require a custom driver but the USB host and accessory method does Jun 30 16:00:16 not bad, changed my SimpleDateFormat to basic Calendar/String parsing and my database open went from 2000ms to 500ms Jun 30 16:00:36 pretty much... Jun 30 16:01:13 OK, and do u know how to send the data directly into a c++ project Jun 30 16:02:19 I thought we covered this already Jun 30 16:02:31 what does it matter that it's c++? Jun 30 16:02:41 O, hi guys Jun 30 16:02:44 use adb to set up the port forward, have a c++ socket server listening on one side, and a c++ socket client connecting from the other. transmit data. done Jun 30 16:03:14 I'm sorry I still couldn't sove it so I thought I'd ask again Jun 30 16:03:17 any further detail belongs in a Computer Science 101 class Jun 30 16:03:59 hello Jun 30 16:04:11 does using admob add permissions to an app? Jun 30 16:04:30 nothing can add permissions to an app for you Jun 30 16:05:14 I recently updated my app's play-services dependencies to 7.5.0 Jun 30 16:05:33 I was surprised that my app required 10 permissions when I uploaded it to the playstore Jun 30 16:05:53 you misunderstood something Jun 30 16:06:04 previously it was just 5. and it's just 5 on my manifest Jun 30 16:06:43 something added permissions to my app Jun 30 16:07:46 http://stackoverflow.com/questions/30658439/why-are-permissions-being-automatically-added-to-my-androidmanifest-when-includi Jun 30 16:08:15 I have an image, and I want to reference a point on the image like this example: http://i.imgur.com/tcbAJf9.png. Any suggestions on how to achieve this? Jun 30 16:08:39 found the answer adq ^ Jun 30 16:09:19 quinnjn, you need to handle the shape area in onTouchEvent and find if x and y of the touch are inside or outside Jun 30 16:09:31 this is a bit tricky since it's not a simple shape as a square, or at least a circle Jun 30 16:10:17 adq, sorry I should explain more. The image won't be touchable. What I want is when an edit text is clicked, I want a line to point to a coordinate on the image Jun 30 16:10:39 ah then you can use drawPath with a canvas Jun 30 16:10:48 and have your path already mapped (it's similar to svg) Jun 30 16:10:53 it's more simple Jun 30 16:11:00 than what i thought you wanted, originally Jun 30 16:11:11 adq: Hmm interesting. So if I had a SVG I could create some anchor point to reference? Jun 30 16:11:26 * pfn chases down performance gremlins now Jun 30 16:11:27 there is a way to convert an svg to a vectordrawable Jun 30 16:11:46 but underthehood, it's just a path Jun 30 16:12:20 quinnjn, http://developer.android.com/training/material/drawables.html#VectorDrawables Jun 30 16:12:30 but i would use a regular path if I were you :) Jun 30 16:12:38 until vectordrawable maturates a bit more Jun 30 16:12:49 adq: Cool, I'll take a peek into this. Thanks! Jun 30 16:14:34 Hey does anyone have a good example on viewing a user's calendar events on an app? Jun 30 16:16:51 will adding a bluetooth permission require manual updating? Jun 30 16:17:02 (like it prompts the user to allow the update) Jun 30 16:17:44 hi, Jun 30 16:17:59 what apk packer ppl use to prevent easy-unpacking ? Jun 30 16:18:04 security purpose. Jun 30 16:18:45 no such thing Jun 30 16:18:49 you could look at dexguard monkeyisl (it's not free, and it has been defeated) Jun 30 16:18:50 monkeyisl: is it code you're trying to protect? minifying is usually enough. Jun 30 16:18:58 whatever jcase is using, because he cracks allt he other ones Jun 30 16:19:08 there are no such thing as pfn said, you can only make the task harder for the attacker Jun 30 16:19:24 lol Chainfire ;) Jun 30 16:19:26 dexguard isn't worth the hassle Jun 30 16:19:40 been there, done that, broke in interesting ways, not secure Jun 30 16:19:46 it prevents easy-unpacking Jun 30 16:19:53 yes, even microsoft's heavily obfuscated Kernel Patch Protection is broken. Jun 30 16:19:58 in the end it created more issues for my users than it had benefits... Jun 30 16:19:59 but i said it, it has been defeated anyway Jun 30 16:20:04 yeah Jun 30 16:20:12 on the same fashion, i removed LVL from my apps Jun 30 16:20:16 it sux too much Jun 30 16:20:22 and the trade off is too bad for the user Jun 30 16:20:27 and for the dev too Jun 30 16:20:29 all I use is proguard pretty much Jun 30 16:20:39 yes but i'm sure ppl won't spend much time for my trash as long as it packed in someway.. Jun 30 16:20:46 alright, I'm happy, database opens down to 481ms Jun 30 16:20:49 you could move everything in the ndk side or inside renderscript Jun 30 16:20:51 responsive enough for me Jun 30 16:20:56 I do still use LVL, but with a custom loose policy (in other words, the user could just turn the internet off and it'll run forever, hehe) Jun 30 16:21:00 program in an alternative language Jun 30 16:21:01 it's a bit less easy to depack compared to java Jun 30 16:21:05 makes decompiling very difficult Jun 30 16:21:08 Chainfire: what specifically in proguard? Jun 30 16:21:11 since no one bothers writing decompilers for non-java Jun 30 16:21:11 just magnification? Jun 30 16:21:18 *minification Jun 30 16:21:22 yeah Jun 30 16:21:25 same Jun 30 16:21:36 pfn hexrays much? Jun 30 16:21:53 my living used to be decompiling and patching and hacking Jun 30 16:21:58 Chainfire, well, disassembling is a different story Jun 30 16:22:15 * adq brings popcorn Jun 30 16:22:33 if you can read the bytecode well enough, doesn't matter what language it's in, or that it's obfuscated Jun 30 16:22:36 all I'm saying is that someone will put in the effort, he will get there :) Jun 30 16:22:50 *if Jun 30 16:23:04 monkeyisl, just move your stuff to some C code with NDK or RS, it will do what you ask Jun 30 16:23:08 prevent easy-depack Jun 30 16:23:28 of course, don't think of hiding a single string in it, cause a simple grep would reveal it Jun 30 16:23:39 write your own in memory en/decryption thing and don't use it for anythign else Jun 30 16:23:51 i think he just want to defeat apktool & co Jun 30 16:23:56 but he did not bring much details Jun 30 16:24:01 probably yeah Jun 30 16:24:02 there were some routine to make apktool crash in the past :) Jun 30 16:24:08 but they fixed them :x Jun 30 16:24:36 can't defeat unzip Jun 30 16:24:37 :p Jun 30 16:24:49 wonder if decompression is involved, you alter the dictionnary header, you make something if decompressed to be enormous Jun 30 16:24:54 if that would work Jun 30 16:24:54 well that dpends Jun 30 16:24:56 i've never tried Jun 30 16:25:09 but that would be funny :))) Jun 30 16:25:25 poor harddrive Jun 30 16:25:37 messing up the central directory in zip files breaks a lot of unzip tools, but if you keep the local headers intact you can still easily unpack it if you know how Jun 30 16:25:43 that would indeed be funny Jun 30 16:25:48 surely somebody has done this Jun 30 16:26:14 yeah not sure on the apk itself would be a good idea Jun 30 16:26:33 it'll probably break signage anyway Jun 30 16:26:37 but imagine a zip (or other compressed format) in the apk holding some stuff you want to protect sufficiently Jun 30 16:26:51 you have your own routine to bypass the issue if decompression is made with a regular tool Jun 30 16:26:53 and boom Jun 30 16:27:16 you could also use steganography, but secret is evil Jun 30 16:27:38 there are so much images in the apk, even in the launcher icon Jun 30 16:27:52 it would require someone dedicated, automatic tools would not find it Jun 30 16:28:10 it's all about raising the walls sufficiently anyway, we more or less all know that Jun 30 16:28:17 but analysis of the decompiled code you use to read this would quickly determine its presence Jun 30 16:28:22 totally Jun 30 16:28:36 but just preventing famous tool as apktool & co is enough i guess Jun 30 16:28:43 otherwise, PKI. Jun 30 16:29:48 those frekes doing (bak)smali fix most issues quickly, so wouldn't bet on it Jun 30 16:30:52 i like the lure approach too Jun 30 16:31:00 giving something to eat, but it was not that in fact Jun 30 16:31:16 but again, someone inspecting it will find out Jun 30 16:34:55 adq : cool ndk rebuild lol Jun 30 16:35:11 adq : what's apktool & co ? Jun 30 16:35:31 man, no advantage at all to doing native aes/sha256 :( Jun 30 16:35:36 What do you do if bytecode can be decompiled? Does using another language still help you there? Jun 30 16:35:44 I never knew traceview in trace mode was so bad Jun 30 16:36:05 barq, decompile means going into original source form, bytecode can be decompiled into java trivially Jun 30 16:36:35 pfn, native = cpu extensions, or jni Jun 30 16:36:39 pfn: So any app can be cracked then that is not completely native. Jun 30 16:36:53 barq, any app can be cracked, period, as all code can be disassembled Jun 30 16:37:18 dragorn, jni Jun 30 16:37:38 But isn't decompiling illegal? Jun 30 16:37:43 pfn, doesn't surprise me Jun 30 16:37:44 I get a noise-level performance improvement using jni... Jun 30 16:37:55 pfn, even python can do math at basically native speeds Jun 30 16:37:56 dragorn, aes/sha256 on android is implemented in bouncycastle/non-native Jun 30 16:38:00 dragorn, but yeah Jun 30 16:38:09 barq, no Jun 30 16:38:21 So I can take an app from the store and decompile it. Jun 30 16:38:53 pfn, the vast majority is just cranking the keystream math and xor, if that can't JIT or ... OAT? into something that operates at basically native speed, something is wrong Jun 30 16:39:19 pfn, I guess if you can beat the java buffer implementation, that's about the only spot you'd get some boost. Anyhow. Jun 30 16:39:34 dragorn, yeah Jun 30 16:39:58 pfn, I'd be curious the difference vs cpu extension implementation Jun 30 16:40:16 pfn have you ever bothered benching the overhead of jni (i.e. going back and forth between Java and C/C++) Jun 30 16:40:29 Chainfire, nope, haven't bothered Jun 30 16:41:00 pfn, most intel and a lot of the newer arm have aes in hw now, exposed via the kernel crypto engine. I've only seen work using the crypto engine via kmods though, not sure it's directly exposed to you or if you'd have to do some asm hackery to get there in native Jun 30 16:41:13 I assume the latter Jun 30 16:41:50 pfn, looks like 2010 brought in patches for userspace api to the kernel crypto engine Jun 30 16:42:26 damnit, I deleted my test harness for seeing how fast this thing ran on the jvm... oh well Jun 30 16:42:30 pfn, in theory you can crawl that and look for accelerated hw crypto and use that. If you ever bother I'd be interested to hear the results. Jun 30 16:42:35 oh but you know there is an overhead pfn, the sme one you got in RenderScript with copyTo and copyFrom Jun 30 16:42:40 270ms for database open on jvm vs. 480ms on android Jun 30 16:42:48 and I suspected from the beginning you are doing that for each block of your AES stream Jun 30 16:42:56 instead of passing a bigger amount Jun 30 16:43:04 what protocol encription metthod will be teh best for mobilegaming? Jun 30 16:43:04 adq, eh, the ndk implementation, I changed to handle all the cbc crap myself Jun 30 16:43:05 and processing more blocks inside Jun 30 16:43:10 ah Jun 30 16:43:44 adq, https://github.com/pfn/keepshare/blob/ndk-aes/src/main/scala/com/hanhuy/android/keepshare/AesEngine.scala Jun 30 16:43:47 the overhead is killing me in RS, but i've read they would work on it, with 0mem copy Jun 30 16:43:55 PKI ? Jun 30 16:44:01 public key infrastructure Jun 30 16:44:17 adq, well, with ndk, you can actually use direct byte buffers, and avoid copy overhead Jun 30 16:44:17 one time public key you mean? Jun 30 16:44:22 monkeyisl, there is no answer to your question, i'm sorry Jun 30 16:44:42 adq, of course, using direct byte buffers from vm code is a bit slower, because of the differing memory model Jun 30 16:44:51 monkeyisl, I'd use cert pinning and DTLS probably, no reason to re-invent anything (and homebrew crypto is almost universally bad) Jun 30 16:44:59 monkeyisl, no, PKI, read wikipedia page for starting but you won't go this road since you don't even know the acronym (no offense), it's very legitimate from you to want to protect your stuff Jun 30 16:45:01 i wanna just know what will make ppl get tired to decrypt it Jun 30 16:45:03 but it's not easy at all Jun 30 16:45:15 What apps are good to test decompilation on without breaching any terms? Jun 30 16:45:22 i know there is no way to prevent 100%. Jun 30 16:45:24 it's legal in many countries barq Jun 30 16:45:38 still it breaches many terms of service and such Jun 30 16:45:44 adq : i know PKI. Jun 30 16:45:47 and re-using information you learned from decompiling may be illegal Jun 30 16:45:49 monkeyisl, nothing, with some ppl, the harder it will be, the more fun they will have Jun 30 16:46:18 ok Chainfire, but the law will not prevent someone to do it anyway Jun 30 16:46:28 PKI , every client will share one public key? or session basis? Jun 30 16:46:35 the law doesn't prevent anyone from doing anything Jun 30 16:46:37 no monkeyisl Jun 30 16:46:46 it's a whole infrastructure Jun 30 16:46:53 revolving around architecture and crypto Jun 30 16:46:56 Yes, i mean. Jun 30 16:47:26 in pki, usualy one public key will be shared thourh all clients. Jun 30 16:47:32 :x Jun 30 16:47:34 doing such things may still leave you open to civil suits though Jun 30 16:47:40 but it's not strong way.. Jun 30 16:47:47 for sure, i'm not advocating to doing it Jun 30 16:47:50 if it's not obvious. Jun 30 16:48:09 Is APK downloader OK for Firefox? Jun 30 16:48:16 no Jun 30 16:48:38 * adq puts auto-no in action Jun 30 16:48:59 Is it bad to use it? Jun 30 16:49:03 client connects to my server and the server issues a public key , now the client will have the key and encrypts pakcet with teh key.. and server will decrypt by using a privateky that's relavent to the pbulic key .. Jun 30 16:49:42 that's just assymetric crypto basis and it's blur how you said it Jun 30 16:50:06 asymmetric* Jun 30 16:50:43 monkeyisl, your goal is not to prove you have some knowledge in crypto but find a way to, i quote you on that, "prevent easy-unpacking" Jun 30 16:50:48 in case you forgot Jun 30 16:51:13 we gave you several ways to at least reduce the issue you address Jun 30 16:51:58 adq : yes, i figured, so i'm on next next question, how ppl do encrpt packets?. Jun 30 16:52:26 wait, now it's about network??? Jun 30 16:52:37 adq : i like NDK way that you suggested. Jun 30 16:52:41 adq : yup Jun 30 16:52:44 about network. Jun 30 16:53:08 most of ppl use an SSL tunnel i guess Jun 30 16:57:22 hi, does anyone have any good examples of using the calendar api? Jun 30 16:57:39 like just viewing events from a calendar Jun 30 17:05:53 Is there a way to force Android studio to do a clean install on the device? Jun 30 17:06:34 adb install -r Jun 30 17:06:52 is there an option on the interface for that? Jun 30 17:11:25 Is there an established way to handle throttle on a view pager? Jun 30 17:19:33 are we still talking crypto? Jun 30 17:20:58 paulo_: Yes. Jun 30 17:31:54 does the in-app billing api raise some event when a billing cycle is closed/started? Jun 30 17:34:55 Hey guys, does anyone have cheatsheets or links for naming conventions for MVP in android? I am struggling to find correct names for methods in my presenters and views. Jun 30 17:41:20 interesting static analysis tool from MIT http://www.gizmag.com/mit-automated-software-bug-fix/38236/ Jun 30 17:41:59 reminds me of horizontal / lateral gene transfer Jun 30 17:42:56 Anyone have an idea on handling view pager throttling? Jun 30 17:43:32 lasserix, what do you mean by throttling? Jun 30 17:44:15 there is a lot that goes on each page, i've tried to minimze / optimize, but still a lot. so I was thinking of say, not "loading" the page for a delay Jun 30 17:44:31 if the pageSelected is changing faster than that delay Jun 30 17:44:46 so if the user is flinging through the pages, each page doesn't get a load call Jun 30 17:44:52 load/update/present Jun 30 17:46:46 FragmentPagerAdapter calls Fragment#setUserVisibleHint to let you know that a page is visible Jun 30 17:46:51 postDelayed wouldn't help? Jun 30 17:47:41 not using fragments, Jun 30 17:48:10 bitkiller: postDelayed + cancel the call if the user moves past, is what i mean, like using a stack and popping without execution if user swipes past Jun 30 17:48:12 Then do something similar Jun 30 17:49:14 SimonVT: how do you mean? currently i listen for onPageSelected, and call present if it hasn't been presented (which asyncronous loads from source or cache) or selects if has presented (resets some scroll states, etc) Jun 30 17:49:48 but if the user is flinging through each page, I don't need to call this, since that page is quickly invalid Jun 30 17:50:35 Well, if it was a Fragment you could delay loading until the page has been visible to the user for x time Jun 30 17:50:37 that's why i was asking about implementing some kind of measuring so that i can detect if the user is flinging through, in which case i could postdelay the present call and remove the callback under some time Jun 30 17:50:52 I wanted to use Jake Wharton's salvage library Jun 30 17:50:53 By listening to setUserVisibleHint Jun 30 17:50:55 implement something similar Jun 30 17:50:56 so they are all views Jun 30 17:55:06 Hmm i don't want the view to be responsible for the loading though, Jun 30 17:57:19 hey guys, how would you implement a pop-out menu(full screen) with animation? Jun 30 18:12:11 pop up menu? Jun 30 18:12:19 activity? Jun 30 18:12:31 if it is full screen then it's kinda no longer just a popup menu? Jun 30 18:12:45 just override your transition animations Jun 30 18:22:46 lasserix: not activity, could it be a dialog or fragment? Jun 30 18:23:42 It could be a fragment, but given that you want it full screen, why not do an activity? Jun 30 18:24:14 the underlying view is really heavy, and i don't want to deal with activity lifecycle and resuming the previous activity Jun 30 18:24:26 prajna, what kind of animation? an expansion from point of click, or what is the animation? Jun 30 18:24:28 full screen without the toolbar Jun 30 18:24:44 pop out from top right to bottom left Jun 30 18:24:56 after tapping on menu action item Jun 30 18:25:05 you could try to simply add a view to the activity’s root view Jun 30 18:25:25 is there any sample you could point me to? s73v3r thx Jun 30 18:25:54 not off hand. just create a view, and animate it in the way you describe Jun 30 18:26:52 okay i'll look in to it, thx s73v3r Jun 30 18:27:31 yay, 5.1 update finally inbound for my phone Jun 30 18:27:45 which one Jun 30 18:27:46 hope advanced calling is in it even though it's not documented in the release notes Jun 30 18:27:47 ? Jun 30 18:27:48 moto x Jun 30 18:28:14 pfn: cool, i was happy to get 5.1 on moto 360 wifi connection is amazing Jun 30 18:28:26 still waiting for advanced calling Jun 30 18:28:30 so I can do simultaneous voice+data Jun 30 18:28:37 can't believe moto crippled the phone like that :( Jun 30 18:29:15 isn’t that a function of the network it’s on? Jun 30 18:29:39 hey guys, is there any alternative emulator you can use for development? the official one is really crappy Jun 30 18:29:44 s73v3r, no Jun 30 18:29:56 nine_9: genymotion Jun 30 18:29:57 s73v3r, it's not Jun 30 18:30:19 you sure? cause I know verizon couldn’t do that cause restrictions on CDMA vs GSM Jun 30 18:30:44 s73v3r: how's compatibility? Jun 30 18:31:09 how do you mean? It’s a VM that runs Android Jun 30 18:31:17 s73v3r, nope, verizon had a problem a long time ago for 1x vs. cdma radios Jun 30 18:31:21 s73v3r, but that was in 2010 Jun 30 18:31:30 s73v3r: i see that some emulators like andy and bluestacks doesn't support some applications Jun 30 18:31:34 now, the problem has cropped up on the newest phones again Jun 30 18:31:43 and now verizon is requiring phones to support volte to fix it Jun 30 18:31:57 rather than allowing mfr to ship a dual-mode cdma/lte radio Jun 30 18:32:12 you’re gonna have issues with Google Play dependent apps, and if you want to use some hardware features you have to pay Jun 30 18:32:15 and on top of that, verizon isn't allowing the volte software update Jun 30 18:32:25 I haven’t had any issues with my apps, outside of those features Jun 30 18:32:29 s73v3r: ok, thank you Jun 30 18:32:41 yeah, my apps are quite simple too Jun 30 18:32:46 shouldn't have problem Jun 30 18:32:49 s Jun 30 18:36:58 Gawd, I hate using String.equals. Almost always results in ugliness. Jun 30 18:37:16 pfn, hearing you talk about it i finally turned it on. wonder how long it'll take. Jun 30 18:38:00 is there a standalone version of guava multimap? so useful, sucks its not in standard lib Jun 30 18:38:11 easy enough to do yourself i guess Jun 30 18:39:47 http://imgur.com/yDPwaKE Both of the views are buttons. Is it possible to disable margins and how ? Jun 30 18:41:04 Isn't that part of the standard Button background drawable? I guess you could change the background. Jun 30 18:41:57 android:background="@android:color/transparent" or android:background="@null" Jun 30 18:43:43 setting bg to null works. Thank you jvrodrigues Jun 30 18:43:59 Its mandatory to declare a prefix "android" on namespace "http://schemas.android.com/apk/res/android" ? Jun 30 18:44:04 I would consider just using TextView, personally. Jun 30 18:44:09 I can't use it as the default namespace of the xml document? Jun 30 18:44:27 Actually, scratch that. Jun 30 18:44:44 yes TextView is another option Jun 30 18:45:10 meh, the guava guys used to split out things like collections into separate libraries but they stopped that back in 2010 Jun 30 18:45:57 now you have to grab one big lump of shit Jun 30 18:49:37 pfn, huh, turning on volte triggered an OTA Jun 30 18:49:39 didn't expect that Jun 30 18:52:16 I just started using android studio and when I click on "android:text" value, it changes to "@string/lab.." .. Why does this happen? Behavior is shown here: https://www.youtube.com/watch?v=_Cg4bJsEaKY Jun 30 18:52:49 trewq: You should store strings in the strings.xml, not hard code them in xml layouts. Jun 30 18:53:26 barq: He is doing that. Jun 30 18:53:41 TacticalJoke: No, he had the string hardcoded in his layout. Jun 30 18:54:02 And AS extracts the string and gives it a reference to strings.xlm Jun 30 18:54:12 dont forget there is tools:text or something if you want a placeholder Jun 30 18:54:21 I see it is mixed - I understand now about strings.xml. thank you! Jun 30 18:54:33 barq: Did you watch the video? That's just code folding. Jun 30 18:54:36 He's using strings.xml already. Jun 30 18:54:43 TacticalJoke: Yes, I did watch it. Jun 30 18:54:59 How is that not hard coding a string before he clicks? Jun 30 18:55:07 It's code folding, dawg. Jun 30 18:55:26 Settings > Editor > General > Code Folding > Android String References (I think). Jun 30 18:55:30 per device in-app subscription, is it possible? Jun 30 18:55:42 TacticalJoke: That doesn't contradict what I said, though, does it? Jun 30 18:55:56 some way, some hackaround Jun 30 18:57:27 You said "He had the string hardcoded in his layout", but he didn't. Android Studio just shows you the referenced strings by default (unless you disable that code-folding setting). Jun 30 18:57:30 Thanks for pointing out where to find the option, though. Jun 30 18:57:39 Oh Jun 30 18:57:53 Show code folding outline? Jun 30 18:57:53 barq: If I view the raw .xml file in notepad, I see "@string.." Jun 30 18:58:04 trewq: It's just Android Studio trying to be helpful. Jun 30 18:58:13 TacticalJoke: yep Jun 30 18:58:19 dragorn, that's interesting Jun 30 18:58:26 It does it for other stuff too (such as dimens entries). Jun 30 18:58:51 Though I can't find the relevant code-folding setting for that. Weird. Jun 30 18:58:58 How can you tell what is hardcoded and what not hten Jun 30 18:59:37 The color… Jun 30 19:00:23 How can you change it back to the text then once you have cmd-clicked it? Jun 30 19:00:40 cmd - alt - left Jun 30 19:00:56 Here, it's Ctrl+Numpad(-). Jun 30 19:01:05 I don't have a numpad Jun 30 19:01:06 Ctrl+Shift+Numpad(-) to collapse everything. Jun 30 19:01:43 Try Ctrl+Shift+A --> "collapse". See what it says. Jun 30 19:02:12 TacticalJoke thanks for that one Jun 30 19:02:16 been wondering for ages Jun 30 19:02:38 :) Jun 30 19:02:47 Hi there, could someone help me with this filter method ? Sometimes I'm getting outOfBounds. https://gist.github.com/wviana/6f4f660c6eb59336aba2 Jun 30 19:03:11 While we're at it, what's the equivalent of Eclipse alt-left/right arrow to flick through your last seen things Jun 30 19:03:21 just found out something interesting about the camera in android. for devices who’s camera sensor has a different AR to that of the screen of the device, it appears that the OS (or something in the chain) applies a scaling to the camera so that it will appear correctly when mapped onto the screen. what joy Jun 30 19:03:35 wviana: What line? Jun 30 19:05:35 barq: I'm actually getting error in convertView.setTag(holder); of getView, here is my full code https://gist.github.com/wviana/e3fd480cac3c13748613 Jun 30 19:06:27 wviana: convertview is null, you're checking for it Jun 30 19:06:49 if (convertView == null) {convertView.setTag(holder);} Jun 30 19:06:53 That won't work. Jun 30 19:07:33 barq it will. he inflates a view and convertView references it Jun 30 19:07:44 wviana: What does the stack trace say? Jun 30 19:08:01 hey guys, i'm trying to make a launcher, but no matter what i do i can't set my app as the default launcher, here is the androidmanifest: https://bpaste.net/show/2574f6793b7b, they say that once you have the "ANDROID.INTENT.CATEGORY.HOME" "ANDROID.INTENT.CATEGORY.DEFAULT" intents you should be able to set your app as the launcher but that's not happening Jun 30 19:08:07 I don't see any link between "convertView.setTag(holder);" and an ArrayOutOfBoundsException. Jun 30 19:08:08 barq: oh, thanks so stupid. I got blind about it. I should be the viewholder Jun 30 19:08:14 +Index Jun 30 19:08:15 wviana: I was wrong, see jvrodrigues Jun 30 19:08:36 Or IndexOutOfBoundsException, I guess. Jun 30 19:08:37 even the clear defaults button on the official launcher is grayed out Jun 30 19:08:50 TacticalJoke: It was LG's problem by the end :D :D Jun 30 19:09:06 Was it just not running the garbage collector? Jun 30 19:09:15 wviana: Show the stacktrace Jun 30 19:09:19 wviana, there is no indexoutofbounds here as far as I can see Jun 30 19:09:31 TacticalJoke: LG saved a 750x750 image on their library, on drawable folder (not on -nodpi) Jun 30 19:09:41 Ah, okay. Jun 30 19:09:42 barq: Actually, It was what I should be doing, I'll get the trace, just a sec Jun 30 19:09:45 Glad it's fixed. :D Jun 30 19:09:49 so it is 750x750x4x16 bytes Jun 30 19:09:54 I mean "understood". Jun 30 19:10:10 36MB :D Jun 30 19:10:12 barq: Here is the trace https://gist.github.com/wviana/ed22b650532bb5a75592 Jun 30 19:11:36 it seems there used to be a sample launcher application on github bu i can't find that any longer Jun 30 19:11:45 wviana: It's this line: Localidade localidade = localidades.get(position); Jun 30 19:12:20 TacticalJoke: yes, sorry. I think that I did change something since my last log Jun 30 19:12:56 TacticalJoke: I think that I'm doing something wrong in getFilter Jun 30 19:13:55 wviana: api.getLocalidades(new BuscaBody(charSequence.toString()) is probably returning nothing Jun 30 19:17:23 barq: Should I just test if position > size ? Jun 30 19:18:37 Shouldn't the data always be there? Jun 30 19:19:30 TacticalJoke: I should, but it is a network request. there is no sure about it. Jun 30 19:20:04 getView shouldn't be called until the data is ready. Jun 30 19:20:22 barq, TacticalJoke: I'll change the publishresults methods, to just public when response be bigger than 0, or something like that Jun 30 19:20:24 If it's being called and the data is ready, you're doing something wrong. Jun 30 19:20:28 isn't* Jun 30 19:21:24 yep, no volte support in moto x 5.1 update Jun 30 19:21:49 barq, TacticalJoke: I'll try like this https://gist.github.com/wviana/e0a408ec013cf525a5ba Jun 30 19:22:29 Did you mean to call notifyDataSetChanged? Jun 30 19:24:47 TacticalJoke: yes. Jun 30 19:40:45 What's the best way to store images on Android? I need to store/cache accounts' profile images while keeping them associated with the account in SQLite. I'm thinking I should store the image in file system and store the path in the database. Are there any good libraries for this? Jun 30 19:49:53 When I first run my app, my most recent Activity is not being retained (backgrounding and resuming) until I kill the app once, then restart it Jun 30 19:49:58 Every time after it's fine Jun 30 19:57:06 omfg! the nexus 7 camera outputs distorted frame buffers Jun 30 19:57:48 nm, found a finish() I was using that I didn't know was there :P Jun 30 20:06:24 quick question, maybe someone here can help? Jun 30 20:06:27 I'm trying to set up a dialog in Android, using a table layout. I have a single row, with items in this order: imageview, imageview, textview, textview, textview, imageview. I want the background of the layout to be transparent as the side images have transparent sections, but the parts with the text, I want the entire cell to have a background color (i.e. no transparency around the text). Does anyone know how to do this? I Jun 30 20:07:25 DigitalYeti: Why are you using a TableLayout if you only have one row? Why not use a LinearLayout? Jun 30 20:07:39 hmm nm again that finish() is not killing my activity Jun 30 20:07:56 still not able to figure out what's going wrong with this AutoCompletTextView adapter, https://gist.github.com/wviana/dcba6039e1a61eec0990 , I'm getting this IndexOutOfBoundsException, trace: https://gist.github.com/wviana/7d838684e85930feee7d , Jun 30 20:07:58 s/not killing my activity/not being called/ Jun 30 20:08:15 barq: I'm open to changing, I'm still new to Android. When I tried using a linear layout, everything got all chewed up. Additionally, it seemed like I wouldn't be able to individually set cell backgrounds if I used that? Jun 30 20:08:34 you can Jun 30 20:08:39 DigitalYeti: You can still set background vor each View. Jun 30 20:09:02 yiati: If you want help you need to provide more information. Jun 30 20:09:30 barq: but if I set the background for each view, will it fill in the gaps? so it will be one consistently colored block across the dialog and not just differently filled behind the images and then a smaller section only behind the text? Jun 30 20:09:53 wviana: Did you check what api.getLocalidades(new BuscaBody(charSequence.toString())) is doing? Jun 30 20:10:43 LWP onVisibilityChange behaves strangely. When switching from launcher with wallpaper to preview of the same wallpaper onVisibilityChanged w/ false the last. hmm https://gist.github.com/mlatu/01e44f28dfc80abb4edd Jun 30 20:10:44 barq: basically I'm trying to emulate what you'd have if you colored the background of a table cell containing text, rather than just changing the background (highlight) color of text, which is what seems to happen Jun 30 20:10:52 barq: Yeah, returning all right. I think it is about setting localidade as the return of api.getLocalidades instead of just add to it. Jun 30 20:10:54 DigitalYeti: One option would be to use FrameLayouts Jun 30 20:11:07 DigitalYeti: is this like a list perhaps? Jun 30 20:11:12 maybe use a listview Jun 30 20:11:22 wviana: What is api.getLocalidades(new BuscaBody(charSequence.toString())) returning? Jun 30 20:11:24 I'm not sure tbh Jun 30 20:11:36 are you making rows? Jun 30 20:11:51 and for instance what to checker them so every other one has darkgrey and every one has light grey background? Jun 30 20:12:37 I don't really have a preference what to use, all I know is that I've got a dialog window, and I want to put 6 things in a row as if in an HTML style table, with the background area of the middle 4 filled in and the outer ones transparent :-D Jun 30 20:12:58 barq: a list of Localidade, I did some changes, testing now Jun 30 20:13:13 but what seems to happen is that the text just gets a highlight of the color I meant to fill the cell and the rest of the area is transparent Jun 30 20:13:42 think you can show a diagram ? not sure what you are referencing Jun 30 20:13:52 sure, is it ok to post an imgur link? Jun 30 20:13:56 setTextColor changes the color of the text in a textview, setBackgroundColor changes the entire background Jun 30 20:14:01 all views have setBackgroundColor Jun 30 20:14:02 DigitalYeti: Yes. Jun 30 20:14:52 http://imgur.com/obCBvgV Jun 30 20:15:07 see how under the text the area is transparent and it doesn't fill the whole cell? Jun 30 20:15:21 what I want is for the background color I set to fill the entire cell and not just behind the text Jun 30 20:15:31 which are you talking about? Jun 30 20:15:37 I have android 4.4.4 on my phone. In my code, I use the "Slide" class which is marked as requiring API 21. But if I just ignore the warning that android studio gives me, and run it on my device, it appears to work anyway! Jun 30 20:15:48 DigitalYeti: you want the grey to also go behind Joe Momma? Jun 30 20:16:07 lasserix: when I use setBackground(color) it just fills behind the text, not the entire cell Jun 30 20:16:11 Can someone explain why this appears to work, even though I don't have the right api version on my phone? Jun 30 20:16:11 johnflux: problem is you run it on a device that doesn't Jun 30 20:16:22 lasserix: doesn't what? Jun 30 20:16:34 DigitalYeti: you need to move up in the hierarchy Jun 30 20:16:49 api 21 appears to be android 5.0 but I have 4.4.4 on my phone Jun 30 20:16:54 so you are settingBackgroudnColor on the textview, you want to move up one and setbackground color on what lives where the textview is Jun 30 20:16:56 lasserix: I want that area under the "Joe Mamma" message to be filled in with black Jun 30 20:17:09 ahh i see Jun 30 20:17:10 right now that's the table row Jun 30 20:17:16 you are setting Joe Momma setBackgroudnColor Jun 30 20:17:27 but unfortunately if I do that, I lose the transparency for the end parts (the triangles) Jun 30 20:17:29 but what you need to do is set backgroundcolor on the parent Jun 30 20:18:04 lasserix: yeah, so I've got the tablelayout and a tablerow in that. Then I've got the imageview, imageview, textview, etc added to that Jun 30 20:18:09 you need to make it like Jun 30 20:18:15 but I need to keep the transparency under the imageviews Jun 30 20:18:22 and then set background on left, middle and right triangle Jun 30 20:18:34 so I've got the background for the tablelayout set to transparent Jun 30 20:18:40 dont do that Jun 30 20:19:16 but the middle portion is like 3 different textviews Jun 30 20:19:25 yeah they all need one parent that confines them Jun 30 20:19:32 hmm Jun 30 20:19:35 how can I do that? Jun 30 20:19:37 then you can change the bg color of that, so it'll "apply" to the textviews Jun 30 20:19:40 lets say there is a website that has no mobile app. Is it possible to make a 3rd party mobile app for it? Jun 30 20:19:45 ahhhh ok Jun 30 20:19:58 can I use like a linearlayout for that then? Jun 30 20:20:00 if you know how big things are i usually use frame layouts and placement with margin offsets,but you can use a relative layout or whatever Jun 30 20:20:06 it depends, is it linear? Jun 30 20:20:19 I won't know ahead of time how big they'll be unfortunately Jun 30 20:20:21 i see whose calling / navigate option / not sure the third one? Jun 30 20:20:26 then use relativelayout Jun 30 20:20:28 it's a spacer Jun 30 20:20:31 ok Jun 30 20:20:32 I'll try that Jun 30 20:20:34 thanks! Jun 30 20:20:40 that helps a lot! :) Jun 30 20:20:48 em is it? Jun 30 20:20:53 em is that a rhetorical question"? Jun 30 20:21:06 if you code they will install? Jun 30 20:21:10 haha :) Jun 30 20:21:22 yeah it should be linear Jun 30 20:21:33 but I can try both linear and relative Jun 30 20:21:37 and see which works better Jun 30 20:21:56 thanks again lasserix and barq Jun 30 20:22:03 I really appreciate it :) Jun 30 20:25:22 barq: So my Activity A in the foreground is being killed when I background, until I kill the app and restart it. Then I can background with Activity A in the foreground, and resume the app on Activity A just fine all the time. Not sure what other details to describe Jun 30 20:25:38 explain this, raw dump of the framebuffer from a nexus 7! http://imgur.com/h2cru9z Jun 30 20:25:44 yiati: Is background a verb? Jun 30 20:25:44 that should be round Jun 30 20:25:54 barq: In android yes Jun 30 20:27:14 samskiter looks normal Jun 30 20:27:42 g00s: the coin cell is round Jun 30 20:27:46 that’s not normal Jun 30 20:28:05 samskiter sure, it is. do you have experience processing raw files from other camera ? :D Jun 30 20:28:26 g00s: so the camera pixels are stretched? Jun 30 20:28:36 hi guys Jun 30 20:28:56 javac -d /tmp/ com/alag/firstjni/SquaredWrapper.java Jun 30 20:28:57 i’ve heard of this Jun 30 20:28:58 but i have a camera preview that I put a lot of time into getting right (using texture matrices) that works with lots of other camera previews and setups Jun 30 20:29:08 javac -d /tmp/ com/alag/firstjni/SquaredWrapper.java Jun 30 20:29:22 Exception in thread "main" java.lang.IllegalArgumentException: Not a valid class Jun 30 20:29:26 please help Jun 30 20:29:34 samskiter one of 2 things is happening here.. (1) you made a mistake (Still a possibility) or (2) lens aberation / correction algorithms were not completed at that level of abstraction Jun 30 20:30:24 its very common that raw files need to have lens correction applied to them, even for big expensive cameras Jun 30 20:30:29 g00s: i think what’s really going on is a correction *is* being applied to only one preview size (1920x1080) as that is the preferred size and it’s aspect ratio is different from the screen (1920x1200) Jun 30 20:30:40 javah -jni wont generate a header file for me can you guys please help Jun 30 20:31:01 Exception in thread "main" java.lang.IllegalArgumentException: Not a valid class Jun 30 20:31:36 that error is quite obvious Jun 30 20:31:43 samskiter that said, the stretching doesn't seem like lens aberration, but yeah - something messed up in aspect ratio Jun 30 20:31:56 barrel distortion, etc all look different Jun 30 20:32:19 g00s: here is another preview mode (1600x1200) http://imgur.com/HA5u9Rn Jun 30 20:32:49 samskiter i'd recommend taking a picture with a test pattern Jun 30 20:32:52 this is me taking the framebuffer and just converting it to a bitmap. and then inspecting the bitmap in intellij. Jun 30 20:33:15 the conversion to bitmap will have all kinds of processing going on - that didn't get applied to the raw Jun 30 20:33:35 g00s: conversion to bitmap isnt going to add/remove pixels though Jun 30 20:33:46 samskiter it could Jun 30 20:33:58 :/ Jun 30 20:34:08 the correction for some types of lens distortion 'stretches' area by interpolating Jun 30 20:34:22 g00s: im also seeing a stretched preview Jun 30 20:34:52 because i do preview a little differently from the camera. i look at the difference bwteeen the current preview aspect ratio and the view ratio and correct Jun 30 20:34:55 btw i'm no expert on camera API; just crap i deal with outside of android in raw post processing Jun 30 20:35:16 i think i will forever avoid the mediaplayer and camera apis :D Jun 30 20:35:34 how else can i ‘look’ at the framebuffer without convering to a bitmap and inspecting that in intellij Jun 30 20:35:42 framebuffer is in nv21 format Jun 30 20:36:40 lasserix: no not rhetorical. Jun 30 20:37:41 g00s: infact the buffer to bitmap conversion is my own Jun 30 20:37:54 its a simple nv21 pixel to rgb888 pixel convert and place into each pixel Jun 30 20:38:08 so i know there are no extra transforms/pixel insertion going on Jun 30 20:38:19 samskiter i think groxx has camera experience Jun 30 20:39:11 sure. my current hypothesis is that the cameras preferred preview mode will have a transform applied to it to match the aspect ratio of the screen of the device Jun 30 20:39:26 which in many cases is a unit transofmr Jun 30 20:39:37 but on the nexus7, for example, is not Jun 30 20:39:41 ah, sounds reasonable Jun 30 20:39:56 but also very ureasonable for image proecessing Jun 30 20:40:17 because it would be lovely if round stayed round and ratios were roughly right. Jun 30 20:40:30 Hey, does anyone have any links or guides on organising package names in android for an app that follows MVP? Jun 30 20:41:12 javah -jni wont generate a header file for me can you guys please help Jun 30 20:41:14 Exception in thread "main" java.lang.IllegalArgumentException: Not a valid class Jun 30 20:41:18 My app is starting to grow a bit and I want to organise it in the best way possible. Jun 30 20:41:20 what is this error Jun 30 20:41:26 Radther: search "clean architecture android github" Jun 30 20:42:03 for some reason a lot of people don't organize based on access modifiers, but group "same type" of components Jun 30 20:42:14 does not really make sense to me, because what's the point of package private in that case? Jun 30 20:43:10 lasserix: Thanks, that search brought up a good one that I hadn't found before. Jun 30 20:45:17 Radther! Many a day has pass'd since I last saw thee. Jun 30 20:45:33 TacticalJoke: Tis has been a while! Jun 30 20:45:40 How are things? Jun 30 20:46:40 Pretty good. :D Jun 30 20:46:51 Just figured out the solution to a horrible, horrible design problem. Turns out it wasn't horrible at all. Jun 30 20:47:00 Just that my first solution was awful. Jun 30 20:47:37 That's cool, how close is the app to some sort of release? Jun 30 20:49:37 lasserix: its a hard question to ask because you don't know the site im talking about. But i really want to know how feasible it is to make a 3rd party app for a website Jun 30 20:49:46 lasserix: if i can pm you I can show you the site i mean Jun 30 20:50:21 em: Does the site have an API? Jun 30 20:50:36 ^^ that is really probably youre deciding factor, Jun 30 20:50:44 unless you really want to make the app Jun 30 20:50:55 are there some more usable unix tools on the android shell? I came across botbrew https://github.com/jyio/botbrew but it hasn't been maintained in a while Jun 30 20:50:57 there's nothing stopping you, is there? at least no lawsuit yet Jun 30 20:52:07 em: If there’s not an API that they’re exposing, then at best you’re in a legal grey area Jun 30 20:52:27 yeah dont bother Jun 30 20:52:39 Radther: Not sure. Still quite a few things to do. I like the app, though. :) Jun 30 20:52:47 In fact, it's the only reddit app I've used that isn't a total lagfest. Jun 30 20:52:47 Radther: minimal. very minimal. I would probably try to like work around that somehow.. using stuff i don't understand or no yet.. Like the actual .. stuff that gets sent as requests and stuff? don't know the right word for that... the stuff you see in firefox when you put console on network.. Jun 30 20:53:00 Even with thumbnails, etc., there's no stutter whatsoever. Jun 30 20:53:19 TacticalJoke: It's important to like the app you are building and what phone are you running as I haven't run into any lag with the ones I use? Jun 30 20:53:21 Well, nothing I can detect on my device. Jun 30 20:53:41 It's a site where we go there and we take turns listening to music that is on youtube. but they have no app. It would be cool to listen to the songs in our room on an app. Jun 30 20:53:46 I'm running on two Sony Xperias and a Tesco Hudl 2. Jun 30 20:53:57 One of the Xperias is several years old. Jun 30 20:54:54 TacticalJoke: Interesting, my devices were a Galaxy S2(before it died) and the new Moto X and both of those have ran smoothly. Jun 30 20:55:51 s73v3r: i don't really care how legal it is :D Im not trying to make money. I just want my friends to be able to join our community on this website and listen to the music while on their phones. Jun 30 20:56:06 making money is compeletely irrelevant when it comes to legality Jun 30 20:56:20 but not to consequences Jun 30 20:56:26 (depending on area) Jun 30 20:56:48 Yeah, in some cases legal outcomes are all about how rich you are. :D Jun 30 20:56:49 making money can make the consequences worse, but not making money generally doesn’t remove the consequences Jun 30 20:57:17 May I post a link to the website that I want to try to make an android app for? Jun 30 20:57:18 meh, I've seen so many cases fizzle out due to lack of visible profits Jun 30 20:57:21 Or just "all about money". Jun 30 20:57:25 TacticalJoke so you have been to the US :) Jun 30 20:57:32 its shouldn't work that way, but it often does. depends on the area, and the pockets of the opponent Jun 30 20:57:40 that way you guys could tell me how feasible it might be Jun 30 20:57:55 I don't need it to look fancy either. Just the basic functionality of being able to listen to the music. Jun 30 20:58:01 it would basically be youtube and soundcloud Jun 30 20:58:27 most of these things are civil, not criminal. if it were the latter, then indeed profits wouldn't matter at all Jun 30 20:59:42 hey can you please take a look at this question? http://stackoverflow.com/questions/31127926/androidname-com-google-android-wearable-watchface-preview-watchface-isnt-rec Jun 30 21:09:31 Chainfire: this is the site where we have our community. it has no app. You can listen to it here without making an account -- can you assess how feasible it would be for me to make an app for our community to listen to the music in our room on an android app of my own? -- http://plug.dj/trancehousechill Jun 30 21:10:14 Could someone explain to me why doing an instanceof with a custom Throwable is returning true, but doing instanceof with its' cause, which is the same Throwable, returns false Jun 30 21:11:42 em: They apparently have an API Jun 30 21:11:46 Plot twist: it's not an instance of the same Throwable subclass. Jun 30 21:12:14 s73v3r: but their api is really intended to be used in the browser for basic scripting. Not like exposing serious functionality. Jun 30 21:12:35 s73v3r: it is possible though to extract stuff like which song is playing I guess. Jun 30 21:12:36 can it get you the currently playing song, or the upcoming songs? Jun 30 21:12:46 only the currently playing. Not upcoming. Jun 30 21:13:19 s73v3r: i think also a trick needs to be done to 'log in' to the room somehow. Jun 30 21:14:29 yeah, if they’re not gonna expose login to you, you’d have a tough time Jun 30 21:14:39 i take it the site doesn’t work well on mobile? Jun 30 21:15:23 yeah i don't think it does. I mean there is no app at all for it, i think some people have had limited success seeting something in android and then trying to load it in androids browser. Jun 30 21:16:19 does their api give you the link to the youtube/soundcloud file they’re playing? And how far in it is? Jun 30 21:16:37 a real app would let you do everything like chat and join the waitlist and pick your own songs to dj with us, but i would be happy to just get something basic where people can listen to the songs being played. Jun 30 21:17:00 s73v3r: yeah that info can be extracted either directly or indirectly. Jun 30 21:17:12 their api assumes you are logged in your browser though. Jun 30 21:17:28 it isn't like an external api if that makes sense Jun 30 21:17:29 have you emailed them about doing this? Jun 30 21:17:35 naw Jun 30 21:17:43 When I override onStart with super.onStart() in FragmentActivity (specifically, the support version), the fragment manager seems to lose any fragments that I added to it. Does anyone know why this is? Jun 30 21:17:56 can anyone tell me why I don't find my app in the watch emulator? http://stackoverflow.com/questions/31127926/androidname-com-google-android-wearable-watchface-preview-watchface-isnt-rec Jun 30 21:18:08 Sorry, I should say it loses fragments in the fragment manager upon config change Jun 30 21:18:24 Despite the fragment being retained Jun 30 21:18:28 em, you could try scraping, but that seems like it’d be pretty difficult. Email them, and ask if they could provide either an actual app, or at least a better API Jun 30 21:19:01 oh good they are breaking up the rxandroid library Jun 30 21:19:04 or something Jun 30 21:20:04 thats good, rxjava + android being pretty new - i dont think there is much consensus on how to do things, so just having a -core / kernel is pretty good Jun 30 21:20:30 They’re trying, not sure how well the effort is going Jun 30 21:21:05 what’s the thing called, where you have a lot of things in a ListView, and so you only load up a few of them, and then as the user scrolls, you load up more? Jun 30 21:21:32 s73v3r: I actually do kind of communicate with them. This site isn't so 'big' yet that they are unreachable. The status on the app is that they are swamped with other stuff and that's a long way off. I don't think they know what they are doing with their API. I think this is like a site that grew faster than their skills : ) Jun 30 21:21:55 s73v3r: virtualization? Look up RecyclerView Jun 30 21:22:30 s73v3r lazy loading Jun 30 21:23:32 What would you guys recommend for device storage using phone gap? IndexedDB? WebSQL? or something more robust such as Couchbase? Jun 30 21:23:43 g00s, that’s it. thanks Jun 30 21:24:15 MasterPhi, start with the simplest of them, and see if it meets your needs. Jun 30 21:25:24 s73v3r: I'm currently using localStorage. But man, that thing is slow! haha Jun 30 21:26:02 phonegap is slow. Move up to the next simplest and more performant thing, and try it out. Jun 30 21:26:27 So I'm working with Xposed, and I know this isn't the channel for xposed, but can anyone tell me about the "Dexpathlist"? Jun 30 21:26:32 s73v3r: do android apps only 'connect' via APIs? It must 'see' something when it goes to a site.. possibly some kind of jquery stuff you could find the right fields and fill them in kind of thing. Jun 30 21:26:56 em, that’s called scraping. It’s technically possible, but it is very fragile and a pain in the ass Jun 30 21:27:09 if they change anything, then your parser will break, and you’ll have to update Jun 30 21:27:21 Yeah Jun 30 21:27:33 And they do change stuff Jun 30 21:27:42 s73v3r: Phonegap seems to perform well, just initial data load from localStorage is super slow. That's why I'm looking for alternatives. I'm still new to mobile dev. Jun 30 21:27:45 em you might want to establish a very clear API because a bad api is a pita to work with Jun 30 21:27:53 and every time they change, then you have to update your app Jun 30 21:27:56 ie, write an api that'd you want to work with Jun 30 21:28:14 you might look up about what constitutes a good api, particularly in terms of scalability Jun 30 21:28:40 does android support c++ Jun 30 21:29:08 i mean .java -> jni -> hpp Jun 30 21:29:09 yes. It’s in the NDK Jun 30 21:30:14 I am getting a "can't find symbol class" error and that class is included in the project (see structure here: http://bit.ly/1NvyAc3 )..what do I need to look for to tell my project where to find this class? Jun 30 21:30:35 reminds me of the CLASS_PATH headache from years ago :) Jun 30 21:30:36 lasserix: very clear api? I didn't create the site I want to make an app for Jun 30 21:30:49 but if you want to make an app Jun 30 21:30:52 and they don't have an api Jun 30 21:31:00 you can create your own? Jun 30 21:31:02 sketching out an api is not that hard Jun 30 21:31:11 class path headaces are still with us :) Jun 30 21:31:11 trewq: I don't see those two classes there. Jun 30 21:31:17 you said they are swamped, they'd either ignore you or appreciate someone submiting something Jun 30 21:31:29 oh i see Jun 30 21:31:48 TacticalJoke: it is in the middle of the pic.. Jun 30 21:31:52 do some of the design work for them. hopefully they’ll be able to implement it Jun 30 21:31:54 ie if you can define some functions that they can implement then your work will be much easier Jun 30 21:31:58 and then you can make your app Jun 30 21:32:02 I'll try to get a better pic.. one sec Jun 30 21:32:33 I don't see BleService or IBle in the list of files there. Jun 30 21:32:49 I guess I didn't know the word but i guess the word is scrapping. I was thinking of trying to make a limited app for just our community on this site that just got into the room and played the music being played by scrapping. Jun 30 21:32:58 Scraping? Jun 30 21:33:03 "Web scraping" or something. Jun 30 21:33:15 i dont know am i misusing the word? Jun 30 21:33:32 It's definitely not "scrapping". :D Jun 30 21:33:46 it’s Scraping. One p Jun 30 21:33:59 to do this you have to be scrappy Jun 30 21:34:13 uh huh Jun 30 21:34:26 I don’t think scraping is going to help you much, cause you still need the URL of the content, how far along in the song it is, and the duration. Jun 30 21:34:31 TacticalJoke: Here is a pic: https://dl.dropboxusercontent.com/s/dcajzqtikf9izh1/2015-06-30%20at%205.32%20PM%202x.png?dl=0 Jun 30 21:34:41 that should show this better.. (I think) Jun 30 21:35:09 s73v3r: that data is available in the front facing api they provide but only to peple who are logged in through their browser. Jun 30 21:35:19 like i can't just call their server for that outside of the room, if you get me Jun 30 21:35:38 Again, where is BleService and IBle? Jun 30 21:35:42 Not sure if I'm missing something or you're missing something. Jun 30 21:36:08 well, your first task would be to try and log in without using a browser Jun 30 21:36:31 trewq, i like your diagram :D Jun 30 21:37:12 s73v3r: can you use javascript inside of an android app? Jun 30 21:37:16 My App has a in In-app Billing, when the user purchase it a new widget is supposed to be shown, I used this code to make it show dynamically when the user purchases the APP but the widget is not shown in the widgets Jun 30 21:37:21 the code: http://pastebin.com/yMS5W9nM Jun 30 21:37:21 TacticalJoke: I must be missing something.. looking now Jun 30 21:37:27 any help please Jun 30 21:37:30 I think you can, but I wouldn’t know how Jun 30 21:38:00 s73v3r: oh i just had an idea... Jun 30 21:38:13 what if I have a bot that is in the room that sends data about the songs to my own website Jun 30 21:38:22 and then i make an app that interfaces with my own website Jun 30 21:38:44 that’s definitely a way around things. assuming they’re cool with it Jun 30 21:38:47 yeah i think that could work. Jun 30 21:38:55 what's the worst they would do? Jun 30 21:39:01 i think the worst is 'please stop that' Jun 30 21:39:01 kill your family Jun 30 21:39:14 and give you butt cancer Jun 30 21:39:19 haha Jun 30 21:39:20 trewq: you need togoto Module Settings, and click app Jun 30 21:39:27 and click dependencies, add module, add bluetooth Jun 30 21:40:04 lasserix: TacticalJoke is right I think .. O cannot find IBle and BleService Jun 30 21:40:07 so you’d have your bot, and you’d have it send data back to you. And then you’d have your server send push notifications to the client when songs change and stuff Jun 30 21:40:08 TacticalJoke: Haha, I checked in debugger and they are both my CustomException Jun 30 21:40:17 twerq they are different modules Jun 30 21:40:21 yeah Jun 30 21:40:29 you need to add the bluetooth module as a dependency to your app Jun 30 21:40:58 theblang: Maybe post code? Not sure what could be causing that issue. Jun 30 21:41:12 s73v3r: If they did ask me to stop I just would, but honestly I don't think they have much of a case -- this is not their content and they themselves are riding on top of youtube and soundcloud. This is all just youtube and soundcloud content. Jun 30 21:41:32 lasserix: yes, but you can see that "com.studyun.bluetooth.ServiceBroadcast" is imported fine.. "com.studyun.bluetooth.BleService" cannot be imported because it does not exists Jun 30 21:42:06 the only thing i dislike is that it doesn't increase my rooms user count this way. So maybe I won't do it. Jun 30 21:42:08 TacticalJoke: Not a whole lot to post, I have a CustomException that I throw in an OkHttp interceptor, that I handle when I make a Retrofit call. The Debugger is showing that the Throwable is of type CustomException, and the cause is a Throwable of type CustomException, but the first case is true with instanceof, the second isn't Jun 30 21:42:12 In fact it gives people a reason to not come to the room. Jun 30 21:42:14 crap Jun 30 21:42:15 trewq: http://postimg.org/image/wy6i7nkkl/ http://postimg.org/image/hdopdzol9/ Jun 30 21:42:17 Pwnies: thanks :). I want to explain my problem well to the nice people that are helping me :) Jun 30 21:42:19 TacticalJoke: So I am just using the Throwable, but I was so curious why that was Jun 30 21:42:40 em, you could use it as kind of a proof of demand Jun 30 21:43:00 and since it would be your app, you could issue an update using the official api when that’s ready Jun 30 21:43:25 trewq: http://postimg.org/image/s24fi6e3b/ and finally, you want to make sure it looks like: http://postimg.org/image/535fgac7x/ Jun 30 21:43:37 if you don't have that then something's definatly wrong Jun 30 21:43:54 lasserix: https://dl.dropboxusercontent.com/s/7hhdayvtjhx1bdb/2015-06-30%20at%205.43%20PM%202x.png?dl=0 Jun 30 21:44:02 lasserix: looks like it is already there Jun 30 21:44:37 trewq: The only question is of why that code is trying to import a class and an interface that don't exist. Jun 30 21:44:45 did you try cleaning/syncing your project? Jun 30 21:44:47 What's the preferred method for emulating shadow pre-lollipop? There are quite a few different options. Jun 30 21:44:47 lasserix: I am trying out the code from https://github.com/YangEdward/Bluetooth4Chat and looks like those two files do not exists Jun 30 21:44:54 (Also "Why is it using the IInterface naming style?".) Jun 30 21:45:21 lasserix: perhaps the author did not check those files in? Jun 30 21:45:48 maybe Jun 30 21:46:04 I cloned that repo, imported the project and I get those errors on build Jun 30 21:47:13 that or he refactored without commiting something Jun 30 21:47:35 I can't find it in the repository's history at all. Jun 30 21:47:43 Weird. Jun 30 21:48:04 I wouldn't trust random stuff on GitHub, though. Bad stuff is a dime a dozen. Jun 30 21:49:35 TacticalJoke: absolutely... I agree.. Jun 30 21:50:28 Having said that, I don't know anything about bluetooth. There could be something blatant that I'm missing. Jun 30 21:51:36 TacticalJoke: You are correct - the file is missing (there are other files in that place that are getting imported fine) Jun 30 21:51:54 looks like he just didn't push those as you suggested, or they were package private or something and he had a script that ignored them for that reason? who knows Jun 30 21:54:16 treq change Jun 30 21:54:56 private IBLe mBle -> private ClientBle mBle; Jun 30 21:55:28 and BleService to BleServerService Jun 30 21:56:14 you'll have to do mBle.startScan(true) probably Jun 30 21:56:19 then it should work Jun 30 21:56:31 he refactored the names but didn't push that Jun 30 21:56:38 probably got busy doing something else Jun 30 21:57:33 I wonder, though, where there's a better library he could use. I don't know how much I'd trust something whose author didn't even check that it compiled before uploading. Jun 30 21:57:37 tho BleService could also be BleClientService Jun 30 21:57:39 hehe Jun 30 21:58:07 trewq: why not use example from sdk? https://android.googlesource.com/platform/development/+/eclair-passion-release/samples/BluetoothChat Jun 30 21:58:50 lasserix: I am looking for BLE chat (not bluetooth chat) Jun 30 21:59:37 so I'm having a interview for Android job tomorrow. I have shown my code to them. I've made a couple of apps, so I generally know how to develop for Android. However, I'd like to know what would you ask on such an interview? :) Jun 30 21:59:37 lasserix: BleService could also be BleClientService - yeah, I was thinking the same thing :) Jun 30 21:59:49 trewq: try both Jun 30 21:59:51 one will work Jun 30 21:59:55 but this library looks better: https://github.com/onlyinamerica/blemeshchat Jun 30 22:00:25 icedp: try http://www.quora.com/What-are-good-job-interview-questions-for-an-Android-developer Jun 30 22:01:03 icedp: i was asked to make a simple app that shows a picture (asynchronously) with some data, like profiles, in a "listview" Jun 30 22:01:26 one question ishow much design versus development are you expected to do? Jun 30 22:01:38 lasserix: :) I had just started looking at it.. going to try it now Jun 30 22:01:44 particular if you are not getting paid for design, but are expected too ;p Jun 30 22:02:13 lasserix: I guess that is the question I should ask to them :) Jun 30 22:02:29 yeah its very good to have questions to ask then you dont really look stupid Jun 30 22:02:30 ;p Jun 30 22:02:48 Why is that? Jun 30 22:02:51 depending on how image ready your mind is, just review all the google results for android interview Jun 30 22:02:53 (see what I did there) Jun 30 22:03:13 socratic method best way to mask your ignorance as wisdom Jun 30 22:04:38 are we talking about job interviews for android? Jun 30 22:04:44 lasserix: could not import that repo Jun 30 22:04:54 into adroid studio Jun 30 22:05:22 got a Error:Configuration with name 'default' not found. Jun 30 22:08:40 trewq: you have to seperatly put airshare Jun 30 22:08:47 go into submodules airshare its empty Jun 30 22:09:14 https://github.com/OnlyInAmerica/AirShare-Android.git Jun 30 22:09:22 download seperatly, then import it as a module into your projec t Jun 30 22:09:28 you might have to change the build gradle to be library Jun 30 22:09:58 no they did that already, so basically in place of "airshare" you want the airshare/sdk module Jun 30 22:13:04 so if you do that Jun 30 22:13:05 it'll work Jun 30 22:13:10 lasserix: trying now Jun 30 22:13:32 clone both directories, delete submodules/airshare/sdk from build.gradle and settings.gradle Jun 30 22:13:37 from the first project Jun 30 22:13:48 then rebuild/clean it, it'll work, then import the sdk module Jun 30 22:13:58 and add it as a dependency Jun 30 22:14:48 proof: http://postimg.org/image/44n9vvfjf/ Jun 30 22:16:05 lasserix: sorry for dumb questions.. but build.gradle from main app did not have submodules/airshare/sdk Jun 30 22:16:11 yeah remove it Jun 30 22:16:19 you need togoto root build.settings Jun 30 22:16:31 it'll do like import :app :submodules/airshare/sdk Jun 30 22:16:33 remove that submodules Jun 30 22:16:38 then go into build.gradle of app Jun 30 22:16:53 and remove the compile project(/submodule/airshare/sdk) Jun 30 22:16:57 from the dependencies line Jun 30 22:17:08 then you can delete the folder too Jun 30 22:17:13 once you do that it will build Jun 30 22:17:17 but you need to add the sdk back in Jun 30 22:17:52 ok - getting a little confused here.. have the two repos downloaded Jun 30 22:18:16 open the first one Jun 30 22:18:21 yep Jun 30 22:18:25 go to root settings.gradle Jun 30 22:18:38 yes.. delete "include ':submodules:airshare:sdk' Jun 30 22:18:40 ? Jun 30 22:18:41 it'll have include ':app', 'airshare..." Jun 30 22:18:48 delte the second part -- the airshare Jun 30 22:18:53 yeah Jun 30 22:18:57 now goto app/build.gradle Jun 30 22:19:13 done Jun 30 22:19:15 scroll down to dependencies {...} delete line with airshare (compile project(airshare...)) Jun 30 22:19:21 now delete the submodules folder Jun 30 22:19:26 in the project view Jun 30 22:19:46 now build Jun 30 22:19:48 ok.. in the app/build.gradle . there is no airshare Jun 30 22:19:59 so you should be able to build it now Jun 30 22:20:01 still a few steps behind Jun 30 22:20:19 delete the folder submodules since it is useless Jun 30 22:20:33 then goto file -> new -> import module -> select the sdk folder in the airshare repo Jun 30 22:21:07 then right click on app -> Module Settings -> dependencies -> add dependency (as module) -> select sdk or whatever you named it when you imported it Jun 30 22:22:41 lasserix: I am at import.. https://dl.dropboxusercontent.com/s/a9clad1unatj8ku/2015-06-30%20at%206.22%20PM%202x.png?dl=0 Jun 30 22:22:49 what should I name it? Jun 30 22:22:51 anything Jun 30 22:22:53 probably like Jun 30 22:22:55 airshare-sdk Jun 30 22:23:06 just don't try and name it app Jun 30 22:23:14 do you need a colon in front? Jun 30 22:23:21 no Jun 30 22:23:24 ok Jun 30 22:23:24 err Jun 30 22:23:25 leave it Jun 30 22:23:30 but just insert airshare- Jun 30 22:24:05 ? Jun 30 22:24:18 you can name it whatever, i'd leave the colon or it might break Jun 30 22:24:24 so just do :airsharesdk Jun 30 22:24:27 or whatever Jun 30 22:24:38 you can change it later if you want Jun 30 22:24:40 ok - i already imported it without the colon Jun 30 22:24:49 how do I delete and redo it? Jun 30 22:24:55 as long as the folder is bold Jun 30 22:25:00 and it builds, should be fine Jun 30 22:25:06 but you can just right click and delete Jun 30 22:25:56 ok - imported :airsharesdk Jun 30 22:27:13 then right click on app -> Module Settings -> dependencies -> add dependency (as module) -> select sdk or whatever you named it when you imported it Jun 30 22:27:18 now adding dependencies - when I right click on app, I do not see module settings Jun 30 22:28:32 Hi! Do you have any good tutorials/examples on using RxJava in android? Jun 30 22:28:38 never mind - got it Jun 30 22:28:46 im trying to get around it, but damn it's hard Jun 30 22:29:20 tomacs: http://fragmentedpodcast.com/page/2/ check episodes 2-4 the added links Jun 30 22:29:25 also the podcasts are good too Jun 30 22:29:42 Alright, will check them out. thanks bud Jun 30 22:29:47 lasserix: Error:(22) A problem occurred evaluating root project 'BLEMeshChat'. Jun 30 22:29:50 > Could not find method compile() for arguments [project ':airsharesdk'] on root project 'BLEMeshChat'. Jun 30 22:29:57 tomacs: http://saulmm.github.io/when-Iron-Man-becomes-Reactive-Avengers2/ Jun 30 22:30:36 lasserix: btw, very much appreciate your help :) Jun 30 22:30:48 np just waiting for my qa person to get back to me Jun 30 22:31:32 trewq: i had to add bashscript plugin Jun 30 22:31:37 I pasted an error I gget Jun 30 22:31:59 hmm i get no error Jun 30 22:32:09 open settings.gradle Jun 30 22:32:25 make sure it reads like include ':app', ':airshare_sdk' Jun 30 22:32:26 hi Jun 30 22:32:27 lasserix: in settings.gradle, I see include ':app', ':airsharesdk' Jun 30 22:32:35 i have a dv7204 set top box from SDMC company. Jun 30 22:32:35 try cleaning? Jun 30 22:32:39 and i want upgrade 4.2.2 android to 4.4 kitkat version Jun 30 22:32:43 i device. not "developer option","usb debugger","build number" or other settings for root. Jun 30 22:32:46 please help to root or upgrade device Jun 30 22:32:53 for change skin and install language on device Jun 30 22:32:58 device => http://en.sdmctech.com/product/dv7204-t2-t-1080p-dual-core-hybrid-dvb-t2-t-set-top-box.html Jun 30 22:33:09 lasserix: when I clean, I get the same error Jun 30 22:33:31 https://dl.dropboxusercontent.com/s/lplx05z6riwmr13/2015-06-30%20at%206.33%20PM%202x.png?dl=0 Jun 30 22:34:17 lasserix: I posted what I see on my screen Jun 30 22:34:47 can you post your app/build.gradle? Jun 30 22:35:11 particularly dependencies { } Jun 30 22:35:56 lasserix: http://pastebin.com/raw.php?i=NGiYzQs1 Jun 30 22:36:21 delete compile project(':submodules:airshare:sdk') Jun 30 22:36:41 and add Jun 30 22:36:52 compile project(':airsharesdk') Jun 30 22:37:20 oh Jun 30 22:37:23 and build.gradle Jun 30 22:37:39 oh Jun 30 22:37:39 so Jun 30 22:37:42 you added it wrong place Jun 30 22:37:46 in that screenshot Jun 30 22:38:10 you need to move the dependencies { compile project(':airsharesdk') } to app/build.gradle Jun 30 22:38:26 not rootlevel/BLEMeshChat/build.gradle Jun 30 22:38:33 help friends :( Jun 30 22:38:41 sharax: try android-root Jun 30 22:39:33 lasserix: rootlevel/BLEChat/build.gradle looks like http://pastebin.com/raw.php?i=wGnRAJ60 Jun 30 22:39:44 lasserix: that looks ok right? Jun 30 22:39:50 no Jun 30 22:40:10 Not accountable someone :( Jun 30 22:40:17 cut the compile project(':airsharesdk') and remove dependencies { } Jun 30 22:40:29 and move it to app/build.gradle dependencies { } Jun 30 22:40:48 ah ok Jun 30 22:41:01 also remove that line Jun 30 22:41:08 delete compile project(':submodules:airshare:sdk') Jun 30 22:41:14 from app/build.gradle Jun 30 22:41:14 yep Jun 30 22:41:34 it is churning now Jun 30 22:42:15 cleaned fine Jun 30 22:42:23 build succesfull!!! Jun 30 22:42:25 hurray! Jun 30 22:42:34 now you get to figure out how it all works Jun 30 22:42:38 lasserix: thanks,, so I can learn Jun 30 22:42:44 what was the problem? Jun 30 22:42:55 the placement Jun 30 22:43:10 each module has its prebuild options, such as dependencies Jun 30 22:43:22 you needed the app module, which is compiled into the APK that will run, to compile the airshare sdk Jun 30 22:43:24 so the main thing was to move the dependencies from the root location to the app/ location Jun 30 22:43:27 yeah Jun 30 22:43:39 note the comment Jun 30 22:43:47 NOTE do not place your application dependencies here Jun 30 22:44:30 im not sure at what point that was added, but Jun 30 22:44:34 ok - so they did place that dependency there and you just cleaned it up. Jun 30 22:44:47 lasserix: fantastic. thanks a bunch! Jun 30 22:44:58 i think you might have used the wizard and added the module in the wrong folder or something Jun 30 22:45:20 but the whole point is that dependencies are specific to the module they need Jun 30 22:45:31 i think you can make like universal but not sure, haven't done it Jun 30 22:45:37 lasserix: understood Jun 30 22:46:56 hi Jun 30 22:47:12 what the difference of a wrapper and jni Jun 30 22:57:20 I run my application on a physcial device (installed through android studio). How do I delete it? I tried remove (drag to trash) but it does not work. I cannot see it on play store so I cannot uninstall there either Jun 30 22:58:16 adb shell pm uninstall thepackagenameofyourapplication Jun 30 22:58:56 ok .. this worked too.. From the homescreen, press Menu> Settings> Applications> Manage Applications. Jun 30 23:01:42 do you guys notice once in a while; happens maybe once a week for me - the back button stops working in some apps like Play Store ? Jun 30 23:02:05 or am i the only one :( Jun 30 23:02:10 nope, or not yet Jun 30 23:02:31 i noticed the developer console web front-end is crazy slow since more than a month now though not related Jun 30 23:02:41 it takes many seconds to display all the apps Jun 30 23:03:29 hm Jun 30 23:03:50 in the timeline of chrome inspect element blablabla Jun 30 23:04:15 i can see the bottleneck (it takes 4 seconds for a POST request) Jun 30 23:05:24 http://i.imgur.com/oxInQEK.png Jun 30 23:05:33 this big green bar Jun 30 23:06:18 they load all the apps in one request Jun 30 23:06:46 but still it is just some ridicilously light json stuff Jun 30 23:07:06 the bottleneck is on Waiting(TTFB) Jun 30 23:07:18 not on the request nor on the retrieval Jun 30 23:07:46 "Time spent waiting for the initial response, also known as the Time To First Byte. This time captures the latency of a round trip to the server in addition to the time spent waiting for the server to deliver the response." Jun 30 23:08:05 maybe the nsa intercepted it Jun 30 23:08:07 :D Jun 30 23:08:35 lol following the recent news in france (leaks) Jun 30 23:09:31 in fact this is not funny, ppl will get used to be spying at this rate Jun 30 23:09:37 spied* Jun 30 23:28:40 if one were to make an app with several Points of Interests stored in a database, how can you ship the 'database' along with your app? Jun 30 23:28:57 do I have to create the db progmatically? or can I just add a db file? Jun 30 23:29:04 there are some libraries Jun 30 23:29:09 that will take db from assests Jun 30 23:29:15 and convert it into db for your app Jun 30 23:29:21 problem is you are always stuck with that original db Jun 30 23:29:30 (so you have a lame copy) Jun 30 23:29:45 if you can shoot the POI from a server, then insert them that way much better Jun 30 23:34:55 Napalm here? Jun 30 23:35:31 http://ezscreens.appspot.com/view/765f/keepshare+aes+slow Jun 30 23:35:37 wow, slow aes there... Jun 30 23:35:53 only 9500000 calls onto itself... I don't know why traceview isn't showing that, though? Jun 30 23:40:24 pfn, https://android.googlesource.com/platform/external/bouncycastle/+/5db505e1f6a68c8d5dfdb0fed0b8607dea7bed96/bcprov/src/main/java/org/bouncycastle/crypto/engines/AESEngine.java#474 Jun 30 23:40:47 except shift which is overused too, inside encryptBlock is clearly "self" taking the most i guess Jun 30 23:43:23 for the number of calls itself i have no idea, i never look this column :p Jun 30 23:46:44 adq, nah, it's because sample-based traceview doesn't know how to count calls, it seems Jun 30 23:46:56 normally it does Jun 30 23:47:08 because it will highlight on the top visual view the range of time of each call Jun 30 23:47:21 if you zoom you will see it, so somewhere it could count it Jun 30 23:49:26 it does count well on my little test i made Jun 30 23:49:37 maybe it overflowed in your case lol? Jun 30 23:49:56 i mean i have around 20FPS on something, and during 7 seconds Jun 30 23:50:03 calls reports 146 Jun 30 23:50:09 which is close enough to make me believe it counts Jun 30 23:53:27 adq, using sample based or trace based? Jun 30 23:53:27 always trace based Jun 30 23:53:27 it's the only accurate measurement Jun 30 23:53:43 it impacts the performance but it's not stuttering Jun 30 23:54:48 yeah, trace-based isn't working for me Jun 30 23:54:53 it doesn't show my super-long calls at all Jun 30 23:54:57 had to switch to sample-based Jun 30 23:55:00 weird Jun 30 23:55:18 because it's the same as programmatically tracing (it's also possible to start and stop in your code) Jun 30 23:57:52 maybe it's related to thread, these are the know issues despite i never hit them Jul 01 00:26:16 * pfn shrugs Jul 01 00:26:24 it doesn't work for me, that's all I care to know for that particular problem Jul 01 00:26:24 * bhans shrugs more Jul 01 00:27:12 and yeah, there's about 9.5m calls to processBlock Jul 01 00:27:21 but traceview doesn't register them because of the sample-method Jul 01 00:32:38 CloudFlare seems to be down. Jul 01 00:32:41 Or something. Jul 01 00:32:50 So many sites (including reddit) not working right now. Jul 01 00:34:27 Hi Jul 01 00:34:50 My R gets red in AS. I looked at my manifest but it seems correct Jul 01 00:35:11 Try Build > Rebuild Project and look at every error message. Jul 01 00:35:31 http://pastebin.com/CebkVr3w Jul 01 00:35:37 I done it 4 times Jul 01 00:35:39 still Jul 01 00:35:54 first error : Error:Content is not allowed in prolog. Jul 01 00:36:23 I have a mp3 sound. it is one of the errors Jul 01 00:37:53 I don't know what that means. Jul 01 00:38:06 is my manifest correct? Jul 01 00:40:12 Which file does the "Content is not allowed in prolog" message refer to? Jul 01 00:40:24 mp3 Jul 01 00:40:32 So why are you asking about your manifest? Jul 01 00:40:33 I changed it to mid and now it's good to go Jul 01 00:40:52 Sometimes when R seems to be correct can be something wrong with manifest Jul 01 00:47:55 TacticalJoke since reddit is down http://digg.com/2015/this-is-the-worlds-worst-guard-dog Jul 01 00:48:09 lol is that a boston terrier? do they really sleep like that ? Jul 01 00:48:43 That's not working here either. lol Jul 01 00:49:46 Okay, I can see a cached version. I think that's a British Bulldog. Jul 01 00:49:59 this is funny too http://digg.com/2015/the-internets-most-cooperative-dog Jul 01 00:52:55 what site do you guys use to download mid sounds? Jul 01 00:57:48 now it works Jul 01 00:57:53 Hope I become milionair Jul 01 00:58:09 * pfn hates performance testing... Jul 01 00:58:18 feels so robotic... Jul 01 01:00:43 I have a listView. with costum adapter. Now I want to draw a divider under till third item. Anyone knows how to do that? Jul 01 01:00:57 reddit is back. :D Jul 01 01:01:10 reddit i boring Jul 01 01:01:33 um. i beg to differ: https://www.reddit.com/r/shittyrobots/ Jul 01 01:01:46 do you know any good video series for learning java algorithms and data structures? Jul 01 01:02:19 NateRiver: Those things aren't really Java-specific. Jul 01 01:02:26 Just saying in case it helps your search. Jul 01 01:06:13 NateRiver, learn generic algorithms and data structures, they will apply to all languages, not just java Jul 01 01:06:28 NateRiver, a good free book is algorithms by dasgupta, he publishes it as a free pdf Jul 01 01:09:19 i want to watch a movie though. Also I need java examples - why would it be useful to see how to do it in another language Jul 01 01:10:47 likee i found a video series called livelessons for java design patters, which is kinda similar right? Jul 01 01:11:40 NateRiver, thenewboston has good toturials Jul 01 01:12:52 that guy is crazy, he knows everything Jul 01 01:13:15 like a ken jennings of CS who eats bacon all the time Jul 01 01:15:26 TacticalJoke, do you know how to set a divider in a listview in java Jul 01 01:16:45 Yes. Jul 01 01:27:30 TacticalJoke, I Want to make a divider under the 4th element in the listview. I use a custom row. Here is my code. the divider doesnt appear and there is no Error. http://pastebin.com/3J5t55ZB Jul 01 01:27:41 NateRiver also sedgewick is good, but dont know if there is a movie Jul 01 01:29:32 Anyone know of a good article/tutorial about https live streaming? Jul 01 01:30:18 Want to use it for twitch stream Jul 01 01:31:09 Peyam: Just break the problem down. Isolate each part of the code until you figure out which part isn't working. Jul 01 01:31:22 TacticalJoke, and that was a good help? Jul 01 01:32:02 hey guys, in the docs they say the easiest way to import samples into android studio is using the 'import sample', however, i can't find some samples there, for example, the ClockBackService sample Jul 01 01:32:03 lol Jul 01 01:32:05 Your question isn't very good. You're basically saying "Here's N different things which might not be working. Which one isn't working?". Jul 01 01:32:10 any ideas on how i can get that sample? Jul 01 01:32:33 TacticalJoke, it is one thing that isn't working. the divider doesnt appear under the 4th element in my listview. Jul 01 01:32:35 darkchaoz: HLS on android is a bit hit and miss Jul 01 01:32:53 Mhmm Jul 01 01:33:04 How so? Jul 01 01:33:39 Wanted to use it to make an based on a single twitch channel with additional features Jul 01 01:33:46 Peyam: And how many things could be causing that? Jul 01 01:33:47 depending on device and version of android there can be issues with seeking, no video display and just general playback issues Jul 01 01:33:49 Eight? Jul 01 01:34:09 I see Jul 01 01:34:11 my sdk folder doesn't have the samples too Jul 01 01:34:13 Even things like this are a bad sign: if(myAdapter.getCount()==3){ Jul 01 01:34:14 TacticalJoke, that's the problem Jul 01 01:34:26 Every conditional statement is another thing that could be misfiring. Jul 01 01:34:27 I was going to target android 4.1 and up Jul 01 01:34:42 I hear android 3.0+ supports it but kinda dodgy Jul 01 01:34:48 you might have some luck Jul 01 01:34:50 try it :) Jul 01 01:34:52 Not sure if its better after 4.1 Jul 01 01:34:53 TacticalJoke, I cant come up with a solution onther than inside the mainactivity with is the firslines in the link i send to you Jul 01 01:35:09 Aright :) Jul 01 01:49:35 Damn its like a ghost town in here Jul 01 02:21:45 HLS on android us garbage, write your own implementation Jul 01 02:21:55 or use like 4.4 and up only Jul 01 02:27:38 Need help with adb command. I am trying to the following command from Python but get an error. subprocess.call("adb shell su rm -rf /data/data/"+packageNames["Instagram"]+"/cache/*"). Error is: tmp-mksh: tmp-mksh: - : unknown option Jul 01 02:27:45 I am trying to enable a widget dynamically via `PackageManager.setComponentEnabledSetting` but it does not work. I found this issue: https://code.google.com/p/android/issues/detail?id=6533 Jul 01 02:27:55 Can anyone help please ? Jul 01 02:40:15 Sorry for reposting. I am not spamming but something went wrong with my connection Jul 01 02:40:22 I am trying to enable a widget dynamically via `PackageManager.setComponentEnabledSetting` but it does not work. I found this issue: https://code.google.com/p/android/issues/detail?id=6533 Can anyone help please ? **** ENDING LOGGING AT Wed Jul 01 02:59:58 2015