**** BEGIN LOGGING AT Sat Mar 08 02:59:59 2014 Mar 08 03:10:19 adrianadrian: set onitemclicklistener for your listview? Mar 08 03:17:04 cool will try it out, thanks dude Mar 08 03:24:12 This is for android app dev right? Mar 08 03:24:36 yar Mar 08 03:26:58 anyone familiar with andengine shaders? Mar 08 03:31:37 adrianadrian: you set listener and just match position with your adapter data backing Mar 08 03:35:32 okay cool i'll fiddle around with that Mar 08 03:35:49 what do you mean by "match position"? Mar 08 03:36:44 do you mean make calls to the adapter in the onItemClickListener ? Mar 08 03:38:45 figured it out, cheers dude Mar 08 03:38:58 i'm just getting confused by the way the adapter works Mar 08 03:39:20 hello androidfriends. Does anybody here happen to have a Samsung S3 or S4, and like 250mb to spare? Mar 08 03:39:37 *how adapters work in general Mar 08 03:41:27 what's to be confused about Mar 08 03:43:38 Hello Everyone, I am trying to open a folder of images to a gallery application. I have tried http://stackoverflow.com/questions/7131693/open-image-form-built-in-gallery but my app crashes. Any Ideas? Mar 08 03:45:42 i think i understand their functionality, just getting confused in my code. have a custom arrayadapter as well as a list and even though everything is working i'm not really sure how the two are working together Mar 08 03:47:45 adrianadrian: what do you mean? what i'm saying is, you have an adapter, with that adapter you have a data set associated with it, upon clicking of an item, you can reference that data set Mar 08 03:48:08 yeah I've got that figured out, that's all happening now. Mar 08 03:48:49 you said you were confused Mar 08 03:48:58 i still am, just not about that part Mar 08 03:49:00 haha Mar 08 03:49:19 all good i'll just fiddle around until it makes sense. Mar 08 03:49:28 well whats the ? Mar 08 03:49:59 *thinking* Mar 08 03:50:05 *trying to think Mar 08 03:50:14 adrianadrian look in ApiDemos, they almost always use baseAdapter. if you implement that, it will all click Mar 08 03:50:24 cool Mar 08 03:50:54 i think the reason why somebody wrote ArrayAdapter is, when ever you change the 'model' you have to call notifyDatasetChanged(). so all the operations to the array its babysitting do that Mar 08 03:51:05 which could be confusing for newbies i guess Mar 08 03:51:10 or at least easy to forget Mar 08 03:52:23 i'm just spinning myself out because i've got multiple adapters doing different things Mar 08 03:52:28 on the same listview Mar 08 03:52:45 (i'm using ListViewAnimations library for drag and drop/swipe to delete/undo) Mar 08 03:52:56 adrian: how/why would you have multiple adapters? Mar 08 03:53:01 ^^ Mar 08 03:53:19 if you used something like cwac mergeAdaoter ... Mar 08 03:53:33 ir jeff sharkey's technique Mar 08 03:54:05 one listview would be one adapter, you can manipulate the adapter any way you want....why use multiple? Mar 08 03:54:07 but thats more advanced ;) i get confused looking at jeff's code :| Mar 08 03:54:20 canvs2321- for sections Mar 08 03:54:25 i don't know, just following the instructions of the api Mar 08 03:54:45 g00s: for sections would still imply one adapter Mar 08 03:54:48 for example, if i have one section of paired bluetooth devices, i would pour those into the first adapter Mar 08 03:54:53 wait i'm looking intently at my code hoping it will make sense. brb. Mar 08 03:55:07 no, one adapter for the LV which encapsulates multiple shild adapters Mar 08 03:55:49 sounds like you'd want more options for displaying, if one listview you'd set one adapter, and adjust accordingly Mar 08 03:56:02 one adapter, and set your data as needed Mar 08 03:56:25 http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ Mar 08 03:56:47 2008? Mar 08 03:57:31 everything you can concieve is possible with one adapter.... Mar 08 03:58:33 it's probably just my misunderstanding of the code Mar 08 03:58:46 i.e. of what's actually happening Mar 08 04:00:01 it might just be one adapter Mar 08 04:00:36 it just has things like the main adapter being assigned to animationadapters and stuff from the listviewanimations library Mar 08 04:00:58 so maybe the library is just working on the one adapter Mar 08 04:01:24 and i'm just confused because i see "myadapter" and "animationadapter" = 2 adapters Mar 08 04:01:54 at least it's all working, despite this :P Mar 08 04:02:57 canvs2321- 2008 yeah, the technique hasn't changed. but there are multiple ways to do it. cyrilmotier had a good blog on it too Mar 08 04:03:05 listview is pretty primitive Mar 08 04:03:15 i remember in 2009 when romain joked they would rewrite it Mar 08 04:03:19 never happened Mar 08 04:27:47 Anyone know of a way to update a fragments view after onCreateView has been called? Mar 08 04:38:55 onViewCreated Mar 08 04:44:02 f2prateek do you know any chance if fragment onRetainInstance only works for dynamically added fragments, not in layout ? Mar 08 04:44:30 no I don't Mar 08 04:45:08 ok, thx Mar 08 04:51:22 hey picasso vs UL image loader - which is the way to go? pros cons thoughts? Mar 08 04:52:20 LoneSoldier728: Picasso Mar 08 04:52:24 Obvi Mar 08 04:53:16 any reasons behind it over uil? Mar 08 04:53:42 if you are one of the contributors of it, I can see why you say that lol Mar 08 04:53:50 LoneSoldier728: I wrote it Mar 08 04:53:54 Semi biased Mar 08 04:54:09 But I wrote it because UIL sucks Mar 08 04:54:33 hm kk, yeah someone else told me picasso too on my SO question Mar 08 04:54:57 now is retrofit worth using too for pulling data as well... or just write my own async methods Mar 08 05:01:02 If anyone can help: https://stackoverflow.com/questions/22265256/refreshing-a-fragment-view-from-mainactivity Mar 08 05:02:01 slash_tag let me know if you find an answer I have been trying to figure that out too Mar 08 05:03:37 LoneSoldier728: Yea, I really need an answer to this because my app is kinda done without it Mar 08 05:04:16 well reading your question I see you can update your view based on data passed back to it Mar 08 05:05:24 I've come across a strange error trying to open a Dialog...."Resources NotFoundException: Resource ID 0x0" on this code...http://pastebin.com/MjdPfUFL - I confirmed that everything is in the layout and the p & c variables have the correct IDs Mar 08 05:05:30 LoneSoldier728: retrofit! Mar 08 05:05:52 ha kk Mar 08 05:06:40 Slash_Tag: hey Mar 08 05:06:53 Napalm: Hey man. Whats going on Mar 08 05:09:11 oh, stupid me - in case anyone is looking at my problem, its sorted. Mar 08 05:09:29 Slash_Tag: cant you just use simple interfaces? Mar 08 05:10:20 Napalm: What do you mean? Mar 08 05:10:39 Slash_Tag: Why not just have Fragment B on receipt of the data check its isAdded() flag and then change the UI/data it displays? Mar 08 05:11:28 whats the problem here, the fact that Fragment B has already been created with old data or the fact Fragment C will be created and will not have the data set on it? Mar 08 05:11:39 or both Mar 08 05:11:43 Slash_Tag: ^ Mar 08 05:11:59 Alright Ill try to break it down the best I can Mar 08 05:12:31 Fragment A has an EditText and a Button. When the button is clicked, it gets the string from the EditText, sends that back to MainActivity Mar 08 05:12:52 using this method > http://developer.android.com/training/basics/fragments/communicating.html Mar 08 05:12:54 ? Mar 08 05:13:19 Yea Im using that Mar 08 05:13:34 So I get the data back in MainActivity and everything is fine there Mar 08 05:13:54 But then I want to send that data out to Fragments B and C Mar 08 05:14:23 ok Mar 08 05:14:24 But Fragment B's onCreateView has already been called, so I cant update the view when I send over the data Mar 08 05:14:35 yes you can Mar 08 05:15:31 you can do it a few ways right Mar 08 05:15:45 1. just set the data to the fragment and have it update its views Mar 08 05:16:32 2. have all the fragments like B and C register themselves to recieve data from the MainActivity and when MainActivity gets it's data set you tell all the registered receivers of the new data Mar 08 05:16:40 3. recreate the fragment Mar 08 05:18:38 4. use an event bus and tell all subsribers of the new data and MainActivity, Fragment B would get notified of new data. Fragment C would get its data when created by MainActivity Mar 08 05:18:49 i think this list is pretty endless tbh Mar 08 05:19:00 Well what I currently have is the fragment getting the data in onCreateView Mar 08 05:19:01 Slash_Tag: ^ Mar 08 05:19:59 and it gets it by doing MainActivity activity = (MainActivity) getActivity(); Mar 08 05:19:59 String myDataFromActivity = activity.getMyData(); Mar 08 05:20:25 But theres definately a much better way of doing this that I dont know of.. Mar 08 05:21:18 Slash_Tag: and I just explained a few Mar 08 05:21:54 the key here is the fragments need to fetch the data from the actvitiy aswell as be updated by the activity Mar 08 05:22:26 in which case you need to break your updateUI behaviour out of onCreateView and into its own function Mar 08 05:23:03 updateUI(MyData) can then be called from onCreateView and also called in a setMyData() on the fragment Mar 08 05:23:15 just make sure you check the isAdded flag in setMyData Mar 08 05:23:28 with me? Mar 08 05:23:36 I get what you are saying, yes Mar 08 05:23:45 I just don't know how I would about this Mar 08 05:23:58 i just explained it Mar 08 05:25:53 So I need 2 new functions is what you are saying Mar 08 05:26:45 yes, or however many you want to create Mar 08 05:26:48 lol Mar 08 05:27:16 So I guess the first part would be getting the data Mar 08 05:31:55 right, night all Mar 08 05:35:03 JakeWharton just applied it to my grid wow so much smoother Mar 08 05:35:23 big ups for Picasso Mar 08 05:35:56 LoneSoldier728: woot! Mar 08 05:36:17 LoneSoldier728: full disclosure: I wrote most of retrofit too Mar 08 05:36:51 yeah i know I heard about retrofit a while back when I was writing my own async calls to my db but I think I am a little more open to libs now so ill take a shot Mar 08 05:56:54 is it best to store user changes in sqlite and send server requests to update the servers db with it every hour or so with AlarmManager or what is the best way to go about it, without constantly updating the server since the user decides to change his settings or name 100 times Mar 08 06:01:49 thats an engaged user ! Mar 08 06:07:55 er, unless you're running your backend off a raspi or a *really* cheap VPS or something, it should be able to handle 100 updates in an hour... Mar 08 06:11:56 Can I ask doubts here? Mar 08 06:12:01 Can I ask doubts here? Mar 08 06:12:53 I'm not sure Mar 08 06:12:59 i doubt it Mar 08 06:13:43 What is this channel about? Mar 08 06:17:10 I'm not sure Mar 08 06:17:20 Leeds or g00s but 100 updates in an hour for thousands of users isnt that a lot of wasted requests Mar 08 06:18:03 not sure. Ok. Mar 08 06:18:12 mygreymatter: you're kidding, right? Mar 08 06:18:44 LoneSoldier728 depends , are you streaming data or transferring state. if you are transferring state, then eventual consistency might be ok Mar 08 06:18:59 Leeds Nope. I would pose a question. Some one can answer it if they know. Lets try. Mar 08 06:19:17 g00s like user preferences for example Mar 08 06:19:30 mygreymatter: you're new to IRC, then? Mar 08 06:19:53 Leeds: Yes. Is there other channel for android programming? please guide me. Mar 08 06:20:02 mygreymatter: read the bloody channel topic Mar 08 06:20:54 isn't it about app development? Mar 08 06:21:00 Leeds: isn't it about app development? Mar 08 06:21:06 btw am I typing something wrong, basically how do I say if(Cached) then get from cache else request from server? Mar 08 06:21:12 what are the first three words of the channel topic? Mar 08 06:21:21 I cannot find any answers really to the question Mar 08 06:21:29 Leeds: Android application development Mar 08 06:21:56 and that's me done for the day - quite early Mar 08 06:22:11 lol Mar 08 06:22:15 Leeds just ignore him Mar 08 06:22:21 Leeds: From that, I infer I can ask doubts related to app development Mar 08 06:24:20 mygreymatter: at some point you might ask a non-vague, non-meaningless question... I won't be here to answer it though, so good luck with that Mar 08 06:24:54 I am able to download images (thumbnai l and then the original from the server). How to display thumbnail and replace it with the original? Both are bitmaps. Mar 08 07:01:22 Howdy! Does anybody know how one should use ANativeActivity_showSoftInput? It doesn't seem to work here. Mar 08 07:09:32 any op here? Mar 08 07:11:16 badseed if you are having problems, you may also try #freenode Mar 08 07:11:43 g00s dont send people in freenode for this channel’s issues please. Mar 08 07:11:53 are you the one who’s doing this? Mar 08 07:12:04 wut? Mar 08 07:12:36 do not send people in freenode, just because someone ask an op here, or for any other issue that has to do with “this” channel Mar 08 07:21:59 what the hell was that about O.o Mar 08 07:23:11 no idea Mar 08 07:25:15 g00s> people on #freenode do not deal with channel-specific issues. So if someone asks for ops of *channel*, its usually wrong idea to send them to #freenode. Mar 08 07:25:40 so far I see, nobody was Mar 08 07:25:54 so yeah it was out of assend of nowhere Mar 08 07:26:03 t3st3r well, probably with that theory is that no ops are here, and people from #freenode have actually helped in the past Mar 08 07:30:08 g00s: hidden ops are common (people who can op themselves with chanserv or some bot) Mar 08 07:30:21 g00s> generally freenode staff would not deal with channel-specific administration as far as I know. So it only makes sense to send people here when its network-wide issue or something like this. Mar 08 07:30:51 t3st3r yes, but in the past they have helped with trolls and spamming Mar 08 07:30:59 immibis understood Mar 08 07:31:12 sure, if ops cant handle it, they can. Mar 08 07:31:51 but usually when it happens to be seriously destructive attitude affecting network in general. Mar 08 07:45:54 this is pretty interesting http://www.comscore.com/Insights/Press_Releases/2014/3/comScore_Reports_January_2014_US_Smartphone_Subscriber_Market_Share Mar 08 07:46:06 in the top 15 apps, facebook is #1 Mar 08 07:46:53 * g00s wishes his app was in the top 15 list XD Mar 08 08:03:56 I have a question: why did Android switch to using a FUSE filesystem? Mar 08 08:06:04 I guess I'm not very knowledgable, but I can't really think of any advantages and causes some dumb bugs that have still yet to be fixed Mar 08 08:53:39 * capella|away really needs a soft VKB / Input Method that's transparent ... then I can see what I'm typing and not have to constantly shift the darn thing around the screen Mar 08 09:23:43 anyone good at reseting android device via Kies Mar 08 09:58:36 hi, i have a problem, i 'm developing on mino-pc android.. so when i attach an USB keyboard my activity is stopped Mar 08 09:58:52 how can i avoid this beaviour? Mar 08 10:00:19 devuser: If you can, wild guess, check out activity configChanges in the manifest. Mar 08 10:02:08 ah ok... i rewrite configChanges method? Mar 08 10:02:16 So apparently I have to call setContentView before findViewById, but this is a dynamic dialog. I can't use setContentView for a dialog? Mar 08 10:04:30 Kake_Fisk: it seems like you should be able to Mar 08 10:05:12 Here's my code: http://ideone.com/jkpaiu Mar 08 10:07:09 Kake_Fisk: this is just a guess, but I think it is because you are using a dialog BUILDER, not a Dialog Mar 08 10:07:24 Ou, I'll look into it Mar 08 10:07:45 the dialog isn't built until you call "show()", so the view isn't attached to it Mar 08 10:08:05 Did you know that View has a findViewById method? Mar 08 10:08:34 Did you also know that a dialogs view isn't part of the activitys content Mar 08 10:10:41 yeah, SimonVT is right. calling "activity.findViewById" is wrong. You would want to call it on "dialoglayout" Mar 08 10:12:08 kjeldahl, thanks.. it works Mar 08 10:12:09 Yeah, of course. Stupid mistake. When something looks right, it is hard to realize it might be wrong. Thanks Mar 08 10:12:34 However, I didn't understand the second thing you tried to explain Simon. Mar 08 10:13:33 Calling findViewById looks in that activitys content view for the view Mar 08 10:13:50 Dialogs have their own window Mar 08 10:14:51 So at no point would you be able to find a view in a dialog by calling findViewById on the activity Mar 08 10:15:09 Yeah, I see Mar 08 10:15:44 Also, you shouldn't create a layoutinflater from the activity for inflating views for use in a dialog Mar 08 10:16:01 That's why they added getContext to AlertDialog.Builder in API11 Mar 08 10:16:18 And why the Dialog class has its own getLayoutInflater method Mar 08 10:17:20 On older platforms dialogs would always have a dark background, regardless of your activitys theme Mar 08 10:17:20 Oh, I'll try to fix up in that Mar 08 10:17:32 devuser: Excellent, pure speculation from my side but glad it worked. Mar 08 10:17:34 So if your activity has a light theme, layouts inflated with it with have dark text by default Mar 08 10:17:42 Add that to a dialog with a dark background.. Mar 08 10:17:59 Do you also have any idea why my spinner doesn't get it's values from the array Mar 08 10:18:48 Nope Mar 08 10:19:45 Yeah, okay Mar 08 10:45:00 If I used AlarmManager.set(..) for specific time, and then the user force stop my app, will it work? Mar 08 10:55:08 Hi.. Mar 08 10:55:13 i need help pls... Mar 08 10:56:22 I have an error, do not know how to fix it Mar 08 10:56:57 Pay by help Mar 08 11:00:02 b0t: You can say what is your error, it will help Mar 08 11:02:37 03-08 08:02:05.775: E/InputDispatcher(674): Motion event has invalid pointer count 0; value must be between 1 and 16. Mar 08 11:03:07 I try to just click on a button Mar 08 11:03:54 attempt to modify an open source irc client Mar 08 11:09:05 Motion event has invalid pointer count 0; value must be between 1 and 16. Mar 08 11:14:08 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh Mar 08 11:23:16 .j yaaic Mar 08 11:23:56 b0t: can you pastebin the full stack trace, at least Mar 08 11:26:09 when I try to run the button to connect to irc, only this error in the debug Mar 08 11:26:14 Motion event has invalid pointer count 0; value must be between 1 and 16. Mar 08 11:26:17 b0t: can you pastebin the full stack trace, at least Mar 08 11:26:39 pastebin.com/KJDEW12 Mar 08 11:27:12 Leeds want to see all my files? Mar 08 11:27:29 in a zip Mar 08 11:28:26 If I used AlarmManager.set(..) for specific time, and then the user force stop my app, will it work? also, will it work on restart device? Mar 08 11:28:27 "This paste has been removed!" Mar 08 11:28:31 so that's a no-go then Mar 08 11:29:04 ok Mar 08 11:29:06 stop Mar 08 11:29:43 I'm using BlueStacks as emulator and eclipse to see the debbug Mar 08 11:30:11 the only error I have is: Mar 08 11:30:15 in the debug. Mar 08 11:30:19 don't care, doesn't matter, stack trace or GTFO Mar 08 11:30:22 Motion event has invalid pointer count 0; value must be between 1 and 16. Mar 08 11:30:56 I can upload the file to "believe" that brings problems Mar 08 11:33:08 Leeds: yoavst this is Mar 08 11:33:08 http://pastebin.com/c9MPPgfU Mar 08 11:34:41 and this is her brother Mar 08 11:34:42 http://pastebin.com/nFYBzbMe Mar 08 11:45:36 Z:zzzzzzzzzzzzzzzzzzzzzzzzzzz Mar 08 11:50:22 b0t: can we get the java code? not smali Mar 08 11:50:38 Any other opinions on this? http://gyazo.com/37503d6454b4e1aa54d33dc0bddf4bc8.png Mar 08 11:51:25 not how to get it, I know some of this Mar 08 11:51:29 yoavst Mar 08 11:51:55 I think anyone who knows about this, solve the code in 5 minutes Mar 08 11:52:18 I can upload all the files in the decompiled apk now Mar 08 11:52:25 autrilla: I think the settings should be smaller, like in play music Mar 08 11:52:53 yoavst, I like that idea :) Mar 08 11:53:07 yoavst: I can pay you if you want Mar 08 11:53:48 b0t: If you will send me the java code, I'll be able to see what wrong. I never learn smali Mar 08 11:54:14 *I've never learned Mar 08 11:54:41 yoavst: tell me how I get the java code Mar 08 11:55:13 b0t: You try to decompile an apk? Mar 08 11:55:19 yesss Mar 08 11:55:33 apktool d Apk. Mar 08 11:56:37 b0t: http://www.decompileandroid.com/ that's return java files, but the resources will be number instead of R.something.something Mar 08 11:57:03 wowww Mar 08 11:57:19 b0t: if you're playing with an open source app, why don't you have the source? Mar 08 11:57:54 Leeds: this is Yaaic Mar 08 11:58:02 no, this is #android-dev Mar 08 11:58:45 Leeds: https://github.com/pocmo/Yaaic/ Mar 08 11:58:49 source is here Mar 08 11:58:53 sry, b0t Mar 08 11:59:02 point, missed, me, done for real this time Mar 08 12:00:14 ok, no, one more try... Mar 08 12:00:23 yoavst: that is the source code, but I implemented a LOGIN Mar 08 12:00:49 b0t: if you're trying to modify an open source app, why aren't you starting with the source? and why aren't you using actual development and debug tools which could give you actual information to let you solve actual problems? actually? Mar 08 12:01:30 Leeds: is simple, I am a newbie Mar 08 12:02:10 I just thought that modifying the apk, might work Mar 08 12:03:01 b0t: modifying the apk might work if you want to replace resources Mar 08 12:05:10 This apk does not come with a login to enter the nickname can only configure, thousands of options, this is not for normal people. I wish that on the main screen in the home, appears to enter the nickname and pressing the connect button, connect directly to my channel. Mar 08 12:05:25 then get the source and start hacking it Mar 08 12:05:29 blah Mar 08 12:06:09 LoginActivity.smali someone did, it was logged as I want, but it's for an earlier version of Yaaic, inserting these files into this new version, I can not get it to work. Mar 08 12:07:13 I decompiled the new version of Yaaic, and I put in it the old version login files, but does not work Mar 08 12:07:27 b0t: so edit the source in java Mar 08 12:43:40 well he was weird Mar 08 12:53:50 Hi, did anyone use Google Analytics in his Android app? Mar 08 12:56:44 we are Mar 08 12:56:55 but i havent setup it Mar 08 13:32:55 I'm getting an error on "Button buttonPublish = (Button) dialoglayout.findViewById(R.id.btnPublish);" Cannot cast from View to Button. This is my XML: "